summaryrefslogtreecommitdiff
path: root/test/fixers
AgeCommit message (Collapse)Author
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.
2021-03-23Add support for `ptop` fixer (#3652)BarrOff
* Add support for `ptop` fixer * add test file for ptop tests * called wrong fixer in assertion test * use ' %s %t' instead of ' %t %t'
2021-03-21#3633 - Move linter tests into test/linterw0rp
2021-03-20#3633 - Put all dummy test files in test/test-filesw0rp
2021-03-01Close #2281 - Separate cwd commands from commandsw0rp
Working directories are now set seperately from the commands so they can later be swapped out when running linters over projects is supported, and also better support filename mapping for running linters on other machines in future.
2021-02-28Add support for `erlfmt` fixer (#3602)Antoine Gagné
* Add support for `erlfmt` * Add missing entry to table of contents * Fix warnings * Add missing tools to supported tools
2021-02-21Add a buildifier fixer for Bazel files (#3499)Jon Parise
This fixer enables buildifier's formatting and "lint fix" modes. Additional options can be provided via `bazel_buildifier_options`. It also implements some basic logic for guessing the file's type. buildifier itself usually does this based on the filenames provided on the command line, but because we're piping our buffer via stdin, we need to do this manually.
2021-02-18add support for prettier-ruby to prettier fixer (#3593)David Buchan-Swanson
it _does_ need an additional plugin, but when it has the plugin, it works as expected.
2021-02-14Allow clangformat to use a local style file (#3587)Mukund Mauji
* Allow clangformat to use a local style file. * Add tests. * Fix Vint issue. * Improve explanation of feature in documentation. * Fix failing test. The test was checking the wrong directory.
2021-02-05Merge pull request #3576 from cyyever/fish_indentHoracio Sanson
Fish indent
2021-01-23Merge pull request #3521 from hsanson/3498-change-standardrb-fixer-to-use-stdinHoracio Sanson
3498 change standardrb fixer to use stdin
2021-01-22fixers/xo: remove unnecessary directory crawlCharles B Johnson
2021-01-22fixers/xo: support monoreposCharles B Johnson
2021-01-22fixers/xo: support stdin relative to the fixed fileCharles B Johnson
2021-01-22fixers/xo: support typescript optionsCharles B Johnson
2021-01-22fixers/xo: refactor to handlersCharles B Johnson
2021-01-22fixers/xo: add testsCharles B Johnson
2021-01-22Update testsHoracio Sanson
2021-01-20Merge pull request #3261 from toastal/dhallHoracio Sanson
Enhanced Dhall fixer support
2021-01-08Merge pull request #3386 from ivorpeles/masterHoracio Sanson
Make isort fixer recognize auto_pipenv flag
2020-12-21merging mastertoastal
2020-11-29Merge pull request #3381 from andreypopp/gofmt-stding-stdoutHoracio Sanson
Use stdin/stdout to communicate with gofmt
2020-11-25Ensure isort / pipenv test conforms to ALE coding standardsIvor Peles
2020-11-25feat: add yamlfix fixerLyz
2020-11-21Add test for isort with auto_pipenv flag(s)Ivor Peles
2020-11-21Merge pull request #3409 from lyz-code/feat/add-autoimport-supportw0rp
feat: add autoimport fixer
2020-11-21Merge pull request #2903 from davidtwco/ormolu-fixerw0rp
Add ormolu fixer.
2020-11-21Add php phpcbf options (#3383)Dale Jung
* Taken from phpcs. add add_php_phpcbf_options #3382 * Updated docs for php_phpcbf_options #3382 * Added tests #3382
2020-11-21Add luafmt fixer (#3289)zandr
2020-10-31chang fishindent to fish_indentcyy
2020-10-31add doc and testcyy
2020-10-23feat: add autoimport fixerLyz
2020-10-23Add ormolu fixer.David Wood
This commit adds a fixer for the Haskell language, ormolu (https://github.com/tweag/ormolu). Signed-off-by: David Wood <david@davidtw.co>
2020-10-03Use stdin/stdout to communicate with gofmtAndrey Popp
2020-09-14addressing missing docs + cleaning up older Dhall filestoastal
2020-09-08merge master -- apparently someone else added dhall?toastal
2020-08-28Close #3325 - Apply new formatting where possiblew0rp
2020-08-28#3325 - ale#path#BufferCdString now generates %s:hw0rp
2020-08-28Set prettier working directory to where .prettierignore is (#3101)Sorin Iclanzan
Prettier does not use `.prettierignore` unless the current directory is the root where the `.prettierignore` file resides. * Update Prettier tests * Look for prettierignore to determine project root
2020-08-25Add dhall-format as a Fixerpatrick brisbin
https://github.com/dhall-lang/dhall-lang
2020-08-21Fixed testsKhaveesh N
2020-08-20#3299 Merge gcc and clang into a cc linterw0rp
Users can easily be confused when they set some options for a C or C++ compiler, and another compiler is run with different options, which still reports errors. To remedy this, the existing `gcc` and `clang` linters have been replaced with a `cc` linter that will run either compiler. This is a breaking change for ALE v3.0.0.
2020-08-17Merge pull request #3046 from hsanson/2816-fix-standard-fix-doesnt-workw0rp
Fix 2816 - Standard fix does not work.
2020-08-17Add remark-lint for a markdown fixer (#2836)blyoa