Thibault Vatter
db6b1b5ecc
Switch from style to transformers ( #2838 )
...
* Switch to transformers for styler
* Adapt unit test too
2019-11-07 18:22:57 +00:00
w0rp
a273b9cf4a
Fix a test failing in AppVeyor
2019-11-07 15:52:03 +00:00
w0rp
f11f6a2195
Merge pull request #2887 from tamago324/add-nimcheck-end_col-options
...
Add nimcheck end_col options
2019-11-07 15:47:31 +00:00
w0rp
bde9b1cfcd
Revert "Add definition of c/clangd's language as C ( #2791 )"
...
This reverts commit f4070f6c43
.
2019-11-07 15:41:58 +00:00
w0rp
5eefe544ed
Merge pull request #2617 from robindar/master
...
Fix crystal-lang non file-tied message handling
2019-11-07 08:36:42 +00:00
tamago324
dfbb387cc7
Add nimcheck end_col options
...
nimcheck
2019-11-07 02:44:56 +09:00
w0rp
2d9380d75c
Merge pull request #2690 from iclanzan/purty
...
Add purty fixer for PureScript
2019-10-29 17:37:18 +00:00
w0rp
e259dd525f
Merge pull request #2819 from greg0ire/psalm_extra_options
...
Add the possiblity to add extra psalm options
2019-10-29 17:21:01 +00:00
w0rp
9a0b604a99
Fix the test issues with html-beautify
2019-10-28 13:45:25 +00:00
Hugo Osvaldo Barrera
47eb3dd0c0
Add support for html-beautify ( #2788 )
...
* Add support for html-beautify
* Add html-beautify to the list of supported tools
* Update docs
2019-10-28 13:25:36 +00:00
Charlie Johnson
af8c8516d1
fixers/stylelint: enhance stylelint
fixer ( #2745 )
...
* Refactor stylelint fixer test
* Support additional stylelint fixer options
* Support changing working directory for stylelint fixer
* Force css syntax for stylelint fixer
2019-10-28 13:23:02 +00:00
w0rp
0d4dfb61dc
Merge pull request #2700 from elebow/clangcheck-no-color-diagnostics
...
clangcheck: Add -fno-color-diagnostics (closes #2188 )
2019-10-28 13:14:14 +00:00
Jerko Steiner
463deedc29
Merge branch 'master' into do-not-save-on-autoimport
2019-10-22 16:40:27 -05:00
Ian Campbell
cf5120ba75
Remove standardts fixer in favor of allowing standard.vim fixer to handle JavaScript or TypeScript options.
2019-10-21 20:46:54 -04:00
Ian Campbell
9017d3ef9c
Add StandardJS for TypeScript linting and fixing.
2019-10-21 18:20:43 -04:00
w0rp
67d0ccc398
Fix #2835 - Bump up the sign group version check for NeoVim
2019-10-21 09:35:23 +01:00
Andre Souto
5e69aaf4c2
Adding support for LSP window/showMessage
method ( #2652 )
...
* Added base handling for window/showMessage
* Ignoring severity log
* Code formatting
* Added user configurable severity
* Preferring ale#util#ShowMessage over echo'ing directly
* Using format similar to ale_echo_msg_format for consistency
* Updating docs
* Added LSP log config string; improved tests
* Use warning as fallback for incorrect user config
2019-10-18 16:17:54 +01:00
w0rp
9125ec8739
Merge pull request #2845 from DonnieWest/fixItemDetailsOnEmptySource
...
Fix tsserver not returning details for items with empty source
2019-10-18 15:16:54 +01:00
Donnie West
8698c44e2a
Fix tsserver not returning details for items with empty source
2019-10-17 23:26:24 -05:00
Donnie West
b27df1b169
Allow code actions to work on callback based sources
2019-10-17 23:22:31 -05:00
w0rp
dfe9b7cc26
Merge remote-tracking branch 'murfalo/clangd-compile-commands'
2019-10-17 17:54:02 +01:00
Jerko Steiner
e5a4c82917
Add support for nimlsp ( #2815 )
...
* Add support for nimlsp.vim
* Add test and docs for nimlsp
* Add nimlsp to supported-tools.md
* Add nimlsp to doc/ale-supported-languages-and-tools.txt
2019-10-17 17:32:31 +01:00
João Borges
f4070f6c43
Add definition of c/clangd's language as C ( #2791 )
...
* Add definition of c/clangd's language as C
* Update tests for clangd to be called with '-x c'
* Change to use single quotes instead of double quotes
2019-10-17 17:28:48 +01:00
w0rp
b24fd13423
Bump the ALE version
2019-10-16 17:23:31 +01:00
Jon Gjengset
81cb40ce4b
minor test fix
2019-10-16 11:54:43 -04:00
Jon Gjengset
f5c289dce6
Add support for rust-analyzer
...
Fixes #2832
2019-10-16 11:34:16 -04:00
David A. R. Robin
e19b8c05cd
Fix crystal-lang non file-tied message handling
...
Some messages of the crystal compiler are not tied to a file.
This causes a 'Key not present in Dictionnary' error (E716).
For the record, the json output on ```require "./nonexistent.cr"```
is the following :
```json
[
{ "file":"/tmp/file.cr", "line":1, "column":1, "size":0,
"message":"while requiring \"./nonexistent.cr\"" },
{ "message":"can't find file './nonexistent.cr' relative to '/tmp'" }
]
```
The second message does not have line/column attributes.
2019-10-11 18:34:09 +02:00
Jerko Steiner
c8c142b881
Do not save for ALERename and ALEOrganizeImports
2019-10-09 20:54:47 -05:00
Murfalo
a1fab59811
Suboptimal fix to prevent variables from leaking out of new clangd test
2019-10-09 14:24:56 -04:00
Murfalo
d488198c9c
Hopefully fixed issue with Windows paths
2019-10-09 13:52:17 -04:00
Murfalo
a62f26434a
Added tests for clangd compile commands dectection
2019-10-09 13:40:04 -04:00
w0rp
e8de12c9f0
Fix #2821 - Fix the debride linter after merging older code
2019-10-09 09:53:50 +01:00
Grégoire Paris
95b8689835
Add the possiblity to add extra psalm options
2019-10-07 23:15:01 +02:00
Jérôme Foray
f932211309
fix tflint handler for 0.11+ ( #2775 )
...
* fix tflint handler for 0.11+
* fixup! fix tflint handler for 0.11+
* maintain compatibility with previous tflint output format
* fixup! maintain compatibility with previous tflint output format
* Add comment about tflint's output format accross versions
2019-10-07 20:14:22 +01:00
w0rp
59b34dd017
Merge pull request #2813 from werneta/master
...
Update vlog parser to handle new output format
2019-10-07 19:55:41 +01:00
w0rp
f2b231dd76
Merge pull request #2771 from gpanders/master
...
Use Makefile output with clang-tidy when useful
2019-10-07 19:34:52 +01:00
w0rp
06082ef377
Merge pull request #2735 from zoonfafer/scala-metals
...
Add linter for Scala Metals
2019-10-07 19:24:47 +01:00
w0rp
d3a3f4011b
Merge pull request #2676 from davidtwco/nixfmt-fixer
...
Add nixpkgs-fmt fixer.
2019-10-07 19:22:01 +01:00
w0rp
cebbb67ea6
Merge pull request #2659 from greg0ire/psalm-language-server-option
...
Use the psalm executable with the LS option
2019-10-07 19:19:54 +01:00
w0rp
32b784219b
Merge pull request #2694 from elebow/add-ruby-debride
...
Add ruby debride (closes #2471 )
2019-10-07 19:17:55 +01:00
Greg Anders
7795898841
Add tests for clangtidy with Makefile
2019-10-06 10:29:23 -06:00
Thomas A. Werne
89fa43551f
Add test for new vlog format
2019-10-05 11:25:56 -07:00
Horacio Sanson
7c2f5e83ab
Fix sign parser to be language independent.
2019-10-04 21:58:44 +09:00
Eddie Lebow
62602569b3
clangcheck: Add -fno-color-diagnostics
...
Also change to the modern --extra-arg syntax.
2019-09-26 20:28:33 -04:00
Horacio Sanson
41ff80dc9e
569 support vim sign group and priority ( #2786 )
...
* Use sign-group only on supported vim versions.
The sign-group feature is only available in nvim 0.4.0 and vim 8.1.614.
* Add priority to ALE signs.
This allows users to set a priority to ALE signs to take precedence over
other plugin signs.
2019-09-25 09:15:16 +01:00
w0rp
6746eaeaa0
Merge pull request #2683 from ahayworth/ahayworth-add-ink-lsp
...
Add support for ink-language-server
2019-09-22 13:07:19 +01:00
w0rp
ab8e043353
Merge pull request #2691 from elebow/mdl-use-json-output
...
mdl: Use JSON output instead of parsing text
2019-09-20 20:59:59 +01:00
w0rp
d93512fe60
Fix #2744 - Make ALEFix work when only casing is changed
2019-09-20 19:02:21 +01:00
Jerko Steiner
f5e44415e8
Show description of autoimport action for tsserver
2019-09-20 13:11:16 +07:00
w0rp
e3784c4c4e
Close #2764 - Support the new React filetypes with aliases
2019-09-19 20:48:37 +01:00
w0rp
529f57a66f
Document and test solc
2019-09-19 20:26:24 +01:00
Karl Bartel
dc42c0f948
Add support for solc
Solidity compiler ( #2648 )
...
* Add support for `solc` Solidity compiler
* Set default value for `solidity_solc_options`
* Add test for solc handler
2019-09-19 19:40:00 +01:00
w0rp
61cfb3fefb
Merge pull request #2693 from elebow/chmod-remove-x
...
Remove +x bit from some files that don't need it.
2019-09-12 23:00:34 +01:00
w0rp
58b7c281c5
Merge pull request #2696 from elebow/update-test-docs-for-linter-lists
...
Update test docs and output for linter tables checked
2019-09-12 22:57:44 +01:00
Cluas
a6c59faa0f
feat: support sqlformat. ( #2702 )
...
* feat: support sqlformat.
2019-09-12 22:48:27 +01:00
Jerko Steiner
3e8c8d3ccb
Add ALERename (tsserver & LSP), ALEOrganizeImports (tsserver) and auto import support (tsserver) ( #2709 )
...
This commit adds support for renaming symbols in tsserver and with LSP tools, and for organising imports with tsserver. Completion results for symbols that can be imported are now suggested if enabled for tsserver completion done via ALE.
2019-09-12 21:53:23 +01:00
Samuel Roeca
05ba522c9a
languagetools: stop auto-appending --autoDetect ( #2616 )
...
Options are now configurable for languagetools, and `--autoDetect` can be removed by changing the options.
2019-09-12 21:22:47 +01:00
w0rp
fbe7cea91c
Merge pull request #2741 from zoonfafer/shell
...
linter/sh: Improve parsing of error messages in different locales
2019-09-12 20:41:49 +01:00
theoremoon
2e323b529d
dfmt support ( #2662 )
...
* Add support for `dfmt`
2019-09-10 20:54:14 +01:00
Kamil Grzywacz
e5e39a939a
credo now recognizes umbrella projects
...
Use ale#handlers#elixir#FindMixUmbrellaRoot to determine project root
instead of ale#handlers#elixir#FindMixProjectRoot
2019-09-07 15:40:35 +02:00
BlahGeek
9f814a8ce9
Add g:ale_sign_highlight_linenr ( #2678 )
...
* add g:ale_sign_highlight_linenr
* Fix tests. Change option default value
* Rename ale_sign_highlight_linenr to ale_sign_highlight_linenrs
* Default ale_sign_highlight_linenrs to 0
2019-09-01 14:03:54 +01:00
w0rp
67ee2b9586
Fix tests so they work with new NeoVim highlight code
2019-09-01 13:31:09 +01:00
w0rp
7d7ddf22d3
Merge pull request #2638 from frangio/nvim-highlight
...
Use Neovim API for highlights when available
2019-09-01 10:47:28 +01:00
Jeffrey Lau
2b12c8ccbf
linter/sh: Improve parsing of error messages in different locales
...
Fixes #2687
2019-08-31 15:08:54 +08:00
Jeffrey Lau
5fcb24bb3e
Add linter for Scala Metals
...
https://scalameta.org/metals/
2019-08-31 12:34:57 +08:00
David Wood
6aeb462171
Add nixpkgs-fmt fixer.
...
This commit adds a fixer for the Nix language, nixpkgs-fmt
(https://github.com/nix-community/nixpkgs-fmt ).
2019-08-26 19:21:07 +01:00
Eddie Lebow
08a5bfcaa9
mdl: Use JSON output instead of parsing text
...
Also add test coverage for the mdl handler.
2019-08-18 23:28:32 -04:00
w0rp
73812c3e41
Merge remote-tracking branch 'AlexeiDrake/master' into bugfix/c-lsp-build-dir-settings
2019-08-18 18:29:59 +01:00
w0rp
91636cff06
Merge pull request #2677 from davidtwco/check-toc-test-failure
...
Remove `/bin/ls` assumption from check-toc test.
2019-08-18 16:26:14 +01:00
richyfish
c4bdf165ca
Black fixer should include --pyi for files with .pyi extension ( #2705 )
...
* black fixer should include --pyi for files with .pyi extension
2019-08-18 15:45:15 +01:00
w0rp
ddb559b3be
Merge pull request #2631 from timlag1305/feat/ada-gnatpp
...
Add gnatpp fixer for Ada
2019-08-18 15:37:51 +01:00
fx-carton
b62e306222
Fix cflags parsing ( #2510 , #2265 ) ( #2590 )
...
* Parse CFLAGS that can be passed using a whitelist
I went through GCC's man page and selected flags that can safely be
passed to GCC and that can be useful to syntax checking. These include:
- -I/-i* include flags
- preprocessor flags such as -D
- -W* warning flags
- -O* optimization flags
- most -f options
- -m arch dependent options
* Fix CFLAGS tests: -Idir is now parsed to -I dir
* Added two tests for flags we want or don't want to pass.
* Also check for / in addition to s:sep
2019-08-17 19:08:14 +01:00
Donnie West
5388ff1d54
Add asyncomplete.vim Support ( #2627 )
2019-08-17 18:40:05 +01:00
Eddie Lebow
74a43755c6
Update test docs and output for linter tables checked
...
This makes some of the run-test output less misleading.
Also fix a minor shellcheck issue: "\*" and "\\*" are equivalent, but
the second one makes clear that the literal backslash is intentional.
2019-08-13 21:30:13 -04:00
Eddie Lebow
501af8dd8b
debride: Add debride linter ( closes #2471 )
2019-08-13 01:43:27 -04:00
Eddie Lebow
b1810b2752
Remove +x bit from some files that don't need it.
2019-08-13 00:28:31 -04:00
Sorin Iclanzan
f89b49a014
Add purty fixer.
2019-08-12 11:49:19 -04:00
richyfish
28c93ab185
aleinfo global options ( #2686 )
...
* added omitted global variables which was breaking this test when run standalone
* invert logic for s:GetLinterVariables excluding disabled linters, so that linter global options can appear in output
* additional tests for s:GetLinterVariables for linter global options
2019-08-12 16:29:28 +01:00
Andrew Hayworth
ab0bf61512
Add support for ink-language-server
...
This commit add support for ink-language-server, which it does by
largely copying and pasting from the pure-language-server PR that was
merged recently.
The most interesting things to note are:
- ink-language-server is distributed upstream via npm, which is why we
search through node_modules
- With some coaxing, it can be installed globally - which is why we
search for a global binary.
- Ink is a funky language, and users will likely need to add
initialization options.
- I am not incredibly familiar with vimscript; and I may not have done
some of the buffer searching correctly.
2019-08-07 16:35:12 -05:00
David Wood
20cc6d3e05
Remove /bin/ls
assumption.
...
On some systems, notably NixOS, there is no `/bin/ls` and thus this test
can fail unnecessarily on those systems. This commit uses
`/usr/bin/env ls` which resolves the issue.
2019-08-03 12:42:22 +01:00
w0rp
dd1e1025b8
Fix #2668 - Set g:ale_go_go111module
2019-08-02 09:09:10 +01:00
w0rp
3ae01ba249
Merge pull request #2430 from eliath/master
...
Support $GO111MODULE with Go tooling
2019-07-30 21:17:20 +01:00
w0rp
8f5ecf0120
Merge pull request #2646 from paulreimer/fixer-clangformat-use-assume-filename
...
Set --assume-filename for clangformat fixer
2019-07-30 08:21:21 +01:00
w0rp
b1230873b6
Merge pull request #2612 from andys8/feature/elm-language-server-update
...
Update elm-ls
2019-07-29 21:56:27 +01:00
Grégoire Paris
e47c1965a6
Use the psalm executable with the LS option
...
This is the simplest way of getting the psalm language server to run
now.
2019-07-25 23:19:30 +02:00
Paul Reimer
d25711a516
Set --assume-filename for clangformat fixer
2019-07-19 07:57:10 -07:00
w0rp
aae6d30b1e
Merge pull request #2618 from rustic-games/clippy-flags
...
Update Rust cargo linter to better integrate with Clippy
2019-07-14 15:16:15 +01:00
delphinus
240bb8abae
Add Deoplete's input_patterns for cpp
2019-07-14 22:20:44 +09:00
w0rp
36a50111b9
Merge pull request #2601 from delphinus/feature/better-completion-for-deoplete
...
Show more candidates for Deoplete completion
2019-07-14 10:29:03 +01:00
Matthew Lanigan
abb38955d3
Add Sorbet ruby linter and fixer ( #2614 )
2019-07-13 17:37:48 +01:00
Francisco Giordano
6e6ad2e430
Try to mock nvim api functions
2019-07-10 01:20:22 -03:00
hernot
46ab7c5904
Support csc, update mcsc ( #2586 )
...
* Added a new csc linter for C# code.
* More output is now handled for mcsc.
2019-07-02 08:18:17 +01:00
ObserverOfTime
8700586890
Add clangtidy fixer ( #2548 )
...
* Add clangtidy fixer
* Add extra_options to clangtidy fixer
* Also, use cpp variables in cpp filetypes
2019-07-02 08:11:10 +01:00
Tim Lagnese
221aceb6db
Add gnatpp fixer for Ada
2019-07-01 20:50:02 -04:00
Elias Martinez Cohen
49db8210f6
Support $GO111MODULE with Go tooling
...
Allows the user to override $GO111MODULE environment variable through
ale options. This gives control over the default behavior of Go module
resolution.
Golang documentation:
https://github.com/golang/go/wiki/Modules#how-to-use-modules
Add `ale#Go#EnvString()` function to make it easy to add similar Go
environment variables in the future.
Use the new `EnvString` function in all available Go tools callbacks
& update tests
Also add test of linter command callback for `gofmt`
2019-07-01 11:04:33 -04:00
Jean Mertz
53b0e6c37d
support all cargo options for build/clippy
2019-06-25 11:22:36 +02:00
delphinus
a3521de64e
Use input_patterns & add comments for updating it
2019-06-25 18:04:04 +09:00
Jean Mertz
e52388b8b1
support clippy options with --
2019-06-24 19:47:49 +02:00
andys8
0843efc7a5
Update elm-ls
...
* elm_lsp is now elm_ls
* The binary published by @elm-tooling is elm-language-server
Updates tests, docs and adds more options to the plugin.
2019-06-21 20:10:23 +02:00
Jesse Harris
9ad8fd6a1b
Handle powershell unexpected token with newline ( #2588 )
...
* Newline in unexpected token broke parser
* fixed test to properly capture regressions
* removed deprecated linter options for powershell
2019-06-19 23:35:10 +01:00
delphinus
4e1c46947d
Add & fix tests for added funcs
2019-06-19 15:34:53 +09:00
Horacio Sanson
40bf6e6b5c
Add support for javalsp configuration options.
...
This MR adds a new configuration variable `g:ale_java_javalsp_config`
that allows to configure external dependencies and class paths to the
language server.
The variable accepts a dictionary similar to the one supported by the
[vscode/settings.json](https://github.com/georgewfraser/java-language-server#settings )
file.
Deprecates: #2561
2019-06-19 11:38:23 +09:00
Drew Olson
1c71da5624
Add support for purescript language server ( #2572 )
...
* Add support for purescript language server
* Update naming
* Add purescript language server tests
2019-06-17 12:54:43 +01:00
w0rp
15f23532b7
Merge pull request #2577 from hsanson/fix-checkstyle-defaults
...
Fix checkstyle default configuration.
2019-06-16 18:13:47 +01:00
BlahGeek
e0871be22b
Raise deoplete source rank to 1000
2019-06-15 16:00:17 +08:00
w0rp
6e28eec243
Merge pull request #2563 from dcyriller/fixer-prettier-glimmer
...
prettier: Support experimental languages (Handlebars)
2019-06-13 11:08:21 +01:00
Horacio Sanson
eb6a7b7516
Fix checkstyle default configuration.
...
Checkstyle xml configuration is mandatory and not providing one causes
the tool to fail with the following error:
Must specify a config XML file.
Checkstyle itself contains a default configuration as part of its
assests named `/google_checks.xml`. Invoking checkstyle with this config
works even if such file does not exists in the file system:
checkstyle -c /google_checks.xml
This should be the default invocation to allow ALE to use checkstyle
with zero configuration.
Also when a user sets `g:ale_java_checkstyle_config` option, ALE should
use it to invoke checkstyle even such file does not exists in the
filesystem. This is because checkstyle is able to use configuration files
within JAR files defined in the CLASSPATH. The default `/google_checks.xml`
is an example of such configuration available within a JAR resource.
2019-06-12 10:53:28 +09:00
w0rp
80ab12c7b6
Bump the ALE version
2019-06-10 23:53:42 +01:00
w0rp
ce91972c94
Fix #1727 - Replace previoulsy defined linters with matching names
2019-06-10 22:41:20 +01:00
w0rp
168768b326
Lint on InsertLeave, not in insert mode by default
...
b:ale_lint_on_insert_leave is now supported as tests need it.
These defaults are saner and cause fewer issues for users by default.
2019-06-10 20:54:38 +01:00
w0rp
8b46fa3ee7
Merge pull request #2567 from theevocater/add_reorder_python_imports
...
Add support for reorder-python-imports fixer
2019-06-10 19:33:00 +01:00
w0rp
1ba1a9ef0e
Merge pull request #2558 from hsanson/fix-javalsp-command-callback
...
Fix javalsp command callback.
2019-06-10 19:15:15 +01:00
Horacio Sanson
e84c9b300b
Do not set default binary.
...
The default binary "launcher" is too generic and can get mixed with
other tools. To use this linter user must explicitly set the absolute
path of the launcher path.
2019-06-09 14:02:50 +09:00
Jake Kaufman
56641e0230
Add support for reorder-python-imports fixer
...
isort is great, but I've come to prefer reorder-python-imports. The tool
has a focus on smaller diffs than isort. reorder-python-imports is also
a little smarter than isort which is nice.
2019-06-08 19:22:50 -04:00
w0rp
507f164a09
Document and test reason-language-server
2019-06-09 00:12:11 +01:00
w0rp
d9931b9891
Merge pull request #2559 from nerdrew/rust-cargo-rendered-detail
...
show rendered cargo error in detail for clippy errors
2019-06-08 23:20:18 +01:00
w0rp
5826b4927c
Merge pull request #2551 from laino/eslint-json
...
Use JSON output for ESLint and fix tsserver column
2019-06-08 23:05:35 +01:00
Jonathan Vander Mey
3c799abb44
Add additional option setting for clangtidy linter
...
The existing option setting handles setting additional compile flags to
pass to clang-tidy. The new option setting added here allows setting
additional clang-tidy specific flags to be passed as well.
Fixes #2324
2019-06-08 15:35:08 -04:00
Cyrille David
3e4b8ea466
prettier: Support experimental languages
...
Such as handlebars
2019-06-06 22:04:32 +02:00
w0rp
7b78f2b846
Fix #2525 - Convert Windows paths in a Unix environment
2019-06-05 14:16:43 +01:00
Andrew Lazarus
e7317e05ea
show rendered cargo error in detail
2019-06-04 22:20:57 -07:00
w0rp
381fff0e4c
Make ale_lint_on_save work with b:ale_fix_on_save = 1
2019-06-04 21:51:53 +01:00
Horacio Sanson
5ce97f8cdb
Fix javalsp command callback.
...
The command used to invoke the language server is missing some options
to include additional java modules. Without these modules the server
was not working properly.
The correct command can be found in a `launcher` script on the same
directory the `java` executable for the language server is found.
This commit changes the docs to prefer the launcher script over the java
executable. For backward compatibility it also fixes the command
invocation in case the java executable is configured.
2019-06-05 00:50:23 +09:00
w0rp
eb6015c6fd
#2542 - Improve checkstyle project configuration
2019-06-03 23:40:22 +01:00
w0rp
4496c9b3c1
Fix tests on Windows
2019-06-03 22:14:18 +01:00
Christoph Koehler
4129c356e8
Fix #1279 - Run cppcheck differently when modified
...
cppcheck is now run without the --project option and from the buffer's
directory instead when the buffer has been modified. Saving the buffer
will get results by linting the project instead.
2019-06-03 21:54:23 +01:00
Andrew Lee
c6a5cbb3c7
Feature/add ant support ( #2539 )
...
Use ant files to load Java settings too.
2019-06-03 20:30:18 +01:00
w0rp
a76f056bd9
Fix #2555 - Remove highlights in lowercase, etc
2019-06-03 20:16:49 +01:00
Nils Kuhnhenn
79d1b99067
Use JSON output for eslint and fix tsserver column
2019-06-02 14:39:03 +02:00
Martino Pilia
5542db1507
Support custom LSP notifications
...
Allow to send custom notification mesages, that expect no response from
the server.
2019-06-01 16:27:44 +02:00
Martino Pilia
3321685940
Refactor LSP custom request handling
2019-05-31 21:56:38 +02:00
Martino Pilia
7053d468cc
Add API for custom LSP requests
...
Implement a function `ale#lsp_linter#SendRequest` that allows to send
custom LSP requests to an enabled LSP linter.
Resolves #2474
2019-05-31 17:58:27 +02:00
w0rp
27146ade32
Fix #2544 - Completion positions are off by one
2019-05-30 10:26:17 +01:00
w0rp
4f02edc3f8
Merge pull request #2529 from maxwell-k/terraform_linter
...
Add a terraform linter
2019-05-29 23:28:50 +01:00
w0rp
166435dbf1
#2533 - Run phpcs in the directory the file is in
2019-05-29 23:17:14 +01:00
w0rp
ca0cdd26fc
Merge pull request #2540 from sijad/pgformatter
...
add pgformatter fixer
2019-05-29 21:26:01 +01:00
w0rp
6b819dd74a
Merge pull request #2543 from hsanson/fix-checkstyle-handler
...
Fix java checkstyle handler.
2019-05-29 20:16:51 +01:00
w0rp
90b1ea230d
Fix #2438 - Print a friendly message when the clipboard is not available
2019-05-28 20:27:10 +01:00
w0rp
67d7caee30
Fix #2535 - Automatically emit <C-x><C-o> less to prevent <C-o> issues
2019-05-28 20:03:35 +01:00
Horacio Sanson
181bc69c8c
Fix java checkstyle handler.
...
The checkstyle handler is capable of parsing the new and old output
formats. Unfortunately there are some particular output messages that
matched both the new and old regular expressions:
[WARN] whatever:11:7: WhitespaceAround: ''if'' is not followed by whitespace. [WhitespaceAround]
This caused ALE to report extra errors since the message was being
matched twice, once as a warning and another (incorrect) old formatted
error.
This MR fixes this by stopping any parsing using the old format regexp
is any errors of the new format are correcly parsed. There is no reason
to expect checkstyle to output both styles in the same report.
2019-05-28 17:48:27 +09:00
Sajjad Hashemian
8d8b295ef5
add pgformatter
2019-05-27 09:00:11 +04:30
w0rp
bb08b81bf7
Merge pull request #2524 from hsanson/2521-fix-lsp-diagnostics-buffer-match
...
WIP Fix HandleLSPDiagnostics buffer match logic.
2019-05-24 01:21:02 +01:00
w0rp
36c35d840b
Fix LSP tests
2019-05-24 01:13:52 +01:00
Keith Maxwell
88fa0b9294
Add a terraform linter
...
This linter uses the check functionality built into terraform. ALE
already has a fixer using `terraform fmt` but this doesn't provide error
messages. ALE already has a linter using `tflint` but this requires an
extra application to be installed.
For example this linter will give a warning that ! is an illegal
character in the line below:
variable "example" !{}
This linter runs the buffer through the command below and parses the
output:
terraform fmt -no-color -check=true -
This commit includes a basic implementation, documentation and tests.
The only option is to control which executable is run.
Tested with:
$ terraform -version
Terraform v0.11.13
2019-05-23 15:49:02 +01:00
Horacio Sanson
33b4a90507
Add tests for LSP responses
2019-05-23 10:19:50 +09:00
Horacio Sanson
85b3a4a5c6
Add exact file match test to TSServer response handler
2019-05-23 10:19:07 +09:00
Horacio Sanson
5a8ba75265
Fix eclipse.jdt.ls workspace data path.
...
We were setting the -data parameter to the project root but this caused
the language server to fail initialization and synch of gradle
dependencies. As consequence ALE failed to work fully on gradle
projects.
This fix sets the workspace to the parent folder of the project root.
Normally this corresponds to the correct Eclipse workspace path.
When this is not the case, this fix also allows users to explicitly set
the absolute path to the workspace via configuration variable.
2019-05-22 09:23:03 +09:00
w0rp
67d49c75a8
Fix the eclipselsp tests
2019-05-21 21:23:21 +01:00
Grim Kriegor
0427ee84b4
Allow running eclipselsp as installed by system package on GNU/Linux ( #2523 )
...
* Search eclipselsp jar and config files within system package path
* Allow setting an alternate eclipselsp configuration directory
* Add test for ale_java_eclipselsp_config_path
2019-05-21 21:13:06 +01:00
w0rp
f6ae056d02
Stop a test from failing randomly
2019-05-21 14:01:58 +01:00
w0rp
3e3801e81e
Revert "Fix #2492 - Remove all Deoplete support for now"
...
This reverts commit 975cc7af8f
.
2019-05-21 13:53:09 +01:00
w0rp
89db85121c
Merge pull request #2502 from ericvw/flake8-config
...
Change Python project root dir detection for flake8 configuration
2019-05-21 00:15:12 +01:00
w0rp
26e5948617
Close #2516 - Handle problems with inlined functions
2019-05-20 23:50:38 +01:00
w0rp
42f5e8c62c
Fix a test on Windows
2019-05-20 22:11:49 +01:00
w0rp
28819eedd3
Close #2359 - Find compile_commands.json in build dirs for cppcheck
2019-05-20 22:08:03 +01:00
w0rp
937138dad4
Try to fix the tests
2019-05-20 20:06:44 +01:00
w0rp
143af2b9fd
Fix #2421 - Use compile_commands.json in build dirs to find roots
2019-05-20 19:57:08 +01:00
w0rp
781bf1502f
Make a test fail less
2019-05-20 19:27:47 +01:00
w0rp
5e64acc6ab
Fix #2512 - Use -o /dev/null for gcc linting
2019-05-20 13:00:32 +01:00
w0rp
4ee28d3129
Fix #2515 - Send client capabilities to LSP servers
2019-05-20 09:40:06 +01:00
Antoine Gagné
3b7c86e401
Add support for Erlang dialyzer ( #2509 )
...
* Add support for Erlang dialyzer
* Add an option to specify rebar3 profile
In doing so, the use of the `**` wildcard becomes unnecessary.
2019-05-19 21:16:17 +01:00
Eric N. Vander Weele
57b9d8bc0e
Test for Python project root directory
...
Add test files and a new test suite for detecting a Python project's
root directory.
2019-05-19 09:51:26 -04:00
w0rp
652d991077
Fix #1317 - Jump to column 1 for problems at column 0
2019-05-17 22:08:03 +01:00
w0rp
e6745a3811
Fix #1989 - Use ESlint options for fixers too
2019-05-17 20:45:25 +01:00
w0rp
e5ea809094
Close #2285 - Add a function for use with omnifunc
2019-05-17 00:57:52 +01:00
w0rp
975cc7af8f
Fix #2492 - Remove all Deoplete support for now
2019-05-16 20:11:42 +01:00
w0rp
d0f2a0ae94
Fix #2505 - Remove NeoVim highlight support for now
2019-05-16 20:04:18 +01:00
w0rp
4234d39d87
Close #908 - Report phpcs problems as style problems
2019-05-14 22:58:58 +01:00
w0rp
381fe1badf
Close #829 - Close LSP documents when buffers are deleted
2019-05-14 00:21:58 +01:00
w0rp
07b596efb5
Close #791 - Handle exceptions for puglint
2019-05-13 21:57:44 +01:00
rliang
ab7e5b264f
[linter] Add LSP support for LaTeX via texlab
2019-05-13 15:50:03 -03:00
w0rp
c88ebc5e70
Make phpstan tests fail less
2019-05-13 14:00:12 +01:00
w0rp
42cbff29f8
Fix #2497 - ALE should not lint on save when disabled after fixing
2019-05-13 13:44:29 +01:00
w0rp
bf17bbf898
Merge pull request #2496 from liskin/sort-locale
...
Force sort locale in check-supported-tools-tables
2019-05-13 09:11:55 +01:00
w0rp
aa047b5ba3
Merge pull request #2491 from mpesari/phpstan-autoload-option
...
Add phpstan autoload option
2019-05-12 21:32:57 +01:00
Mikko Pesari
6b919e88be
Add test to verify phpstan autoload parameter
2019-05-12 23:12:52 +03:00
w0rp
bfc79bd2aa
#2492 - Try to fix a deoplete bug again
2019-05-12 19:35:10 +01:00
Tomas Janousek
fb6fd80bd2
Force sort locale in check-supported-tools-tables
...
Otherwise it reports that the list isn't sorted properly if user's LANG
is different.
2019-05-12 18:49:20 +02:00
w0rp
7943bfab96
Make eslint respect the ale_warn_about_trailing_whitespace setting
2019-05-12 15:49:16 +01:00
w0rp
df90725c85
Support b:ale_completion_enabled for disabling it for some buffers
2019-05-11 17:19:45 +01:00
w0rp
f0152bca98
#2492 - Try to fix a bug with ALE's deoplete source
2019-05-11 16:40:26 +01:00
w0rp
79e42fed14
#2403 - Make ale_disable_lsp apply consistently, and document it better
2019-05-10 13:42:41 +01:00
Katsuya Horiuchi
f444abdfe6
Add option to show msg id when pylint is used ( #2445 )
...
* Add python_pylint_use_msg_id to tweak output of pylint
* Add test for ale_python_pylint_use_msg_id
* Add doc on ale_python_pylint_use_msg_id
2019-05-09 17:28:18 +01:00
w0rp
722c3e8dae
#2481 - Use text to insert from insertText
2019-05-09 17:26:33 +01:00
w0rp
a223253f35
Merge pull request #2134 from oaue/master
...
javac linter: fix handling of error messages containing ':' character
2019-05-08 09:50:12 +01:00
Horacio Sanson
53db52e713
Improve eclipselsp jar search logic.
...
- Set default value to $HOME/eclipse.jdt.ls
- Make JAR search regexp more specific.
- Allow to set the VSCode extensions folder as ale_java_eclipselsp_path.
2019-05-08 13:24:34 +09:00
w0rp
5f64f8dc57
Escape phpstan arguments, and update documentation
2019-05-07 19:38:38 +01:00
Kanenobu Mitsuru
c10da0e390
Add fixer for OCaml ocp-indent ( #2436 )
2019-05-07 18:50:26 +01:00
Andrey Popp
e6ba936a0c
Fix off by one error line highlight w/ nvim api
2019-05-05 19:14:40 +03:00
Alvin Chan
7f0954b89e
Add XO as a linter/fixer for TypeScript files ( #2453 )
2019-05-02 11:59:18 +01:00
Julien Deniau
c6aae3bcfc
Better phpstan default configuration ( #2444 )
...
* Use phpstan config file as default whenever possible + report as error
2019-05-01 23:14:39 +01:00
w0rp
4c6f67a3d0
Merge pull request #2446 from fnichol/add-var-sh-shellcheck-change-directory
...
Add g:ale_sh_shellcheck_change_directory
2019-05-01 22:47:08 +01:00
w0rp
5d65f93033
Merge pull request #2437 from robertjlooby/add-floskell
...
Add floskell for Haskell formatting
2019-05-01 22:43:44 +01:00
Andrey Popp
114198e082
Optionally use neovim's api-highlights ( #2169 )
2019-05-01 19:35:15 +01:00
w0rp
2f3bce5a1d
Merge pull request #2448 from reedriley/master
...
Add support for Vim's tagstack to ALEGoToDefinition
2019-04-29 20:55:45 +01:00
w0rp
01331266a8
Close #1753 - Implement minimum viable integration with Deoplete
2019-04-23 21:26:25 +01:00
Thibault Vatter
ce0b14979e
Add a fixer for r based on the styler package ( #2401 )
...
* Add styler as a new fixer for R files
* Add to the list of supported tools
* Add documentation
2019-04-23 19:44:26 +01:00
Reed Riley
c36f3e78e4
Add support for Vim's tagstack to ALEGoToDefinition
...
fixes 1236
2019-04-19 23:10:55 -04:00
Fletcher Nichol
2303b05baa
Add g:ale_sh_shellcheck_change_directory
2019-04-18 16:48:10 -06:00
w0rp
fcc2c3ba71
Fix #2415 - Mark tsserver and LSP linters inactive again
2019-04-17 18:12:50 +01:00
Ian Shipman
2eb68f6d23
#1791 Set the working directory for cabal and stack
2019-04-17 14:26:09 +01:00
w0rp
59f8c35a2f
Fix #1930 - Finish ale_fix_on_save_ignore
...
* Implementation had a bug
* Documentation added
* Tests added
2019-04-16 13:44:43 +01:00
w0rp
23a8208498
#782 - Use compile commands for matching source files for headers
2019-04-15 21:38:11 +01:00
Jethro Shuwen Sun
7f31065fce
improve the lsp diagnostic message format ( #2425 )
2019-04-15 14:36:18 +01:00
w0rp
61c1ddd904
Fix #2440 - Fix the kotlinc command when Maven and Gradle are missing
2019-04-15 13:36:03 +01:00
Rob Looby
99361b2ca9
Add floskell for Haskell formatting
2019-04-14 11:27:48 -05:00
Riley Martine
495bce32e9
Add support for latexindent ( #2387 )
2019-04-13 13:21:59 +01:00
w0rp
f0f0cc3c18
Merge pull request #2121 from hsanson/1996-add-support-for-eclipse-jdt-ls
...
WIP Fix 1996 - Add eclipse LSP support.
2019-04-13 12:48:20 +01:00
w0rp
784d1a9a62
Merge pull request #2394 from harttle/master
...
feat: fecs support for js/html/css lint and format
2019-04-13 12:35:52 +01:00
Jesse Harris
2ed53108c4
Linter for powershell syntax errors ( #2413 )
...
* Linter for powershell syntax errors
2019-04-13 12:24:56 +01:00
robertking
fb7099d440
modify rls testcase
2019-04-11 23:38:16 +08:00
harttle
4b6691f602
test: unit test for fecs fixer, fecs command
2019-04-11 19:47:31 +08:00
harttle
c820089c44
feat: fecs support for js/html/css lint and format
...
`fecs` is a lint tool for HTML/CSS/JavaScript,
see http://fecs.baidu.com for more options.
2019-04-11 16:24:58 +08:00
Horacio Sanson
f02e2ec54c
Fix 1996 - Add eclipse LSP support.
2019-04-11 08:50:04 +09:00
Masashi Iizuka
4813165614
Add a linter for clojure using clj-kondo ( #2377 )
2019-04-10 20:59:58 +01:00
w0rp
2e8c8085a6
Close #2179 - Add support for gopls
2019-04-10 19:23:16 +01:00
Raphael Hoegger
81423701b0
Adding new linter "cookstyle" for chef recipes (Issue #1187 ) ( #2362 )
2019-04-10 18:52:52 +01:00
Dan Loman
864d0861e4
[lsp] Add Swift / SourceKit-LSP support ( #2420 )
...
* [linter] Add LSP support for Swift via sourcekit-lsp
2019-04-08 16:25:30 +01:00
w0rp
9a0ece1ecb
Fix #2399 - Do not check buffers used for displaying diffs
2019-04-08 13:42:09 +01:00
w0rp
ce64e349cd
Close #2132 - Add deprecation warnings for old features
2019-04-07 16:24:08 +01:00
w0rp
e85eb82401
#2132 - Implement feature tests with ale#Has
2019-04-07 15:34:39 +01:00
w0rp
3bebcb5d48
#2132 - Replace command_chain and chain_with with ale#command#Run
2019-04-07 14:58:06 +01:00
w0rp
435a072181
#2397 - didChangeConfiguration should be a notification
2019-04-02 22:00:03 +01:00
w0rp
5be6a2b4e0
Merge pull request #2340 from svanharmelen/svh/f-gotype
...
make `gotype` return all errors
2019-04-02 14:27:01 +01:00
rhysd
6a29641872
Add g:ale_disable_lsp and b:ale_disable_lsp to disable linters powered by LSP
2019-03-30 15:29:17 +09:00
w0rp
3eb6d7b3db
#2395 - Handle empty output for redpen
2019-03-29 16:09:27 +00:00
Jesse Harris
000c37e775
PSScriptAnalyzer ( #2370 )
...
* Added psscriptanalyzer
* Added exclusions and documentation
* Added PSScriptAnalyzer handler test
2019-03-29 15:25:55 +00:00
w0rp
a92627e1e1
Fix #2402 - Handle null LSP references responses
2019-03-29 13:42:24 +00:00
w0rp
32c8bd1fa4
Merge pull request #2363 from davidsierradz/master
...
support jsonlint local executable
2019-03-25 22:05:28 +00:00
w0rp
8768a309b8
Merge pull request #2378 from antew/feature/elm-lsp-linter
...
Elm: Support for elm-lsp
2019-03-25 21:41:33 +00:00
Shahin Sorkh
ad998211f8
Use location of composer.json
for PHP project path too ( #2391 )
...
* move php-langserver "test for .git dir" test-project to its own directory
* search for composer.json file in php-langserver first then .git dir
* add test for php-langserver composer.json
2019-03-25 21:29:34 +00:00
Antew
8ec9615400
Add support for elm-lsp
2019-03-21 02:55:49 -04:00
davidsierradz
dfff73795a
support jsonlint local executable
2019-03-15 16:21:48 -05:00
w0rp
80ef7ea2d0
#2357 Handle Windows paths where the drive letter colon is encoded
2019-03-13 16:44:29 +00:00
w0rp
67ea571659
Handle pipes in Windows drive letters for URIs
2019-03-13 15:54:09 +00:00
Tomasz N
5f03bae41c
Fix parsing the third part of version string ( #2355 )
...
* Fix parsing the third part of version string
* Add test
* Test: fix checking cached version
2019-03-12 17:49:48 +00:00
Sander van Harmelen
b0fac47060
make gotype
return all errors
...
When using `gotype` without the `-e` option, it will only output the
first 10 errors. When working on a larger package that ofter means taht
those 10 errors are in other files then the one that you are currently
working on which then seems to indicate that there are no errors.
By adding the `-e` flag, all errors will be returned and shown properly
in the file that you are working on.
2019-03-12 09:32:39 +01:00
w0rp
f0da35b958
Merge pull request #2349 from oblitum/fix-missing-languagetool-file-argument
...
Fix passing file to languagetool
2019-03-11 09:15:29 +00:00
Adam Trepanier
a22ab78dd7
make options for credo configurable ( #2337 )
...
* Add credo --strict option
If a user sets 'let g:ale_elixir_credo_strict=1' it will run credo with
--strict instead of suggest. The default (0) is to run as suggest.
* Added credo docs
2019-03-11 09:12:32 +00:00
Francisco Lopes
d9a12348d0
Fix passing file to languagetool
2019-03-11 04:42:25 -03:00
w0rp
03384a5d6f
#2341 - Handle completion messages with textEdit objects
2019-03-10 15:21:36 +00:00
Vincent Dahmen
7eae06d3f3
linter/markdown: adds support for languatool ( #2155 )
2019-03-09 13:55:54 +00:00
w0rp
413529f603
Fix #2326 - ALEComplete no longer replaces completeopt
2019-03-08 21:32:05 +00:00
w0rp
be2c0c3af5
Merge pull request #2325 from rustic-games/rust-spans
...
set correct Rust span end column
2019-03-08 20:23:42 +00:00
w0rp
5505f2323d
Fix #2330 - Do not use getcurpos() to avoid changing curswant
2019-03-07 12:28:42 +00:00
w0rp
6aef52f026
Merge pull request #2305 from campbellr/master
...
javac: Don't assume src/main/java always exists
2019-03-06 10:39:32 +00:00
Nathan Henrie
e5746d9a83
Add lsp_config support for rls ( #2332 )
...
* Add lsp_config for rls
* Add working config example and test
2019-03-05 09:09:29 +00:00
Ryan Campbell
4fc27f099b
javac: Don't assume src/main/java always exists
...
Some projects I have only have src/test/java (no /src/main/java), which
seemed to break some incorrect assumptions the linter had.
2019-03-03 14:43:21 -07:00
Jean Mertz
26460a77a7
set correct Rust span end column
...
The Rust compiler returns the first column that is _not_ part of the
current span as `column_end`, while Ale expects `end_col` to signify
the last column of the span.
2019-03-02 16:17:17 +01:00
w0rp
c4328f2a31
#2132 - Support deferred execution for LSP executables, commands, and addresses
2019-02-27 23:26:32 +00:00