summaryrefslogtreecommitdiff
path: root/autoload
AgeCommit message (Collapse)Author
2024-09-05Improve support for python package manage: pipenv, poetry and uv (#4825)Diego Henrique Oliveira
2024-08-14Add support for astro (#4780)ghsang
* feat: prettier for astro * feat: eslint for astro * feat: doc for astro
2024-07-09feat(biome): add support for json and jsonc (#4805)Braden Kelley
- adds biome linter for json and jsonc - enables biome by default for json and jsonc - suggests biome as a fixer for json and jsonc
2024-07-02When ruff version is >=0.5.0 use 'ruff check <path>' instead of 'ruff ↵Tom Bourton
<path>' (#4802)
2024-06-27fix!(biome): allow passing options to `biome check` (#4799)Braden Kelley
The only option available to biome's `lsp-proxy` command used for linting is `--config-path`. However, we are using ALE to find and set the project root, and have a way to manually override, so that is no longer necessary. The LSP proxy also used the `g:ale_biome_options` config, which is shared with the fixer's `check` command, but `lsp-proxy` will throw an error if unknown options are included, making it so that option is only useful to set the project root. BREAKING CHANGE: We are no longer passing options to the biome LSP proxy, but we can still set the project root with `g:ale_biome_lsp_project_root`.
2024-06-25fix(biome): find root when using biome.jsonc (#4774)Braden Kelley
Since biome supports either `biome.json` or `biome.jsonc` config files, we need to look for both when searching for the LSP project root. We can also look for a package.json or .git folder to use. This uses mostly the same logic as deno.
2024-06-24fix(biome): send correct language to lsp proxy (#4773)Braden Kelley
Since Biome understands `typescriptreact` and `javascriptreact` as languages, we can send the `filetype` to the LSP, rather than only sending `typescript` for both `ts` and `tsx` files, or `javascript` for `js` and `jsx` files. fixes: #4752
2024-06-21fix(biome): run all enabled biome fixers (#4763)Braden Kelley
- based on biome config, will format, lint, and/or sort imports - adds variable to apply unsafe fixes, disabled by default fixes: #4754
2024-06-21fix(biome): use temp file instead of stdin (#4775)Braden Kelley
biome handles utf8 characters differently between files and stdin, and in some cases can replace emojis with ascii characters when using stdin refs: biomejs/biome#2604
2024-06-02Run actionlint by default on GitHub filesw0rp
Detect paths containing .github as a directory for running actionlint by default on YAML filetypes.
2024-05-31Fix eslint cwd strategy (#4781)ghsang
Change eslint cwd to follow configuration file paths.
2024-05-01Implement listing all returned results for LSP textDocument/implements (#4755)Bryan Garber
* Fix list of definitions * Fix when LSP returns single response on definition/implementation * Update tag stack on ShowSelection
2024-04-20feat: detect ESLint flat config (#4753)Mathew Attlee
2024-04-17Add htmlbeautifier support (#4751)Arash Mousavi
2024-04-07Added fix subcommand options (#4746)Kevin Van Leer
php-cs-fixer command line options are ordered. Options that appear after the main command are applied to the main command. Options that appear after the subcommands are applied to the subcommands. This change enables a user to specific fix options (like --config). This change also sets the plugin to find the the configuraiton file in the current project tree. This matches the default behavior of other linters like eslint.
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-12Add support for .eslintrc.cjs (#4742)Mathew Attlee
2024-03-02Fix biome formatter (#4733)David Dominguez
* Fix biome formatter Added escaped executable to the biome#Fix command * Added fixer callback test
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-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-23Add support for gjs template linting using embertemplate lint (#4653)Sam
* super hacky way to get ember template lint to work on gjs files * Clean up code so we use a handler which means we reuse all the config also moves handler to the glimmer directory so it only fires for gjs files * fix tests
2024-02-22Add wiki link to ShellCheck linting (#4681)Brandon Maier
The ShellCheck integrations wiki suggests providing users with more info by linking back to the ShellCheck wiki. https://www.shellcheck.net/wiki/Integration#linking-to-the-wiki
2024-02-22[hover] ParseLSPResult sets language 'text' for missing spec (#4699)Oliver Albertini
I have an LSP that is returning markdown code blocks on Hover with no language specified, e.g. ```` ``` Foobar ``` ```` As a result, you get "```" in the message line which is not that useful. I made the regex to catch the first code fence accept empty language as well, and if it's empty, we set it to "text". This makes it so that LSPs that return no language still produce legible restuls on the message line. Co-authored-by: Oliver Ruben Albertini <ora@fb.com>
2024-02-06Support 'gleam format' as Gleam fixer (#4710)Jonathan Palardy
2024-01-14Add biome support for javascript (#4701)Akiomi Kamakura
2024-01-14Add language id of cspell (#4700)ohakutsu
2024-01-14add: support for `rubyfmt` as `ruby` fixer (#4678)Yining
[rubyfmt](https://github.com/fables-tales/rubyfmt) is a formatter for `ruby` code. This commit adds support for `rubyfmt` as a `ruby` fixer (#2991), together with some tests and documentation.
2024-01-14Add end_col and end_lnum to ShellCheck (#4692)Brandon Maier
* Add end_col and end_lnum to ShellCheck ShellCheck supports a JSON format mode which includes an 'endLine' and 'endColumn' field. We must use the newer 'json1' format as it properly treats tabs as a single character. 'json1' was not supported until v0.7.0 in 2019[1], so we maintain support for the older GCC based format. [1] https://github.com/koalaman/shellcheck/blob/v0.9.0/CHANGELOG.md?plain=1#L121 * Add wiki link to ShellCheck json output
2024-01-14Use different group names for signs and virtual text (#4704)Ingo Meyer
Since Neovim commit c4afb9788c4f139eb2e3b7aa4d6a6a20b67ba156, the sign API uses extmarks internally. Virtual text is already rendered using extmarks. ALE uses the same group name for both signs and virtual text and as a result, both are placed in the same extmark group. Since ALE deletes all extmarks in the virtual text group after all signs have been placed, no signs are ever shown. This commit fixes this by renaming the sign group from `ale` to `ale_signs`.
2023-12-08Add support for Scarb in `cairo` files (#4669)MD
* Add support for Scarb in `cairo` files * specify if linter should run on saved
2023-12-07add: support for `nickel format` as `Nickel` fixer (#4665)Yining
Nickel(https://nickel-lang.org/) is a configuration language, like Jsonnet, Cue, Dhall. `nickel`(https://github.com/tweag/nickel) is the main command to run, export and also format Nickel code. this commit adds `nickel format` as a Nickel fixer, together with some tests and documentation.
2023-11-16Adding support for ruff formatter (#4645)Joseph Henrich
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-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-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-09Remove backwards compatibility with ancient setting namesw0rp
2023-09-09Close #4481 Try .venv first, drop ve-py3w0rp
.venv was going to be the officially recommended default virtualenv directory name in PEP 704, which was not accepted. Still, poetry uses this name by default, as do other projects. We can deem it the first name we should try to search for. ve-py3 was a directory name I can't find mentions of online, and was used in my own projects during the days of migrating from Python 2 to 3. We can just drop it, and people can update their settings if they still need it.
2023-09-09#4442 - Use the same default signs as Neovim diagnosticsw0rp
2023-09-08#4605 Use a single time for InsertLeave emulationw0rp
Use a single timer for InsertLeave emulation to optimise it for many buffers, and specifically lint the buffer we entered insert mode on.
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-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.