summaryrefslogtreecommitdiff
path: root/test/fixers
AgeCommit message (Collapse)Author
2023-08-15yamlfmt (#4587)Matheus Werny
* Added the fixer, wrote tests and tested it
2023-07-24Add erb-formatter support (#4546)Arash Mousavi
2023-05-06Add support for npm-groovy-lint (#4495)lucas-str
* Add support for npm-groovy-lint * Add doc and tests for npm-groovy-lint * Use ale#util#FuzzyJSONDecode instead of json_decode
2023-04-22Add fourmolu fixer (#4501)Pat Brisbin
* Add fourmolu fixer Fourmolu is aversion of Ormolu that supports configuration. This fixer was modeled after the Ormolu one, but using the "stack executable" approach of the Brittany and Stylish Haskell fixers. * Sort supported-tools.md
2023-03-26Add support for `rustywind` fixer (#4477)Guillermo R. Roig Carralero
2023-02-07Add alejandra for nix (#4435)Nathan Henrie
- Fixes https://github.com/dense-analysis/ale/issues/4434
2023-01-28Add `gopls format` as a Go fixerSean Enck
2023-01-27add: pycln as a python linter and fixer (#4415)Yining
this commit adds pycln as a Python linter and fixer, together with some tests and documentation. It addresses #4340 pycln repo: https://github.com/hadialqattan/pycln
2022-12-22fix: ruff not registered as fixer (#4393)Yining
this commit fixes the issue reported at: https://github.com/dense-analysis/ale/issues/4301#issuecomment-1359289391 it also had some code refactored and tests added for ruff as fixer (missed in PR #4347).
2022-11-07Add raco_fmt fixer for Racket files (#4354)Jeremy Cantrell
* Add raco_fmt fixer for Racket files * Fix command and add test * Fix quoting
2022-09-30Add fixer "css-beautify". Adjust "html-beautify." (#4319)Matheus Gabriel Werny de Lima
* Add fixer "css-beautify". Adjust "html-beautify." * Error fixes. * Added chars.
2022-08-09Add support for syntax_tree fixer (#4268)Mo Lawson
This is the library that now powers prettier/plugin-ruby but is also stands on its own: https://github.com/ruby-syntax-tree/syntax_tree
2022-07-26Add support for Dune (#4263)Albert Peschar
* Add support for dune * Add test * Undo reformatting of Markdown file * Refer to ale-ocaml-dune from ale.txt
2022-07-07Add support for Laravel Pint (#4238)Michael Dyrynda
* add support, docs, tests for Laravel Pint * fix php-cs-fixer link * add missing project-without-pint * fix indentation * fix pint executable in pint fixer test * fix variables, docs related to pint support
2022-07-02Allow `shfmt` fixer to use `.editorconfig` (#4244)Henrique Barcelos
* fix: added support for local solhint executable * feat: added support for matching parse errors * test: added test for solhint command callback and handler * chore: removed command callback test * refactor: made solhint handler structure closer to eslint * refactor(shfmt-fixer): remove derivation of default CLI arguments
2022-06-16Add pyflyby fixer (using its tidy-imports script) (#4219)infokiller
* add pyflyby fixer updates * pyflyby: add docs updates * add tests to pyflyby fixer
2022-05-17Add zig fmt support (#4198)Arash Mousavi
* Add zig fmt support * Review changes * Fix linter errors
2022-05-16Add support for Packer (#4192)Zhuoyun Wei
* Add support for HashiCorp Packer * Add test for packer fmt * Add doc for HCL/Packer * Add link to Packer doc * Also suggest packer fix for packer ft * Add more links to TOC
2022-05-16add rego support (#4199)Reza J. Bavaghoush
* add opa fmt fixer for rego files * add opa linter * add basic tests for linter and fixer * add cspell to the docs
2022-04-06Add buf linter and fixer (#4128)Alex McKinney
* Add buf lint to linters * Add buf format to fixers * Fix test/linter/test_buf_lint.vader * Fix test/fixers/test_buf_format_fixer_callback.vader * Simplify test/test-files/proto/testfile.proto * Add buf-lint alias and rename linter
2022-01-04Add dprint fixer (#4024)Nathan
* Add dprint fixer * Fix windows tests * dd dprint documentation
2021-12-28Add auto-fixer for crystal (#4016)Alex Piechowski
2021-12-25Fix 3998 - add language option to uncrustify fixer (#4007)Horacio Sanson
2021-11-12Implement statix Linter and Fixer (#3969)David Houston
* Add Statix for Linting Add `statix check` as a linter. Provides a simple set of definition tests additionally. Variable names specify "check" to allow for later addition of `statix fix` as a formatter once stream support is added. Signed-off-by: David Houston <houstdav000@gmail.com> * Fixup Supported Tools List I didn't realise there were two separate lists of tools, so add statix to the other list. Also, remembered "S" comes after "R", and so re-ordered it. Signed-off-by: David Houston <houstdav000@gmail.com> * Fix statix Test File I refactored the variables for statix to allow for writing a fixer later, and forgot to update them in the test, so update them now. Also remove a stray "i", add missing space before checks Signed-off-by: David Houston <houstdav000@gmail.com> * Update Output Stream for v0.4.0 statix v0.4.0 provides a breaking change of output stream from stderr to stdout. Signed-off-by: David Houston <houstdav000@gmail.com> * Add statix fix Fixer Implement statix fix as a fixer for simple Nix antipatterns. Signed-off-by: David Houston <houstdav000@gmail.com> * Fix statix Fixer Tests Fix the statix fixer tests by removing the unnecessary 'read_temporary_file' value from the command, since it simply uses the default value. Signed-off-by: David Houston <houstdav000@gmail.com> * Add statix Handler Test Add a test for the statix handler per @hsanson's request. Signed-off-by: David Houston <houstdav000@gmail.com> * Fix to run only on stdin for linting Signed-off-by: David Houston <houstdav000@gmail.com>
2021-11-09Implement gofumpt Fixer (#3968)David Houston
* Implement gofumpt Fixer Add an implementation with test and documentation for the gofumpt go code formatter, a stricter formatter than your standard "go fmt". Signed-off-by: David Houston <houstdav000@gmail.com> * Add gofumpt to ale.txt TOC Forgot to add gofumpt to the ALE vim help Table of Contents, so do so. Signed-off-by: David Houston <houstdav000@gmail.com> * Fix Test Setup Method Capitalization I had put "Setup" instead of "SetUp" for "ale#assert#SetUpFixerTests". Fix such. Signed-off-by: David Houston <houstdav000@gmail.com> * Fix typos Add a missing space, remove an extra bracket by actually running tests locally first. Would've been smart to do that from the beginning... Signed-off-by: David Houston <houstdav000@gmail.com>
2021-10-16Fix 3941 - add version check to isort fixer (#3942)Horacio Sanson
2021-10-11erblint as fixer (#3935)Roeland
* fixer erblint * erblint fixer test
2021-09-23Fix: Failed to execute rubocop fixer on other machine (#3916)Yuto Ito
2021-09-21Add support for jsonnetfmt and jsonnet-lint (#3907)Trevor Whitney
* update to lates Signed-off-by: Trevor Whitney <trevorjwhitney@gmail.com> * fix up docs Signed-off-by: Trevor Whitney <trevorjwhitney@gmail.com> * fix docs Signed-off-by: Trevor Whitney <trevorjwhitney@gmail.com> * get tests passing Signed-off-by: Trevor Whitney <trevorjwhitney@gmail.com> * update regex Signed-off-by: Trevor Whitney <trevorjwhitney@gmail.com> * use ale#Pad and AssertFixer Signed-off-by: Trevor Whitney <trevorjwhitney@gmail.com>
2021-09-10Fix 3897 - add poetry to isort (#3898)Horacio Sanson
Co-authored-by: Horacio Sanson <horacio@allm.inc>
2021-08-25Add fixer for "dotnet format" (#3879)Jelte Fennema
The .NET ecosystem has an official tool for formatting its files: `dotnet format` This adds support for that tool to ALE.
2021-08-09Dhall fixes: use stdin, doc errors (#3868)toastal
* purs-tidy * Dhall fixes: use stdin, docs errors
2021-08-09purs-tidy fix (#3867)toastal
* purs-tidy * Fixup for purs-tidy
2021-08-09Adds fixer for golines (#3862)pigfrown
* Adds fixer for golines * Repositions golines docs to be in alphabetical order * Fixes golines doc tag * Fixes formatting for golines docs
2021-08-08`purs-tidy` for PureScript (#3863)toastal
* purs-tidy * update email address for toastal
2021-07-25Python support poetry (#3834)Daniel Roseman
* Add poetry support to python linters and black fixer. * Update python.vim to detect poetry project. * Update ale.vim, add an option for poetry `g:ale_python_auto_poetry`. * Update ale-python.txt, add poetry support. * Add and update poetry related tests. Co-authored-by: unc0 <unc0@users.noreply.github.com>
2021-07-16Add support for `dart format` fixer (#3764)ghsang
2021-07-14added filename to stdin stream of isort (#3815)Jeff Willette
modified tests to run with new format Co-authored-by: Jeff Willette <jeff@Jeffs-MacBook-Pro.local>
2021-07-13add autoflake fixer (#3779)Nikolay Zakirov
* first attempt * added autoflake executable * added Windows executable for appveyor * delete unused files * corrected wrong sorting
2021-07-09Add support for `lua-format` fixer. (#3804)Mathias Jean Johansen
2021-07-04Add pandoc as a markdown fixer (#3641)Jesse Hathaway
Utilize pandoc to fix markdown files, currently set to Github-Flavored Markdown, but that can be changed by setting, ale_markdown_pandoc_options.
2021-07-04black fixer: --pyi option was appended without a space (#3759)Buck Evan
2021-07-03Add stylua fixer for lua (#3789)Robert Liebowitz
2021-05-25Use stdin/out for cmake-format (#3725)awang
cmake-format added support for reading from/outputting to stdin/out as of v0.3.6, released 2018-04-10 (commit 2e2aff2) [0]. Reading from stdin is preferable over reading from a temporary file because when given a concrete file cmake-format will look for its config file (.cmake-format.py or similar) in the parent directories of the provided file. If the temporary file is off in a tmpdir somewhere (e.g., /tmp on *nix), cmake-format will almost certainly not come across the user's intended format configuration file, making it appear that cmake-format is ignoring the config file. If cmake-format reads from stdin, though, it'll look for its config file in its current working directory and its parent directories, in a similar manner to clang-format. This has a much higher chance of running across the intended config file. [0]: https://github.com/cheshirekow/cmake_format/releases/tag/v0.3.6 Co-authored-by: Alex Wang <ts826848@gmail.com>
2021-04-20Fix stylelint not obeying project-specific rules (#3272)Jay Sitter
* Fix stylelint not obeying project-specific rules * Fix tests * Fix test * Fix test
2021-04-09feat: Add protolint as linter and fixer (#2911)yohei yoshimuta
2021-04-07apple-swift-format: linter and fixer with config swiftpm support (#3671)bosr
2021-03-26Add support for V: "v" (compiler) and "vfmt" fixer. (#3622)fiatjaf
* v: add "v fmt" fixer. * v: add "v" (build) linter. * v: fix vlint complaints and add documentation. * v: add tests. * v: use ale#Pad().
2021-03-24Add nixfmt as a Nix fixer. (#3651)David Houston
* Add nixfmt fixer. * Replace manual options pad with ale#Pad()
2021-03-23Switch to using buildifier's -path option (#3640)Jon Parise
Buildifier offers a -path command line option: > Buildifier's reformatting depends in part on the path to the file > relative to the workspace directory. Normally buildifier deduces > that path from the file names given, but the path can be given > explicitly with the -path argument. This is especially useful when > reformatting standard input, or in scripts that reformat a temporary > copy of a file. This lets us drop our `-type`-guessing logic. For the moment, we rely on the buffer filename being "relative to the workspace directory", which it generally is, but in a future change, we should introduce logic that will locate the WORKSPACE file and adjusts the filename relative to that directory. This could be complicated based on the working directory in which `buildifier` is executed, so a little more research is necessary to implement that logic correctly.