summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-02-19fixup, wip: Rename error variable as in docscos
This corresponds better with the terminology used at: https://doc.rust-lang.org/rustc/json.html
2022-02-19fixup, wip: Revert `rust_only_current_buffer`cos
There is already a `rust_ignore_secondary_spans` option, providing more hiding of errors than anyone likely can desire.
2022-02-19wip: Non-successful attempt at fixing testscos
Please see previous commit for the change requiring test updates. Tests fail due to mismatch between filename being set to '<anon>' and the proper filename. That's not a surprise, as the code path setting the value to anything but the actual filename has been disabled. It is unclear to me what '<anon>' is supposed to indicate, or how it should be used. Searching for the string in ale's codebase gives no matches outside of the rust handler and test cases. There are also failures due to finding the wrong span. Figuring out how to fix the '<anon>'/filename mismatch will likely fix that one too.
2022-02-19fixup, wip: Attempt at making cargo working on whole project as documentedcos
Add comments referencing documentation.
2022-02-19wip: Attempt at making cargo working on whole project as documentedcos
(Make cargo work on whole project as documented) According to `:help ale-integration-rust`, using cargo as a linter should check the entire project. It appears this was the case initially, but it broke somewhere along the way. Setting `filename` to the output in the handler and avoid filtering the spans on `file_name` goes a long way in restoring the intended behavior. However test cases fail, even after attempting to update them. Please see next commit.
2022-02-19Document the use of author rewriting toolsfeature/doc_contribcos
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
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 4004 - Disable eslint by default for json. (#4023)Horacio Sanson
* Fix 4004 - Disable eslint by default for json. This PR disables, or more correctly, excludes eslint from the list of default linters for json files. Also fixes elixir, go, json5, and jsonc files documentation and default linters to make them consistent. * Fix and improve tests
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
2022-01-04Add dprint fixer (#4024)Nathan
* Add dprint fixer * Fix windows tests * dd dprint documentation
2021-12-28Add auto-fixer for crystal (#4016)Alex Piechowski
2021-12-25Fix 3998 - add language option to uncrustify fixer (#4007)Horacio Sanson
2021-12-17ALEFileRename command added. (#4012)Dalius Dobravolskas
* ALEFileRename command added. This command renames file and uses tsserver `getEditsForFileRename` to fix import paths in Typescript files. * ale#util#Input fix * Even more fixes. * Linting error fix.
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-12-09Fix check for did_save and includeText capabilities (#4008)Horacio Sanson
2021-12-09Initialize hl-groups correctly if virtual text is loaded first (#3960)Magnus Groß
If virtualtext.vim is autoloaded first, it will link ALEVirtualTextWarning to ALEWarning. But ALEWarning is not initialized yet, so it will create ALEWarning, but with no color definition set. Shortly after, highlight.vim is autoloaded, which would usually link ALEWarning to SpellCap, but only if ALEWarning is not already set. However since ALEWarning is already initialized due to the previous link, we skip this and never actually come around to properly initializing it. We fix this by initializing all highlight groups in highlight.vim, thus satisfying the dependency of ALEVirtualTextWarning being initialized after ALEWarning. Fixes #3585
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>
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-18Cppcheck buffered file only (#3983)Dan George
* Add cppcheck handler match on misra msg * Use --file-filter cppcheck option Cppcheck recently added --file-filter so that cppcheck only checks the filtered files, even when using --project option, which checks all files in the project, by default. The --ccpcheck-build-dir option didn't help enough (at all?). * Added C test cases Also fixed and assumed typo: foo.c, instead of foo.cpp * Replace hard-coded full path filenames Attempt to fix the windows platform test execution. * Fix typo - foo.c, instead of foo.cpp * Reset buffer var between tests * Handle header files in cppcheck Cppcheck isn't designed to check header files, stand-alone. Daniel Marjamäki suggested using --suppress options to avoid FPs. * Fix Vint complaint in cppcheck handler. * Fix file path in cppcheck handler Co-authored-by: Dan George <dgeorge@anduril.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-18Rewrite Alex Integration to Use stdin (#3982)David Houston
Since having been added, the `alex` tool has added support for linting on stdin. Rewrite this integration to reduce the number of tools requiring disk-write access. Signed-off-by: David Houston <houstdav000@gmail.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-15Show errors and warnings for the 'smlnj' linter (#3957)Chuan Wei Foo
* Show errors and warnings for the 'smlnj' linter Fixes #3953 * Change smlnj stdIn regex
2021-11-15Add cppcheck handler match on misra msg (#3980)Dan George
Co-authored-by: Dan George <dgeorge@anduril.com>
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