summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
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-07Fix error from ansible-lint versions >=6.11.0. (#4492)SkrrtBacharach
* Fix error from ansible-lint versions >=6.11.0. The JSON output format of ansible-lint has changed since 6.11.0. Issue locations can have either a 'positions' or a 'lines' member, rather than just a 'lines' member as it was before. This fix checks which member is present, and passes that member name to subsequent dictionary lookups. The error was caused by the following change: https://github.com/ansible/ansible-lint/pull/2897 * Add ansible-lint test to check each type of ansible-lint issue json. * Change long single-line JSON in ansible test into multiline JSON. * Fix linting errors in ansible_lint.vim.
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-26Add support for `rustywind` fixer (#4477)Guillermo R. Roig Carralero
2023-03-14Fix `ale#util#GetBufferContents` and propagate use (#4457)Wilson E. Alvarez
* Use newline characters instead in ale#util#GetBufferContents * Propagate use of ale#util#GetBufferContents * Add ale#util#GetContentBuffer test
2023-03-07Fix windows virtualenv PATH testsw0rp
2023-03-07#2172 - Expand PATH in the shell for automatic virtualenvw0rp
2023-03-07Add deadnix linter (#4443)Albert Peschar
2023-02-13Ignore shellcheck error in run-vader-testsw0rp
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-07Fix broken tag references and the broken script to check themw0rp
2023-02-07Add alejandra for nix (#4435)Nathan Henrie
- Fixes https://github.com/dense-analysis/ale/issues/4434
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-29diagnostics: support sending ALE output to Neovim's diagnostics API (#4345)Ben Boeckel
Support replacing ALE's display of problems with sending problems to the Neovim diagnostics API. :help g:ale_use_neovim_diagnostics_api Co-authored-by: David Balatero <dbalatero@users.noreply.github.com> Co-authored-by: Georgi Angelchev <angelchev@live.co.uk> Co-authored-by: w0rp <devw0rp@gmail.com>
2023-01-28Add `gopls format` as a Go fixerSean Enck
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-27Close #4401 - Use subtle defaults for virtual-textw0rp
Default virtual-text to the Comment highlight group and prefix virtual-text messages with comment text for each language by default. Messages can now be formatted with `%type%` to print the error type. The Vim 9.0 version has been updated in the Docker image to add test coverage for virtual-text.
2022-12-25Update ALE to v3.3.0w0rp
2022-12-25Close #4397 - Add human-readable values for g:ale_virtualtext_cursorw0rp
2022-12-25Enable ruff for Python by defaultw0rp
2022-12-25nix: handle versions past 2.9 (#4394)Antonio Gurgel
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-22fix: ruff not registered as fixer (#4393)Yining
this commit fixes the issue reported at: https://github.com/dense-analysis/ale/issues/4301#issuecomment-1359289391 it also had some code refactored and tests added for ruff as fixer (missed in PR #4347).
2022-12-06Handle empty answer of ansible-lint (#4373)Michael F. Schönitzer
* Handle empty answer of ansible-lint The variable a:lines might be empty if ansible-lint exited early, in that case json_decode would trow an error. * Use ales JSON decode function
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-25Remove a flaky smoke test we no longer needw0rp
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-07Add raco_fmt fixer for Racket files (#4354)Jeremy Cantrell
* Add raco_fmt fixer for Racket files * Fix command and add test * Fix quoting
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-11-04Add 'dockerfile_hadolint_options' config setting (#4353)Matthew Armand
- Add this option so command line arguments can be supplied to hadolint - This will be respected when running in docker and via the executable - Preserve the --no-color and - flags, and add these to the list - Add to docs and tests
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-14test: ensure helptags runs (#4336)D. Ben Knoble
Close #4328
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-30Add fixer "css-beautify". Adjust "html-beautify." (#4319)Matheus Gabriel Werny de Lima
* Add fixer "css-beautify". Adjust "html-beautify." * Error fixes. * Added chars.
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-11chore(volar): update volar executable name (#4308)BBOOXX
see: johnsoncodehk/volar#876 see: johnsoncodehk/volar/blob/master/packages/vue-language-server/package.json#L11