summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
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-16Fix #4505 - Handle spaces in markdown fencesw0rp
2023-09-16Fix #3115 - Fix environment variable quoting on Windowsw0rp
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-16Stop supporting ale_lsp_rootw0rp
We renamed the ale_lsp_root setting to ale_root long ago. Stop supporting the old setting name.
2023-09-16Close #4458 - Add an ALEStopLSP commandw0rp
Add an ALEStopLSP command to stop all language servers that match a given name. Completions are available for the command. This makes it possible to keep other language servers running other than the one you're interested in stopping.
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-10Print the most severe problem with virtualtextw0rp
Fix the ordering of virtualtext so we print the most severe problem on a line. If two problems are the most severe, we will print the left-most problem.
2023-09-10Show a single virtualtext message by defaultw0rp
Show only a single virtualtext message per line by default. The setting can be configured to whatever the user wants. This default prevents several linters from spamming the editor with messages that run off into the right margin. Documentation now clarifies that problems have a predictable order, and which message will come first.
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-09Remove backwards compatibility with ancient setting namesw0rp
2023-09-09Close #4442 - Use Neovim diagnostics by defaultw0rp
Use Neovim's diagnostics API by default in recent enough Neovim versions. This will make problems found by ALE play nicely with problems found by other tools.
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-08Close #4605 - Emulate InsertLeave modew0rp
Use a repeating timer to emulate InsertLeave mode for users who have not rebound <C-c> to <Esc>, like many experienced Vim users do. This allows ALE to start linting when you finish typing by default without having to know about this quirk in Vim or Neovim.
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-07Attempt running Windows rests relative to GitHub dirw0rp
2023-09-07Update minimum supported NeoVim version to 0.6.0w0rp
Stop officially supporting NeoVim versions below 0.6.0, without necessarily breaking ALE for people using older versions.
2023-09-06Close #3368 - Supercharge :ALEInfow0rp
Make a series of sweeping changes to make :ALEInfo more useful. 1. Deprecate :ALEInfoToClipboard and support :ALEInfo -clipboard 2. Permit :ALEInfo -clip as a shorthand for :ALEInfo -clipboard 3. Support :ALEInfo -preview to render in the preview window 4. Support :ALEInfo -echo for the classic :ALEInfo mode 5. Change the default mode to 'preview', and make it configurable 6. Add syntax highlighting for ALEInfo in preview mode 7. Add a convenience to look up documentatation that explains itself 8. Don't show an empty 'Linter Variables' section
2023-09-06Add an option to save hidden buffersw0rp
When commands are run, it can be useful to just save the hidden buffers so language servers immediately get updated with changes to files without you having to manually save each file. You can now enable this by setting `g:ale_save_hidden` to `1`.
2023-09-05Close #4461 - Use rust-analyzer by defaultw0rp
Use rust-analyzer by default instead of rls, as rls has been deprecated.
2023-09-05Feature: add `forge fmt` as a fixer for Solidity files (#4598)Henrique Barcelos
* feat: add `forge fmt` as a fixer for Solidity
2023-09-05fix(neovim): ignore unrelated diagnostics (#4597)xu0o0
Fix the NeoVim diagnostics bridge so it only sends over diagnostics relevant to the current buffer.
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-20Support format xml file which haven't yet persisted at the disk (#4585)jiz4oh
Support format xml file which haven't yet persisted at the disk
2023-08-20Fix typo in filename (#4595)ymap
2023-08-15Fix error loading "text" syntax for hover (#4574)Tomáš Janoušek
rust-analyzer sometimes returns a hover result with language being "text", but there's no syntax/text.vim, so this would fail with: Error detected while processing function <SNR>150_VimOutputCallback[6]..<lambda>8[1]..ale#lsp#HandleMessage[30]..ale#hover#HandleLSPResponse[42]..ale#floating_preview#Show[13]..<SNR>161_VimShow: line 13: E484: Cannot open file syntax/text.vim Only including the file when it actually exists fixes this.
2023-08-15yamlfmt (#4587)Matheus Werny
* Added the fixer, wrote tests and tested it
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-25Communicate support for markdown to the lsp server (#4450) (#4453)Wooter
2023-07-24fixed parsing errors when certain options are used in glslangValidator (#4540)JoseGRuiz
* fixed parsing errors when certain options are used in glslang * Update glslang.vim set column number to 0 like it is always set by glslangValidator * Added a test for the handler of glslangValidator
2023-07-24Add erb-formatter support (#4546)Arash Mousavi
2023-07-24Remove gometalinter support (#4534)Craig Rodrigues
gometalinter has been deprecated, and was archived in 2019
2023-07-24feat: enable golangci-lint by default (#4536)Craig Rodrigues
This replaces golint and gometalinter which are both deprecated
2023-07-24Add end_col of matched forbidden word (#4556)LittleKey
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-06-27Update cairo linter to Cairo 1.0 (#4530)0xHyoga
* update cairo linter * new cairo handler test * add another handler instead of replacing
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-22Add fourmolu fixer (#4501)Pat Brisbin
* Add fourmolu fixer Fourmolu is aversion of Ormolu that supports configuration. This fixer was modeled after the Ormolu one, but using the "stack executable" approach of the Brittany and Stylish Haskell fixers. * Sort supported-tools.md
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