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
w0rp
37a1d24a36
Skip the command#Run test for fixers on Windows
2019-02-26 16:57:57 +00:00
w0rp
38009b8e58
#2132 - Support deferred fixers
2019-02-26 16:56:16 +00:00
w0rp
70a9176de0
#2132 - Set up fixers for deferred support
2019-02-26 08:35:58 +00:00
w0rp
89e5491862
Revert " #2132 Change (buffer, lines) fixer functions to (buffer, done, lines)"
...
This reverts commit f1ed654ca5
.
2019-02-22 20:48:06 +00:00
w0rp
883978ece9
#2132 - Replace all uses of foo_callback with foo
2019-02-22 18:05:04 +00:00
w0rp
f53b25d256
#2132 - Implement project_root as a replacement for project_root_callback
2019-02-22 15:24:34 +00:00
w0rp
f8aeb5c5a4
#2132 - Make most foo_callback options work as foo
2019-02-22 00:35:53 +00:00
w0rp
ffa45fa3fb
#2132 - Implement deferred command handling for linters
2019-02-21 21:24:41 +00:00
w0rp
a8b987a1c3
Fix #2300 - Handle more URIs per RFC 3986
2019-02-21 19:47:22 +00:00
w0rp
8012e5b60f
Merge pull request #2303 from kevinoid/bandit-use-config
...
python/bandit: Use .bandit configuration file
2019-02-20 09:58:02 +00:00
Kevin Locke
52c2400786
python/bandit: Use .bandit configuration file
...
Bandit automatically [uses any .bandit file] within the directories on
which it is invoked. Since ALE invokes bandit on stdin, it does not
load a .bandit file automatically. Add support for automatically
finding a .bandit file and passing it to bandit via the --ini option
along with a variable to disable this behavior if desired.
Note: This is useful for the skips and tests configuration options, but
not exclude which would require invoking bandit using a file name, which
may or may not be a good trade-off.
[uses any .bandit file]: https://github.com/PyCQA/bandit/blob/1.5.1/bandit/cli/main.py#L70-L73
Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
2019-02-17 14:24:18 -07:00
Kevin Locke
3300b1aca7
python/pylint: Change directory to project root
...
Pylint only [checks for pylintrc] (and .pylintrc) files in the packages
aboves its current directory before falling back to user and global
pylintrc. For projects with a src dir, running pylint from the
directory containing the file will not use the project pylintrc.
Adopt the convention used by many other Python linters of running from
the project root, which solves this issue. Add pylintrc and .pylintrc
to FindProjectRoot. Update docs.
[checks for pylintrc]: https://github.com/PyCQA/pylint/blob/pylint-2.2.2/pylint/config.py#L106
Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
2019-02-17 10:40:50 -07:00
w0rp
c3d4e0983b
Try to get tests to pass on Windows again
2019-02-15 16:40:01 +00:00
w0rp
1a69c9c88c
#2295 Send an empty object for the initialized notification, per the spec
2019-02-15 10:44:45 +00:00
w0rp
0d10653a7c
Fix #2295 - Respond to initialize with an initialized message
2019-02-15 08:54:53 +00:00
w0rp
7487ecb957
Simplify code for marking linters as active
2019-02-14 10:10:46 +00:00
w0rp
3140abcd0c
Fix #2293 - Update linter option documentation
...
* The README now points to a valid helptag for linter options.
* The now very, very large part of the table of contents for linter and
fixer options has been moved into a section so the initial table is
smaller.
* Special linter or fixer options now lie beneath the general linter
or fixer options.
2019-02-13 21:22:02 +00:00
w0rp
3050a132b5
Remove ProcessChain code we do not need now
2019-02-13 17:56:10 +00:00
w0rp
21a8b9f1e3
Make it easier to remove command_chain support later
2019-02-13 17:53:01 +00:00
w0rp
1ee56713b8
#2132 Use an on-init callback for all LSP logic
2019-02-13 17:26:37 +00:00
w0rp
690b1a5bb1
Merge pull request #2291 from kevinoid/pylama-no-temp
...
pylama: Use %s instead of %t
2019-02-12 21:08:31 +00:00
w0rp
926ad47a49
#2132 - Implement deferred executable string handling for linters
2019-02-12 18:05:33 +00:00
Kevin Locke
a6caa85a58
pylama: Use %s instead of %t
...
Although using %t to lint changes was desirable, many pylama checks use
surrounding paths and file contents (e.g. C0103 module name, E0402
relative import beyond top, etc.) The more such errors I find during
testing, the less %t seems like a good idea. Switch to %s.
Also set `lint_file` to 1 and mark Pylama as a file linter in the docs.
Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
2019-02-12 10:45:26 -07:00
w0rp
df9bee88f6
Rewrite the supported tools lists in new files
2019-02-11 22:07:52 +00:00
Derek Sifford
aca1edb476
add project_root_callback for tsserver ( #2290 )
...
* add project_root_callback for tsserver
* add tests for tsserver project root
* Update test/command_callback/test_javascript_tsserver_command_callback.vader
2019-02-11 21:24:22 +00:00
w0rp
6ebe24b5ff
Merge pull request #2268 from m-pilia/alex
...
Add settings for the Alex linter
2019-02-10 23:43:43 +00:00
w0rp
5dbac4ab9c
Merge pull request #2287 from kevinoid/vulture-options
...
Document and test ale_python_vulture_options
2019-02-10 23:24:31 +00:00
Kevin Locke
a0d4eb3699
Support ale_sh_shellcheck_dialect to set dialect
...
As discussed in w0rp/ale#1051 , there are cases where it would be useful
to be able to specify the dialect explicitly. This commit allows users
to do so using the ale_sh_shellcheck_dialect variable.
Fixes : w0rp/ale#1051
Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
2019-02-10 09:00:55 -07:00
Kevin Locke
82b15fb706
Document and test ale_python_vulture_options
...
The vulture linter already supports ale_python_vulture_options, but it
is not documented or tested. Since vulture only supports configuration
via options, it is an important use case. Add docs and test.
Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
2019-02-10 08:18:55 -07:00
w0rp
7a48750610
Complain about binary operators on the ends of lines
2019-02-10 11:43:48 +00:00
Théo Cavignac
d072d2654c
Supporting filtered jump ( #2279 )
...
* Support filtered jump based on loclist item type (E or W for now)
* Use flags to customize the behavior of ALENext and ALEPrevious
* Update <plug> bindings with flags
* Update documentation about ALENext and ALEPrevious
* Use ale#args#Parse in JumpWrap
2019-02-10 11:11:29 +00:00
Kevin Locke
a24f0b4d5f
Support pylama for python ( #2266 )
...
* Add pylama for python
* Consolidate python traceback handling
2019-02-08 21:44:34 +00:00