summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-05-04Handle golangci_lint warning and error messages correctly (#4182)Richard Jonas
* Handle golangci_lint warning and error messages correctly * Fix linter warning Co-authored-by: Richard Jonas <richard.jonas@derivco.se>
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-05-04fix docs for actionlint (#4181)bretello
Co-authored-by: bretello <bretello@distruzione.org>
2022-05-03Fix 4177 set default yaml linters (#4178)Horacio Sanson
* Fix 4177 set default yaml linters * Fix 4177 set default yaml linters
2022-05-03add yaml actionlint support (github actions) (#4173)bretello
Co-authored-by: bretello <bretello@distruzione.org>
2022-05-02VSCode LSPs for CSS, HTML and JSON (#4175)Dalius Dobravolskas
Switched to `vscode-langservers-extracted` as it is the one most up-to-date.
2022-04-30vscode-json-languageserver support (#4164)Dalius Dobravolskas
* vscode-json-languageserver-bin support VSCode JSON languageserver has schema support for linting and completions. I have enabled snippets support (`snippetSupport`) even if it is not fully supported. `label` that comes with completions response can be used as well. * Test fix. * vscode-json-languageserver instead of vscode-json-languageserver-bin vscode-json-languageserver is more up-to-date (about 1 year old), vscode-json-languageserver-bin is 4 years old. * Use git root. * Documentation update. * Trying to sort ordering issue. * One more attempt * One more attempt * Uppercase seems to win. * Clean-up * Clean-up 2 * Test removed.
2022-04-30Add ALEGoToImplementation (#4160)godbless
* Add go to implementation * Add test cases for GoToImplementation * Add documentation for GoToImplementation
2022-04-30Add support for selene Lua linter (#4169)zandr
2022-04-29Add CodeAction codeActionLiteralSupport Feature (#4163)godbless
* Advertise codeActionLiteralSupport to LSP server Without this, rust-analyzer doesn't return any code actions. With it, everything works properly. * linter fixes * test cases fixes * Fix underflow of column in position. Special values like for example -1 to denote the end of a line are not supported. [reference](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#position) Co-authored-by: Brian Gernhardt <brian@gernhardtsoftware.com>
2022-04-24Improve pylama linter output handling (#4106)Diep Pham
* Use JSON format for newer pylama version https://github.com/klen/pylama/blob/develop/Changelog The --format json option is added in pylama version 8.1.4. * Fix linting warnings for pylama
2022-04-20Fix 3837 - update test to use latest vim 8.2 (#4147)Horacio Sanson
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-06Handle ghc panic in haskell (#4145)lykmast
* Add primitive handling of ghc panic. * PascalCase in function. * Add simple test.
2022-04-06Add the buffer-local options 'b:ale_shell' and 'b:ale_shell_arguments'. (#4146)James Cherti
2022-04-06Fix 4141 - Stop press enter prompt on long diagnostic messages (#4144)Horacio Sanson
* Fix 4141 - Stop press enter prompt on long diagnostic messages * Fix 4139 - Check for array before join truncated_echo
2022-04-05Update help for ale_go_staticcheck_lint_package (#4122)Satoshi Matsubara
2022-04-01Fix test for echoing messagesw0rp
The previous linter rule about stray echo lines has been restored, and now all problems for custom linting rules can be ignored by adding a comment above problem lines.
2022-04-01Use echon over echom for cursor echo (#3888)Amadeus Demarzi
* Problem messages no longer clutter `:messages` * Messages are truncated better
2022-04-01Set default value for insertTextFormat (#4124)João Costa
Co-authored-by: w0rp <devw0rp@gmail.com>
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-04-01Fix end line number when it exceeds the file (#4130)Felix Maurer
If the end of the error exceeds the file, set it to the last line, similarly as it is done with the beginning of the error.
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-03-20Fix :ALEImport column positionyoshi1123
Fix :ALEImport column position so it works with more language servers. Co-authored-by: w0rp <devw0rp@gmail.com>
2022-03-05Bump ALE to v3.2.0w0rp
2022-03-05Document default linter selections againw0rp
2022-03-04Fix an argument namew0rp
2022-03-04Enable autoimport by default (#4102)Horacio Sanson
2022-03-04Add eclipselsp jdt:// support for textDocument/definition (#4030)yoshi1123
This patch adds support for opening jdt:// links on "go to definition" requests returned by Java language servers. Co-authored-by: w0rp <devw0rp@gmail.com>
2022-03-02Fix #4098 - Clear LSP data when servers crashw0rp
2022-03-01Document the use of author rewriting tools (#4088)nospam2998
Co-authored-by: cos <cos>
2022-03-01#3495 Mention that ShowResults() must not be called synchronouslyw0rp
2022-02-26Update README to mention Libera instead of Freenodew0rp
2022-02-20Fix 4086 - use stable command options for rustc (#4087)Horacio Sanson
2022-02-09Sometimes end_lnum and end_col are not present (#4062)Horacio Sanson
2022-02-08fix: duplicate tags in doc (#4059)Sébastien NOBILI
* fix: duplicate tag in doc * fix: duplicate tags in doc Co-authored-by: Sébastien NOBILI <code@pipoprods.org>
2022-02-08Dispatch textDocument/didChange after rename (2) (#4049)Jerko Steiner
* Dispatch textDocument/didChange after rename Previously whenever we renamed a symbol that was referenced from other files we'd just edit those files in the background, and the LSP wouldn't know about these changes. If we tried to rename the same symbol again, the renaming would fail. In some scenarios, the operation would just be wrong. Here is an attempt to fix this issue. I also noticed another bug when using Go with `gopls` LSP and the `gofmt` fixer. Whenever the file was saved, the `gofmt` would run and reformat the file. But it seems there was some kind of a race condition so I disabled saving for now, and all of the modified files will be unsaved, so the user should call `:wa` to save them. I personally like this even better because I can inspect exactly what changes happened, and I instantly see them in the other opened buffers, which was previously not the case. Fixes #3343, #3642, #3781. * Address PR comments * Remove mode tests in corner case tests * Address PR comments * Save after ALERename and ALEOrganizeImports Also provide options to disable automatic saving, as well as instructions to enable `set hidden` before doing that. * Fix broken test * Save only when !&hidden * Update doc * Update doc * Add silent
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-08Update the Black URL (#4057)Jon Parise
The Black project moved to the PSF organization some time ago. Update its URL accordingly.
2022-02-06Update cmake-lint linter url (#4056)Horacio Sanson
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-05Allows to use quickfix for references. (#4033)Dalius Dobravolskas
* Allows to use quickfix for references. E.g. following mapping could be used to find references for item under cursor and put result into quickfix list: ``` nnoremap <leader>af :ALEFindReferences -quickfix<CR> ``` Fixes #1759 * Documentation update.
2022-02-04Treat ale_open_list integer values as thresholds (#4050)nospam2998
Only open list window if the number of warnings or errors equals to or exceeds the value of ale_open_list. No change when set to `1`. Co-authored-by: cos <cos>
2022-02-04Add ALEPopulateQuickfix and ALEPopulateLocList (#3761)David Briscoe
Closes #1810 Add ALEPopulateQuickfix and ALEPopulateLocList. They're not very useful with ale's default auto-populate behaviour, so their useful configuration is described in help.
2022-02-04doc: Clarify the types of process_with (#4039)David Briscoe
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-03enable using cpplint for c (#3008)Justin Huang
* enable using cpplint for c * fix tag alignment * fix tag alignment trial #2 Co-authored-by: Justin Huang <justin.huang@perceive.io>
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