summaryrefslogtreecommitdiff
path: root/ale_linters
AgeCommit message (Collapse)Author
2021-09-10[python/pyre.vim] Fix pyre persistent behavior (#3895)Oliver Albertini
It's necessary to provide a `-l` option to pyre with the closest parent directory containing a `.pyre_configuration.local` file, or simply change directory (cwd) to the root of the pyre project. Thanks to Ken Verbosky for the code that fixes this. Error seen when not using such a solution: ``` 1031.473923 on 6: Dropping message 'ƛ Background task unexpectedly quited: Invalid configuration: Cannot find any source files to analyze. Either `source_directories` or `targets` must be specified. ``` Issue with this approach is that if you are editing files under different projects, the `pyre persistent` process is not re-created for each file. We have to do `:ALEStopAlllsps` in order for the process to start with the new working directory. Co-authored-by: Oliver Ruben Albertini <ora@fb.com>
2021-09-08Improve the thriftcheck handler pattern (#3893)Jon Parise
More recent versions of thriftcheck use a more compliant GCC-style output format which includes a space before the "severity" group. This matches similar tools, like shellcheck. This change adjusts the handler's pattern to parse this format in a backwards-compatible way (even though backwards compatibility isn't critical long-term as thriftcheck itself is close to its 1.0 release).
2021-08-21Close #3872 - Add eslint-plugin-jsonc as a linter for JSON, JSONC and JSON5 ↵João Pesce
(#3873) * Add eslint as linter for JSON, JSONC and JSON5 Use the same lint configuration as eslint for javascript. * Add documentation for JSON* eslint support * Fix spacing in documentation * Update docs to be unopinionated about plugins Remove any preference for eslint plugins, since there are more thant one that would work * Reorder languages and tools in alphabetic order * Fix misalignment * Change orders to pass the tests
2021-08-06Fix lint tests failing due to multibyte chars. (#3858)Horacio Sanson
For some reason CI tests started failing with these errors: > ale_linters/eruby/erb.vim:1:1: Use scriptencoding when multibyte char exists (see :help :scriptencoding) > ale_linters/mail/languagetool.vim:1:1: Use scriptencoding when multibyte char exists (see :help :scriptencoding) Not sure at which point or what changed for this to happen but this MR fixes it by removing the multibyte chars present on the problem files. Co-authored-by: Horacio Sanson <horacio@allm.inc>
2021-08-04Add a thriftcheck linter (#3852)Jon Parise
ThriftCheck (https://github.com/pinterest/thriftcheck) is a linter for Thrift IDL files.
2021-07-31Do not use tempfiles for ansible lint (#3846)Henrik Farre
* Used %s instead of std in * Set lint_file to 1 for ansible-lint so it does not use temp files * Fix test for ansible-lint
2021-07-25Add support for `dart analyze` (#3825)ghsang
2021-07-25Add importMap option to deno Initialization Options (#3827)Arnold Chand
* feat(deno): move init options to handlers * feat(deno): add deno lsp support for js files * feat(deno): use default map option * feat(docs): add deno import map option * feat(deno): add tests for importMap option * fix(deno): use full path in importMap * feat(deno): remove deno as linter for js, separate PR * fix(deno): test for executable * fix(deno-test): include filename to simplify function
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-20racket: support racket-langserver lsp (#3808)D. Ben Knoble
* racket: support racket-langserver lsp * racket-langserver: find highest dir with init.rkt * autoload/ale/racket: re-indent to 4 spaces * racket: lint: sort supported tools * racket: lint: function! This is _not_ needed anymore, but the lint wants it. See :help E127 * racket-langserver: do not use new dict format * racket: lint: use snake_case * add tests for racket-langserver * racket-langserver tests: correct result values
2021-07-20Fix 3673 - Add nocolor option to ansible-lint (#3811)Horacio Sanson
Co-authored-by: Horacio Sanson <horacio@allm.inc>
2021-07-17Add option to clojure clj-kondo linter (#3812)莊喬
Allow define `clojure_clj_kondo_options` to customize command options for `clj-kondo`. The `--cache` in original command is now defined as default.
2021-07-17Update erlang format for OTP24 (#3823)Jose Maria Perez Ramos
Erlang's erlc error format includes the column in OTP24. See https://blog.erlang.org/My-OTP-24-Highlights/#column-number-in-warnings-and-errors
2021-07-12Add Yosys linter for Verilog files. (#3713)Nathan Sharp
* Add yosys for verilog files. * Add handler test for yosys. * fix typo in yosys handler test * fix array order in yosys handler test * add yosys linter to filetype defaults test * fix duplicate tag * add 'yosys' to 'ale-supported-languages-and-tools.txt'
2021-07-10add phpstan local executable detection (#3809)Michael Weimann
2021-07-09Add support for multiline messages (#3686)Grégoire Paris
This is achieved by switching to JSON, which makes it much easier to avoid confusion between an error message and the next one. It also spares us from having to deal with regular expressions, and eliminates some edge cases that no longer need to be tested.
2021-07-09chore: replace python-language-server to supported pylsp (#3810)Gerardo Gómez Rodríguez
As mentioned in #3722 palantir's python-language-server is no longer maintained. The alternative is to use the community-driven https://github.com/python-lsp/python-lsp-server.
2021-07-05hadolint: multiple fixes and adapt expected format (#3678)Moritz Röhrich
- Show hadolint rule number in vim gutter in addition to `ALEDetails` - Capture and show error in case of syntax errors - Add tests for error capture - Adapt existing tests fixes: #2333 fixes: #958
2021-07-05Add stdin ("-") to the command-line arguments of ansible-lint >=5.0.0 (#3786)James Cherti
* Added an explicit stdin argument to ansible-lint >=5.0.0 (ansible_lint.vim). This commit fixes the issue "<<NO OUTPUT RETURNED>>": ``` :ALEInfo (finished - exit code 0) ['/bin/bash', '-c', ''ansible-lint'' --parseable-severity -x yaml < ''/tmp/vVyvn4B/7/test2.yml''] <<<NO OUTPUT RETURNED>>>' ``` Reason: Ansible-lint ignores stdin when "-" or "/dev/stdin" is not specified explicitly. Tested with: ansible-lint 5.0.12 using ansible 2.11.2 * Update ansible-lint tests.
2021-07-04Solidity solc linter compatible with 0.6/0.7/0.8 (#3763)Néstor Coppi
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-04Add support for rpmlint 2.0.0 (#3757)Carl Smedstad
The -o/--option flag was removed in version 2.0.0 of rpmlint. Providing this causes rpmlint to fail and provide no output. Only provide this flag to rpmlint if the version is less than 2.0.0.
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-03Change default of go_staticcheck_lint_package to 1 (#3799)Yuxuan 'fishy' Wang
Fixes https://github.com/dense-analysis/ale/issues/3798.
2021-06-22Fixes an index error with Java files. (#3706)Stefan Braun
Co-authored-by: w0rp <w0rp@users.noreply.github.com>
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-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-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-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 clangd with CUDA (#3598)Tommy Chiang
* add support for clangd with CUDA * add clangd with CUDA in supported-tools.md * add doc for clangd with CUDA
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-19Add desktop-file-validatew0rp
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-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-07Solve #3611 (#3612)Victor Fernandez
Fix dmd not using dub