summaryrefslogtreecommitdiff
path: root/test/linter
AgeCommit message (Collapse)Author
2023-03-07Add deadnix linter (#4443)Albert Peschar
2023-02-09Add support for llvm-mc as an assembly linter (#4446)javad
2023-02-08Fix CI BSw0rp
2023-02-08#2172 Auto PATH with ale_python_auto_virtualenvw0rp
Automatically set `PATH` for some Python linters that seem to need it when g:ale_python_auto_virtualenv or b:ale_python_auto_virtualenv is `1`.
2023-02-08Close #4389 - Run pyright via poetry, pipenv, venvw0rp
Add support for automatically detecting and running Pyright via poetry, pipenv, and virtualenv directories just like we do with flake8.
2023-02-08Add support for lua-language-serverw0rp
2023-02-02phpstan: set cwd to configuration file directory (#4422)Albert Peschar
PHPStan will only detect a configuration file in the current working directory, so set that to the directory in which ALE finds the configuration file.
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
2023-01-27fix(ale_linters: python: ruff): add --stdin-filename if version > 0.0.69 (#4414)Actionless Loveless
2022-12-24Fix #4388: Fix pylsp and Pyright cwdw0rp
Add functions to compute the cwd to be the same as the project root for pylsp and Pyright to work around issues in each language server when they encounter modules that share the same name as first or third party libraries.
2022-12-06add: support for refurb as a Python linter (#4379)Yining
this commit adds refurb as a Python linter, together with some tests and documentation. it should fix issue: #4362 refurb repo: https://github.com/dosisod/refurb
2022-11-25Fix 4246 - Add ansible language-server (#4355)Horacio Sanson
2022-11-21Implement support for SQL linter sqlfluff (#4361)Carl Smedstad
2022-11-21Markdown: allow passing custom executable for markdownlint (#4358)Götz Christ
2022-11-06add: support config option for checkmake linter (#4351)Yining
`checkmake` by default checks config file "in the same folder it's executed in" unless `--config` option is set. This commit allows setting the `--config` option with an option variable (with documentation updated).
2022-10-31add: support for ruff as a Python linter and fixer (#4347)Yining
this commit adds ruff as both a Python linter and fixer, together with some tests and documentation. ruff repo: https://github.com/charliermarsh/ruff
2022-10-29Add erlang_ls linter for Erlang files (#4346)Dmitri Vereshchagin
2022-10-29codespell: fix spelling errors picked out by `codespell` (#4343)Ben Boeckel
2022-10-12cc: fix using '-x c*-header' for header files with GCC. (#4334)Nicolas Pauss
Gcc does not support `x c*-header` when using `-` as input filename, which is what ALE does. Rework the feature to only use `-x c*-header` flag when using Clang and not GCC. The feature is now also controlled with the variable `g:ale_c_cc_use_header_lang_flag` and `g:ale_cpp_cc_use_header_lang_flag`.
2022-10-04Add support for tfsec Terraform linter (#4323)koka
2022-09-25cc: use '-x c*-header' for header files for C and C++ linters. (#4318)Nicolas Pauss
When linting an header file in C or C++, `-x c-header` or `-x c++-header` should be used instead of `-x c` or `-x c++`. Using `-x c` or `-x c++` for headers files can lead to unused variables and functions marked as static inlined as seen in #4096. Using `-x c-header` or `-x c++-header` solve these issues. The list of file extensions that are considered as header files can be configured with the variables `g:ale_c_cc_header_exts` and `g:ale_cpp_cc_header_exts`.
2022-09-22Pass input via stdin and filename as arg to clj-kondo (#4315)Christoph Frick
This allows using linters like `:namespace-name-mismatch`. This replaces: https://github.com/dense-analysis/ale/pull/4109
2022-09-21bicep: Lint files on disk instead of buffer (#4311)Carl Smedstad
I discovered that references to other Bicep files (modules) will be broken if running on a temporary file in a different location. I've found no way of providing an alternate path when invoking the command.
2022-09-14Add support for Microsoft's DSL Bicep (#4310)Carl Smedstad
* Add support for Microsoft's DSL Bicep The compilation command 'bicep build' catches compilation errors as well as providing some lint warnings. Repository for Bicep: https://github.com/Azure/bicep * Different null file on Windows & hardcode commands
2022-09-08Allow to pass options to the buf linter and fix callback. (#4300)Guangqing Chen
* Allow to pass options to the buf linter * Fix the callback of buf linter
2022-08-07Add openscad and sca2d support (#4205)Nathan Henrie
2022-07-22cairo support (#4256)0xHyoga
* cairo support * supported languages txt * add cairo to ale.txt
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-05-15support ember-template-lint 4.x (#4200)James C. Davis
* support ember-template-lint 4.x * update ember-template-lint linter test
2022-05-09Add support for ansible-lint 6.0.0 (#4189)Matt Perry
ansible-lint 6.0.0 removed the `--parseable-severity` option. Use the JSON output in its place. Fixes #4188
2022-05-04Use stdin for Selene Lua linter (#4183)zandr
When I added Selene as a linter, I wasn't aware it had the option to process stdin using `-`.
2022-04-30Add support for selene Lua linter (#4169)zandr
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-04-01Add neovim 0.6 to run-tests (#3998)Horacio Sanson
* Update test scripts * Remove neovim 0.3 and 0.4 * Add neovim 0.6.1 Co-authored-by: Horacio Sanson <horacio@allm.inc> Co-authored-by: w0rp <devw0rp@gmail.com>
2022-03-23rust-analyzer for non-Cargo projects (#4118)Felix Maurer
* rust-analyzer in non-cargo projects rust-analyzer can also be used in non-cargo projects. This requires a rust-project.json file in the project root [1]. Make the rust-analyzer linter search for a rust-project.json file if no Cargo.toml file could be found. [1]: https://rust-analyzer.github.io/manual.html#non-cargo-based-projects * Document rust-analyzer without cargo * Test rust-analyzer with non-cargo projects Change the other rust tests to match the new directory structure of the test files.
2022-03-20Make it possible to override awk --lint option (#4114)Barnabás Ágoston
Currently, it's not possible to override the awk `--lint` option with ```viml let g:ale_awk_gawk_options = '--lint=no-ext' ``` although this could be useful for those who only use gawk and don't want to get these lint errors: > FEATURE X is a gawk extension The idea is to move the default `--lint` option before the `awk_gawk_options` in the gawk.vim code to give the custom `--lint=...` option a higher precedence. Co-authored-by: Barnabás Ágoston <barna@agoston.dev>
2022-02-20Fix 4086 - use stable command options for rustc (#4087)Horacio Sanson
2022-02-08Add a unimport linter for Python files (#4058)Jon Parise
Unimport (https://github.com/hakancelik96/unimport/) is a linter, formatter for finding and removing unused import statements. This introduces linting support, although fixer support could come later.
2022-02-06Add CMake linter cmake-lint (#4036)Carl Smedstad
* Add CMake linter cmake-lint Add support for the CMake linter provided by https://github.com/cheshirekow/cmake_format. * Escape cmake-lint executable and add linter tests
2022-02-06Add oelint-adv support (#4043)offa
2022-02-04Add `naga` linter for WGSL support (#4047)Linda_pp
* Add WGSL support using `naga` command * Add documents for wgsl * Add test for `naga` linter * Separate naga handler callback to hanlder/naga.vim
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-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-20Fix --file-filter option on cppcheck command (#3987)Dan George
* Add cppcheck handler match on misra msg * Fix cppcheck --file-filter setting This time, the tests and actually usage both work. Co-authored-by: Dan George <dgeorge@anduril.com>