Commit Graph

4310 Commits

Author SHA1 Message Date
Ben Boeckel
116d713f63
diagnostics: support sending ALE output to Neovim's diagnostics API (#4345)
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-29 17:25:09 +00:00
Sean Enck
0af4899605
Add gopls format as a Go fixer 2023-01-28 00:20:29 -07:00
Horacio Sanson
65088b59b7
State ALE works with vim 8.0 and above (#4430) 2023-01-27 16:30:34 +00:00
Yining
b6f6d84c25
add: pycln as a python linter and fixer (#4415)
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-27 10:24:18 +09:00
Actionless Loveless
26c79014f5
fix(ale_linters: python: ruff): add --stdin-filename if version > 0.0.69 (#4414) 2023-01-27 09:03:41 +09:00
w0rp
69c1dc8b5f
Fix #4413 - Avoid errors for invalid buffers in ale#virtualtext#Clear 2023-01-06 19:02:35 +00:00
w0rp
0f51c3b01b
Fix #4410 - Ignore prop_add errors 2023-01-04 15:13:21 +00:00
w0rp
5c703f4e4b
Update copyright to use company name and current year
I am the President and Treasurer of Dense Analysis, and through my sole authority I transfer the copyright of ALE to my own nonprofit organisation, so it can live on throughout history as a protected FOSS project after I am dead. Nuff said.
2023-01-03 14:12:36 +00:00
w0rp
4872ce2ab4
Add new demo video to README 2022-12-31 15:17:13 +00:00
Leon
1ee863002a
Fix #4408 - Trigger floating preview autocommand on BufWinLeave and WinScrolled (#4409) 2022-12-30 18:47:43 +00:00
Antonio Gurgel
ef6715ee41
nix: durably handle versions before 2.4 (#4398)
What I should have done in 4394. Idea: @w0rp
2022-12-28 21:05:32 +09:00
w0rp
457e0a50f1
Fix #4331 - Shift line 0 errors to line 1 for virtual-text 2022-12-27 23:40:49 +00:00
w0rp
a18472cc58
Close #4401 - Use subtle defaults for virtual-text
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-27 23:11:53 +00:00
w0rp
98b2ef438e
#4400 - Remove virtual-text defaults from highlight.vim 2022-12-27 16:24:10 +00:00
w0rp
fe61e00040
Fix #4400 - Separate virtual text highlight groups to avoid errors 2022-12-27 15:36:35 +00:00
w0rp
3cb4f33a9a
Fix #4399 - Manage virtual-text state better 2022-12-26 15:56:34 +00:00
w0rp
31010ad1d1
Update ALE to v3.3.0 2022-12-25 20:30:21 +00:00
w0rp
9f2a000237
Close #4396 - Enable virtualtext by default
Wherever it's supported, enable virtualtext by default.
2022-12-25 20:18:47 +00:00
w0rp
300ea232de
Close #4397 - Add human-readable values for g:ale_virtualtext_cursor 2022-12-25 19:29:16 +00:00
w0rp
522b5d0433
Fix markdownlint documentation 2022-12-25 15:47:30 +00:00
w0rp
2ae04b310a
Enable ruff for Python by default 2022-12-25 15:13:10 +00:00
Antonio Gurgel
4c5c47b593
nix: handle versions past 2.9 (#4394) 2022-12-25 19:02:01 +09:00
w0rp
87b4ab4e20
Document how to create ALE releases 2022-12-24 22:16:36 +00:00
w0rp
bc95701575
Fix #4388: Fix pylsp and Pyright cwd
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-24 13:37:57 +00:00
Yining
1e398202b9
fix: ruff not registered as fixer (#4393)
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-22 09:53:01 +09:00
Yining
8bcbb29958
fix: #4356 Missing racket documentation (#4384)
This commit adds vim help docs for `raco_fmt` and `racket-langserver`.
2022-12-10 11:51:50 +09:00
Michael F. Schönitzer
42a17dec16
Handle empty answer of ansible-lint (#4373)
* 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-06 21:44:10 +09:00
Yining
cad8f8e683
add: support for refurb as a Python linter (#4379)
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-12-06 21:26:09 +09:00
Matheus
5ce2bf84ca
Added support for more file types for clang-format. (#4367) 2022-11-25 13:16:16 +00:00
U1s2e3r4n5a6m7e
b8de4ac96d
fix: missing plug mapping ale_go_to_implementation (#4337)
Co-authored-by: Tiffany <taftaftesed@gmail.com>
2022-11-25 13:14:12 +00:00
Horacio Sanson
3e460fa93b
Fix 4246 - Add ansible language-server (#4355) 2022-11-25 13:13:38 +00:00
w0rp
46e77fad77
Remove a flaky smoke test we no longer need 2022-11-25 12:58:14 +00:00
Horacio Sanson
cbf7045eee
Fix 4324 - add neovim 0.8 test (#4325)
* Fix 4324 - add neovim 0.8 test
* Update vim testbed image
* Update documentation

Co-authored-by: w0rp <w0rp@users.noreply.github.com>
2022-11-25 12:55:31 +00:00
Horacio Sanson
2cfbebdd59
4242 update tests with vim 9 (#4366)
* Replace Vim 8.2 with Vim 9.0 in CI
* Keep Windows tests on Vim 8.0 for now

Co-authored-by: w0rp <w0rp@users.noreply.github.com>
2022-11-25 12:34:40 +00:00
Carl Smedstad
590352304e
Fix bug in sqlfluff implementation & implement fixer support (#4365)
* Account for no sqlfluff output

Avoid crashes when there isn't any output from sqlfluff.

* Add supplort for sqlfluff as a fixer
2022-11-23 19:58:49 +09:00
Joey Buiteweg
0b25d712b7
Add rustfmt executable variable to rust docs (#4360) 2022-11-22 10:28:39 +09:00
Carl Smedstad
6c4be47437
Implement support for SQL linter sqlfluff (#4361) 2022-11-21 19:50:45 +09:00
Götz Christ
ca355f4cb4
Markdown: allow passing custom executable for markdownlint (#4358) 2022-11-21 19:47:05 +09:00
Jeremy Cantrell
4b433e5693
Add raco_fmt fixer for Racket files (#4354)
* Add raco_fmt fixer for Racket files

* Fix command and add test

* Fix quoting
2022-11-07 22:20:25 +09:00
Yining
edffffac25
add: support config option for checkmake linter (#4351)
`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-06 09:32:51 +09:00
D. Ben Knoble
07bd24d0fd
omni: racket should complete at end of keywords (#4352)
Consider a file like
```
 #lang racket
(require racket/gui)
```
Type `Go(eventspace-`.

Pressing <C-x><C-o> to trigger omnicomplete should suggest
```
eventspace-handler-thread
eventspace-shutdown?
eventspace-event-evt
```

It does not (instead producing "top-level" completions, as if
`(eventspace-` wasn't even there).

Debugging, place the cursor on a space _after_. Now
`ale#completion#OmniFunc(1, '')` correctly returns `1`, but when given
`(0, 'eventspace-')` it returns either the empty list or generic
completion results as described above. I'm not entirely sure of the
mechanism, but it seems that `b:ale_completion_info.prefix` is the key,
and that this is set by `ale#completion#GetPrefix`. Calling
`ale#completion#GetPrefix('racket', line('.'), col('.'))` returned `''`!

Now, it returns `eventspace-` and the completions work correctly again.

Ref #4293, #4186, #3870
2022-11-05 16:47:59 +09:00
Matthew Armand
121fbefeae
Add 'dockerfile_hadolint_options' config setting (#4353)
- 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-11-04 17:07:56 +09:00
Yining
483d056528
add: support for ruff as a Python linter and fixer (#4347)
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-31 21:55:14 +09:00
Dmitri Vereshchagin
06efbdd25a
Add erlang_ls linter for Erlang files (#4346) 2022-10-29 20:58:30 +09:00
Ben Boeckel
d02e58b404
Doc style fixes (#4344)
* ale.txt: fix indentation

* ale.txt: fix Type and Default markup

* ale.txt: use `not set` instead of `undefined`

This matches the way the variables are referenced in prose about
existence state.
2022-10-29 20:56:47 +09:00
Ben Boeckel
28cff80652
codespell: fix spelling errors picked out by codespell (#4343) 2022-10-29 20:56:09 +09:00
D. Ben Knoble
e4b2054408
test: ensure helptags runs (#4336)
Close #4328
2022-10-14 09:36:43 +09:00
Nicolas Pauss
951a668b14
cc: fix using '-x c*-header' for header files with GCC. (#4334)
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-12 07:05:37 +09:00
koka
f085227504
fix: wrong config name (#4326) 2022-10-05 08:39:45 +09:00
koka
14d2b261ce
Add support for tfsec Terraform linter (#4323) 2022-10-04 11:47:00 +09:00