summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
2021-07-04Solidity solc linter compatible with 0.6/0.7/0.8 (#3763)Néstor Coppi
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-04Let R_languageserver consider .Renviron (#3744)ourigen
* Fix languageserver.vim to consider Renviron * Update test_r_languageserver.vader * Update credits
2021-07-04Change checkstyle's output sub_type to style (#3780)Frederick Zhang
2021-07-04fix: cflags parser: no absolute path for '-include' (#3775)Michael Jeanson
Both '-include' and '-imacros' take a file as an argument that will then be searched in the include path like a regular '#include "..."' statement in a source file. As such, they should not have their path converted to an absolute path. Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
2021-07-04racket/raco: add filename to loc list (#3777)D. Ben Knoble
This allows the location list from one buffer to point to an issue in another; previously, the error message would be shown but with no way to jump to it.
2021-07-04[PHP] PhpStan also looks for .dist config file (#3765)Filippo Tessarotto
* [PHP] PhpStan also looks for .dist config file * Add tests
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-07-03Change default of go_staticcheck_lint_package to 1 (#3799)Yuxuan 'fishy' Wang
Fixes https://github.com/dense-analysis/ale/issues/3798.
2021-06-19fix(eslint): yarn 2 project cwd (#3684)Shannon Moeller
* eslint-handler: fix getcwd when there is no node_modules
2021-06-19#3719 - Prevent redir being used again in futurew0rp
2021-06-19Move a test file to match the newer locationw0rp
2021-06-19Close #3433 - Only use noselect if set for automatic completionw0rp
2021-06-19Close #3770 - Add support for checking circleci configsw0rp
2021-05-27Make staticcheck configurable with GOPATH detectionw0rp
2021-05-27ocaml: prepare for filetype separation (#3732)Pau Ruiz Safont
The ocaml filetype is currently used for several, different file formats. This causes problems as not all tools support all formats. New filetypes are introduced to support this separation, this needs some changes in ale that are fortunately backwards-compatible. These change add ocamlinterface file support for ocp-indent, merlin, ocamlformat and ocaml-lsp. For ocaml-lsp I took the liberty to add all recognised language ids, even if they are not supported. ols has not been changed as the project has been abandoned since 2019.
2021-05-26Enable gopls by default with GOPATH detectionw0rp
2021-05-25Don't use a temporary file for tflint (#3717)David Hotham
* Don't use a temporary file for tflint * set cwd for tflint
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-05-25Allow lintr to consider .Renviron settings. Fix #3391 (#3727)ourigen
* Fix lintr.vim to consider Renviron * Update test_lintr.vader to match lintr.vim fix * Update credits Co-authored-by: ourigen <ourigen [at] pm.me>
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-15Updated `solhint` linter to be able to use a local installation (#3682)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
2021-04-10hadolint: fix color output and stdin shown as "-" (#3680)infokiller
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-30improve DMD handler (#3647)Remi Thebault
* improve DMD handler - ignore errors from other files - catch 'Deprecation' as warning - add tests * adding filename key instead of filtering * update dmd test * fix test dmd windows
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-23Add more parameters to the DMD linting command (#3639)Remi Thebault
* Add more parameters to the DMD linting command fixes #3637 * adding tests for dmd linter * adding dmd test for windows
2021-03-21#3633 - Move linter tests into test/linterw0rp
2021-03-20add support for svelte via svelteserver language server (#3644)fiatjaf
* add support for svelte via svelteserver language server * svelte: fix Vint error and add a `svelteserver` simple test. Co-authored-by: Joakim Repomaa <mail@j.repomaa.com> Co-authored-by: Joakim Repomaa <mail@jreinert.com>
2021-03-20#3633 - Put all dummy test files in test/test-filesw0rp
2021-03-19Add desktop-file-validatew0rp
2021-03-19Fix a typo in a test filenamew0rp
2021-03-18issue 3033 (#3620)Nathan Henrie
* Add ale_python_pyls_options * Add extra explanatory detail * Fix alignment * Fix test
2021-03-15#3632 Add ale#util#MapMatchesw0rp
2021-03-15Fix ale#path#Dirname on Windowsw0rp
2021-03-14Check user systemd unit files with systemd-analyzew0rp
2021-03-14Close #2102 - Add support for the Angular language serverw0rp
2021-03-12Fix texlab#GetProjectRoot (#3610)ourigen
* Fix texlab GetProjectRoot * Fix indents in texlab#GetProjectRoot * Prevent texlab from starting on every tex file * Update texlab Vader tests * Fix GetProjectRoot to return parent of .git Previously, the function returned `../.git/`. We want the function to return the parent directory above that as the project root. This should help pass Vader tests.
2021-03-04Fix 3605 - set fallback for error detail (#3606)Horacio Sanson
* Fix 3605 - set fallback for error detail * Add use case with no detail key Co-authored-by: Horacio Sanson <horacio@allm.inc>
2021-03-01#3599 - Use ale_root instead of ale_lsp_rootw0rp
The `ale_lsp_root` setting is now deprecated, and `ale_root` should be used instead. The setting will be used for both setting the root easily for LSP linters, and for running other linters over whole projects.
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-28Fix ansible-lint linter definition. (#3601)serapas
* Fix ansible-lint linter definition. Use ansible-lint's feature auto-detection instead of temporary file. For auto-detection to work, ansible project has to be also a git repository. Don't use yaml rules. These are checked by yamllint. Refactor pattern to work with ansible-lint >=5.0 version. Clean-up obsolete test cases. * Pull Request changes
2021-02-23Fix 3537 - remove -T argument from ruby linter (#3538)Horacio Sanson
Co-authored-by: Horacio Sanson <horacio@allm.inc>
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.