summaryrefslogtreecommitdiff
path: root/ale_linters
AgeCommit message (Collapse)Author
2022-02-02Fix unhandled nix versions for linter 'nix' (#4045)HEADmasterJeffrey Lau
Previously, it would not generate any lint messages for nix 2.5. Moreover, it would cause this error whenever the nix command is invoked, when paired with a custom `g:ale_command_wrapper`: Error detected while processing function <SNR>92_NeoVimCallback[29]..<lambda>27[ 1]..<SNR>90_ExitCallback[28]..ale_linters#nix#nix#Command: line 1: E684: list index out of range: 0
2022-02-02Allow to configure haskell-language-server LSP config (#4038)Tomáš Janoušek
2022-01-07Add yaml-language-server support for YAML (#2874) (#4029)Jeffrey Lau
2022-01-05Fix 3838 - deprecate datanalyzer (#3839)Horacio Sanson
Co-authored-by: Horacio Sanson <horacio@allm.inc>
2022-01-05Fix 4025 - Allow to configure texlab LSP settings (#4027)Horacio Sanson
* Fix 4025 - Allow to configure texlab LSP settings * Fix ale_tex_texlab_config type in help
2022-01-05Fix execution of the Angular language server for HTML filesw0rp
2021-12-13Fix crash for Reek 6.0.4 (#4010)Phong Nguyen
When `let g:ale_ruby_reek_show_wiki_link = 1`, Reek linter is crashed because `wiki_link` attribute does not exist in result. It seems that `wiki_link` is now replaced with `documentation_link` in recent version of Reek
2021-12-11add support for checkov for linting terraform files (#4006)thyme-87
* add support for checkov for terraform * add tests for checkov handler * add basic linter config tests for checkov * update supported tools and languages lists * simplify ale_linters#terraform#checkov#Handle * ensure "-o json --quiet" is always set for checkov * add documentation for checkov including config options * fix tests after changing handling of default options for checkov * add checkov to list of tools in doc/ale.txt
2021-12-09Pass full path to pydocstyle (#3995)Brendan Maginnis
* Pass full path to pydocstyle * Update pydocstyle tests
2021-11-21Add volar support for vue (#3992)Arnold Chand
* feat-draft: inital volar setup * feat(volar): add documentation * feat(volar): include default init opts * feat(volar): add initial tests * fix(volar): add possible project roots * fix(volar): tests - use empty files
2021-11-19Add cspell Linter (#3981)David Houston
* Add cspell linter Add cspell linter, with the languages it supports. Signed-off-by: David Houston <houstdav000@gmail.com> * Add cspell Global Variables Documentation Add documentation to /doc/ale.txt with cspell configuration options. Signed-off-by: David Houston <houstdav000@gmail.com> * Add cspell to docs, Minor Cleanup Add cspell for each supported language, adding some spaces and removing others when caught navigating the file. Signed-off-by: David Houston <houstdav000@gmail.com>
2021-11-18Restore checkmake linebreaks (#3986)Dan George
* Add cppcheck handler match on misra msg * Add linebreak to checkmake formatter Co-authored-by: Dan George <dgeorge@anduril.com>
2021-11-18Adds PHPActor Linter (LSP) (#3975)Arie Oldman
* Adds phpactor lsp linter * Fixes missing comma * Adds tests for phpactor lsp linter * Adds note that this part is not my own work * Removes unused variable * Adds phpactor to supported tools list * Fixes doc sorting * Wraps phpactor in code tags
2021-11-15Find composer.json when searching for psalm (#3979)Daisuke Shimamoto
* Look for nearest composer.json before .git * Add test for projects with composer.json
2021-11-15Add support for AVRA linting (#3950)Utkarsh Verma
* Add support for AVRA linting * Add tests for AVRA linting and improve code * Fix test * Fix warning detection * Fix test * Fix test * Add AVRA as a supported language in docs
2021-11-12Add sub_type to Elvis output (#3976)Dmitri Vereshchagin
Elvis is Erlang style reviewer, thus all loclist objects should have sub_type set to style.
2021-11-12Adds --memory-limit support for phpstan (#3973)Arie Oldman
* Adds --memmory-limit option for PHPStan linter * Updates docs for phpstan --memory-limit option. * Adds Arizard to authors * Adds test for phpstan memory limit parameter * Fixes order of parameters in test * Changes dash to underscore
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-10-24Add support for zeek (#3952)Benjamin Bannier
2021-10-22Re-apply #3538 - remove -T argument from ruby linter (#3951)Andrew Hayworth
The `-T` option (for "taint checking") was deprecated in ruby 2.7 and removed entirely in ruby 3.0. This causes the linter to fail entirely for users of ruby 3.0. This was reported in #3537, and then fixed in #3538 - but it seems as though in 9fe7b1fe6a23fb55e6d782293585d58193123f59, it was accidentally and entirely undone. This commit is essentially identical to #3538, aside from a path change for the tests.
2021-10-19Parse clj-kondo lines that don't include row/col (#3946)Randy Stauner
Some custom linter hooks don't include these numbers.
2021-10-19fix(hadolint): set code field as well (#3943)infokiller
2021-10-09Add support for erblint (#3931)Roeland
* support for erblint * fix tests * test for handler * wrong names * typo * doc layout * CI failed?
2021-10-02Add flakehell python linter (#3295) (#3921)a666
2021-10-02feat: add deno lsp for javascript (#3924)Arnold Chand
* feat(js/deno): add deno lsp * fix(doc/typescript): typo * feat(doc/javascript): add deno lsp information * feat(doc/supported-tools): add deno to js list, sorted * fix(doc/javascript): update ToC and supported tools w/ deno
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-17[YAML] CircleCI: skip checking for new tool version (#3902)Götz Christ
This way the tool runs a bit faster and we don't create unneeded network requests. Don't know if there are other network requests still occurring.
2021-09-11Robot framework rflint support (#3715)Samuel Branisa
* Create rflint.vim support for robot framework by creating ale definition for rflint syntax linter * robot framework - rflint support
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