summaryrefslogtreecommitdiff
path: root/test/linter
AgeCommit message (Collapse)Author
2024-04-07Make cmake-lint read .cmake-format config file (#4747)Chayoung You
2024-03-12Fix 4740 - add hurlfmt linter (#4741)Horacio Sanson
* Fix 4740 - add hurlfmt linter * Fix 4740 - add hurlfmt fixer * Fix wrong comments * Add end_col to qflist * Fix test
2024-03-02Fix: ruff version `0.3.0` cli breaking changes (#4732)Yining
This commit appends `check` to the ruff executable if the version of specified ruff executable is `>= 0.3.0`, as ruff version `0.3.0` deprecates `ruff <path>` in favor of `ruff check <path>`: https://github.com/astral-sh/ruff/releases/tag/v0.3.0
2024-02-28Fix 4586 - Make golangci-lint lint package on by default. (#4730)Horacio Sanson
Checking whole packages instead of individual files is more sensible default for golang projects. Without this we get many cryptic `typecheck` errors in ALE that do not show when running in terminal or CI.
2024-02-27Fix 4721 - force latex language id on cspell for tex filetype (#4724)Horacio Sanson
* Fix 4721 - force latex language id on cspell for tex filetype * Fix tests
2024-02-27Fix chktex highlighting wrong column when using tabs instead of spaces (#4727)Jorengarenar
* Fix '-s' to be '-S' when setting 'TabSize=1' for chktex Fixes #4712 Closes #4725 * Check if chktex's -S option is available * Check chktex version instead of trying -S option
2024-02-264712 revert chktex 4661 (#4725)Horacio Sanson
* Fix 4712 - revert #4661 * Fix tests
2024-02-24Add full support for biome (#4705)Filip Gospodinov
* Revert "Add biome support for javascript (#4701)" This reverts commit 8922478a83cd06bfe5b82eb45279649adc4ec046. * Add support for biome
2024-02-24Set working directory for Elvis linter (#4726)Dmitri Vereshchagin
Most of the time it works to assume that the current working directory is the root of the project. However, this is not the case for Rebar3 checked out dependencies, for example. It's also worth noting that because of the way Elvis handles file patterns, and because directories in configuration are relative to the project root, the path supplied to command must be also relative.
2024-02-22Slang linter for Verilog. (#4713)AlvinRolling
2024-02-22Update project root detection for erlang_ls linter (#4619)Dmitri Vereshchagin
* Refactor erlang_ls linter tests * Add Rebar3 _checkouts support for erlang_ls linter * Add Erlang.mk support for erlang_ls linter
2024-02-22Adding support for Odin language server (ols). (#4679)Benjamin Block
2024-02-06fix #4687 - only lint one file with actionlint (#4688)Tim Carry
2024-01-14Add language id of cspell (#4700)ohakutsu
2024-01-14Fix chktex highlighting wrong column when using tabs instead of spaces (#4661)Jorengarenar
* Fix chktex highlighting wrong column when using tabs instead of spaces Fixes #723 chktex implemented feature request [1] for allowing setting options from the command line. Thanks to that we can tell it to treat tab character as of one space width, i.e. one char. That means, after we translate the output back to Vim columns, we get correct numbers. [1]: https://savannah.nongnu.org/bugs/?56486 * Add test_tex_chktex.vader * Use functions to set g: variables in ale_linters/tex/chktex.vim * Update ale_linters#tex#chktex#GetCommand() to use '%e'
2024-01-14Actionlint: correctly parse error line when using shellcheck sublinter (#4689)Tim Carry
2024-01-14Support gleamlsp language server for gleam (#4696)Jonathan Palardy
2023-12-10Ruff use json-lines output format (#4656)Finn Steffens
* Ruff use json-lines output format * Fix Ruff: add -q to prevent non json output Using the json-lines output format allows for setting of the end_line, end_col and code field of the handle output. Additionally, the first letter of the code is used to determine the type field. Co-authored-by: w0rp <w0rp@users.noreply.github.com>
2023-12-10fix tempfile for phpmd, to be able to use phpmd 2.14.0 (#4617)Shad
2023-12-07Add clang-check linter for C (#4662)Jorengarenar
* Close #976 - add clang-check to C linters * Update docs
2023-11-08Fix: Ruff output option (#4632)Adam Blackwater
* fix --output-format option * Add conditionally changing flag based on Ruff version
2023-09-17Fix #4499 - Fix solhint >= 3.4.0w0rp
Fix solhint for versions >= 3.4.0, while still supporting older versions. The solhint linter code has been moved out of the `handlers` directory as it does not need to be shared between different filetypes. Code has been simplified. Co-authored-by: Henrique Barcelos <16565602+hbarcelos@users.noreply.github.com>
2023-09-16Close #4541 - Fix Haskell project root detectionw0rp
We weren't joining and returning paths correctly for detecting project roots for Haskell projects, and now we are. Co-authored-by: Rodrigo Mesquita <rodrigo.m.mesquita@gmail.com>
2023-09-16#4454 Clean up more tests and codew0rp
* Remove some tests we no longer need * Delete blocks of redundant code * Compress some tests together to simplify them * Remove a little code for ancient linter versions * Escape more executables we didn't escape before * Rename a deno option that didn't match our conventions
2023-09-14#4607 No conflicts with nvim-lspconfig by defaultw0rp
Default `g:ale_disable_lsp` to a new mode `'auto'` by default. With this setting applied, ALE will now check for the presence of nvim-lspconfig and automatically turn off particular LSP linters if already configured via nvim-lspconfig. For users that do not use `nvim-lspconfig`, everything should work as before.
2023-09-13Add support for Packwerk (#4594)ymap
Packwerk (https://github.com/Shopify/packwerk) is a Ruby gem used to enforce boundaries and modularize Rails applications.
2023-09-11Add lexical for linting elixir projects (#4580)Axel Clark
2023-09-09fix(json): update vscode json lsp name (#4601)Peter Benjamin
* fix(json): update vscode json lsp name * fix(vscodejson): fallback to previous name Co-authored-by: w0rp <devw0rp@gmail.com>
2023-09-09Add `--globals vim` to luacheck automaticallyw0rp
luacheck will run with `--globals vim` automatically if the file is in runtimepath and `--globals` hasn't already been configured.
2023-09-08#4454 Clean up root test directory testsw0rp
Combine cases into smaller tests of tests and remove tests we no longer need. Linter tests have been moved to where they should be.
2023-09-05fix(yaml): make actionlint respect config (#4584)Peter Benjamin
* fix(yaml): make actionlint respect config * docs: update actionlint docs * chore: update author & add description * test: move actionlint test to test/linter/
2023-08-20Fix typo in filename (#4595)ymap
2023-08-01feat(markdown): add marksman lsp (#4565)Peter Benjamin
* feat(markdown): add marksman lsp * docs: add marksman docs * test(markdown): add marksman test Co-authored-by: Peter Benjamin <peter.benjamin@peter.benjamin-FVFHP2WSQ05Q>
2023-07-24Remove gometalinter support (#4534)Craig Rodrigues
gometalinter has been deprecated, and was archived in 2019
2023-07-24fix(vue): volar v1 support (#4552)Arnold Chand
* fix: volar v1 support * fix: volar linter errors
2023-06-27Remove golint supported-tools (#4535)Craig Rodrigues
golint has been deprecated and was archived in 2019
2023-06-27feat: support Bazel `buildifier` linter (#4529)Chuck Grindel
* Initial buildifier linter files * Add handler test * Fix test when options are not set
2023-05-26🐛 Fix a Ruby deprecation warning in the ERB linter (#4521)Rob Whittaker
* Fix a Ruby deprecation warning in the ERB linter Before, the ERB linter used positional arguments. Newer versions of Ruby have deprecated this method signature. We fixed the linter to use keyword arguments. * fixup! Fix a Ruby deprecation warning in the ERB linter
2023-05-22Dockerlinter (#4518)Shad
* dockerlinter support * Tests & ShellCheck reference * sort and align docs
2023-05-06Add support for npm-groovy-lint (#4495)lucas-str
* Add support for npm-groovy-lint * Add doc and tests for npm-groovy-lint * Use ale#util#FuzzyJSONDecode instead of json_decode
2023-04-13Fix 4490 - Fix pyright not running with poetry (#4491)Horacio Sanson
* Fix 4490 - Fix pyright not running with poetry * Fix tests
2023-04-13Add support for Bicep when installed as a plugin to Azure CLI (#4496)Carl Smedstad
* Add support for Bicep when installed as a plugin to Azure CLI The compiler for Microsoft's DSL Bicep can be installed both independently and as a plugin to Azure CLI. The latter is probably how most people install it. The program output is the same but Azure CLI wraps the arguments and has a slightly different interface, hence I opted to copy the old linter and modify it to match the plugin arguments. * Fix bicep/az_bicep tests, arguments and parsing * Actually test the ale_linters#bicep#az_bicep#Handle function in the test that should test that function, not ale_linters#bicep#bicep#Handle. * Use the same method as in bicep/bicep for discarding output file, i.e. by specifying --outfile to a null file. * Fix parsing of occasionally occurring leading error type (such as 'ERROR: '). * Correct option defaults for bicep & az_bicep specified in documentation
2023-04-02remove `--enable-all` from golangci-lint options (#4488)Veselin Ivanov
* remove --enable-all from default golangci-lint options * update golangci-lint options documentation * update tests to use empty golangci-lint options
2023-03-07#2172 - Expand PATH in the shell for automatic virtualenvw0rp
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