w0rp
8315c0e337
Make the executable for gometalinter configurable
2017-07-07 00:10:30 +01:00
w0rp
854066e849
#732 - Use the configuration files when fixing files with rubocop
2017-07-06 22:58:14 +01:00
Gregory Einfrank
af02fb5183
Add ale_fix_on_save and ale_fixers to debug output ( #731 )
...
* Add ale_fix_on_save and ale_fixers to debug output
* Fix test by adding new ale-fix vars
2017-07-06 09:27:09 +01:00
w0rp
1bd9b0fbe2
#729 - Use a wrapper for simplify to fix // problems on Windows
2017-07-05 15:51:31 +01:00
w0rp
bb293b297c
Fix #216 - Filter out errors for other files for ansible-lint
2017-07-03 23:16:39 +01:00
w0rp
160b9548ee
Add a function for fixing the alignment of Vim help tags
2017-07-03 16:51:34 +01:00
w0rp
fd6f05c9ea
Report exceptions thrown for stylelint
2017-07-03 16:13:10 +01:00
Chris Weyl
5a3cfbbdf5
Allow hadolint
linter to run via docker image ( #720 )
...
* Add documentation for hadolint (doc/ale-hadolint.txt)
* Allow `hadolint` linter to run via docker image
These changes enable the `hadolint` linter to run via the author's
docker image, if present. Three modes are supported:
* never use docker;
* always use docker; and
* use docker as a failback.
2017-07-03 15:37:32 +01:00
w0rp
51f256e897
Remove the need for pointless callbacks for LSP linters
2017-07-02 13:25:36 +01:00
w0rp
857ca941d2
Support an 'stdio' type for linter defintions, and require a command for LSP connections via programs
2017-07-02 13:17:24 +01:00
w0rp
b731bd77ab
Get automatic completion with tsserver to work
2017-07-02 10:58:18 +01:00
w0rp
9f21e45156
Add some experimental completion code for tsserver
2017-07-02 10:58:18 +01:00
Ryan
2330837747
Adjust output of luacheck
linter to include error code ( #717 )
...
* linters/lua/luacheck: Show error code in message
2017-07-02 00:20:59 +01:00
Gabriel Sobrinho
29746d492e
Fix brakeman handler when there is no output
2017-07-01 11:18:21 -03:00
Chris Weyl
3f1cab3e7e
Add profile, other options to the perlcritic linter ( #675 )
...
* Add profile, other options to the perlcritic linter
2017-06-29 13:08:51 +01:00
w0rp
79e8e063af
Make pug-lint detect node_modules executables, and add options for pug-lint like the other linters
2017-06-29 11:40:03 +01:00
Tarik Graba
01ecf2a75f
Adds an option to pass additional arguments to the verilog/verilator … ( #698 )
...
* Adds an option to pass additional arguments to the verilog/verilator linter
The new otion is g:ale_verilog_verilator_options
+ doc
* Spell check verilog linter doc file
* Add entries to the verilog linters in the doc table of content
* Vader test for verilog/verilator linter args option verilog_verilator_options
2017-06-29 09:15:52 +01:00
w0rp
8846a8860f
Use a new window for the ALEFixSuggest command, and document it better
2017-06-28 16:20:05 +01:00
Alexander "Ace" Olofsson
f883d4d4fd
Add puppet-lint fixer ( #701 )
...
* Add puppet-lint fixer
* Add vader test for puppetlint fixer
* Ensure puppetlint variables are initialized
2017-06-28 15:27:02 +01:00
w0rp
f984c5fb83
Merge pull request #699 from jwoudenberg/master
...
Elm linter shows full error ranges
2017-06-27 22:24:48 +01:00
Jasper Woudenberg
72161b82ef
Elm linter shows full error ranges
2017-06-27 20:16:29 +02:00
Nick Krichevsky
14cca6d115
Remove style classification from E999 ( #696 )
...
* Remove style classification from E999
* Update test_flake8_handler to reflect E999 changes
2017-06-27 15:07:26 +01:00
w0rp
16ba9bd680
Fix #680 - Use --shadow-file to check for problems with mypy while you type
2017-06-27 10:06:03 +01:00
John Sivak
539a76c5ae
Change regex to better handle messages with multiple groups of parentheses.
2017-06-25 20:19:39 -04:00
w0rp
1917e9157c
Fix #694 - Ignore BEGIN failed errors for Perl only for certain errors
2017-06-25 21:49:57 +01:00
w0rp
3828ea5b26
Detect .git directories for finding the project root for C projects
2017-06-25 21:33:15 +01:00
Lynn Dylan Hurley
7f6e5dc65b
Add ruby fixer using rubocop --auto-correct
( #689 )
...
* add ruby fixer for `rubocop --auto-correct`
2017-06-25 20:04:14 +01:00
John Sivak
a9b29fef28
Feature/restore display of symbol ( #693 )
...
* Add display of the pylint symbol name after the message.
* Update test to pass.
2017-06-25 18:22:13 +01:00
Jasper Woudenberg
c2f69b7750
Improve elm linter ( #637 )
...
* Improve elm linter
Some types of errors do not return nice JSON.
Show them on the first line instead of showing nothing.
* Remove unnecessary properties from elm linter
* Add a vader test for elm-make linter
* Test non-JSON elm-make errors are shown
2017-06-25 17:12:40 +01:00
w0rp
93473a4101
Fix #690 - Filter out errors from other files for Haskell
2017-06-25 17:08:57 +01:00
w0rp
229a1c092a
#684 Handle tslint errors without the severity included, and use character instead of position for the columns
2017-06-25 16:40:44 +01:00
w0rp
492260c967
Fix the tests harder
2017-06-25 16:20:55 +01:00
w0rp
c2138a2656
Fix the tests for the fix on save feature
2017-06-25 16:14:04 +01:00
w0rp
4eaa990fe8
Fix #684 - Use the JSON format for tslint, for consistency betwen versions, and handling of end line and column numbers
2017-06-25 13:56:51 +01:00
Gagbo
e98560a349
Added builddir option to clang-tidy to point to json folder ( #688 )
...
Detect compille_commands.json files for clang-tidy
2017-06-24 12:38:16 +01:00
w0rp
1ea61162a0
Fix #687 - Check files on enter if they have changed
2017-06-24 12:24:31 +01:00
w0rp
fbf8ccb882
Fix #677 - Ignore errors from other files for cppcheck
2017-06-22 14:08:58 +01:00
w0rp
47401a6eda
Fix the Perl tests in Docker
2017-06-22 13:51:18 +01:00
w0rp
ce2bfa88eb
Fix #676 - Fix handling of Perl errors
2017-06-22 12:37:08 +01:00
w0rp
dab6f39eb0
Fix some escaping and make some tests set filenames consistently
2017-06-21 22:33:34 +01:00
Eric Stern
ab534c2995
Support project's local phpcs installation ( #666 )
...
* Use locally-installed PHPCS if available
* Add author
* Add configuration options
* Escape executable
* Add tests
2017-06-21 21:35:40 +01:00
w0rp
d2806fad60
Fix the standard and xo handlers so they call the eslint function
2017-06-21 11:15:05 +01:00
w0rp
50d952b07d
Print messages about imports used when modules are turned off
2017-06-20 17:38:21 +01:00
w0rp
a105aa90a5
Fix #668 - Support eslint for TypeScript
2017-06-20 10:50:38 +01:00
w0rp
b96f5845ed
Fix #667 - Do not add extra blank lines for add_blank_lines_for_python_control_statements
2017-06-20 09:39:58 +01:00
oaue
b44bd4e24f
handle column number in javac linter ( #660 )
...
* handle column number in javac linter
* Updated tests with column number for javac errors.
* Updated tests with column number for javac errors.
2017-06-19 11:45:09 +01:00
Pavel Kuropatkin
11e17669d3
TSLint: distinguish warnings from errors ( #663 )
...
* TSLint: distinguish warnings from errors
* Test for TSlint warning/error distinguishing code added.
2017-06-18 18:46:34 +01:00
w0rp
629ff513ec
#659 - Add options for Python fixers, and cut down on duplicated documentation
2017-06-18 11:03:31 +01:00
w0rp
f814be45b1
Fix #536 - Implement linter problem type re-mapping
2017-06-14 17:59:13 +01:00
w0rp
c2258e3684
Fix an ansible-lint test
2017-06-14 17:14:04 +01:00
w0rp
e455d8219e
Fix #649 - Support tsserver linting for NeoVim
2017-06-14 17:08:39 +01:00
w0rp
07af1799b1
#430 Use the style sub_type for flake8 problems
2017-06-14 16:40:03 +01:00
w0rp
f6b0a28cba
Split up the flake8 and ansible-lint handlers
2017-06-14 16:20:30 +01:00
w0rp
f472e04b09
#538 - Set some end column indexes for flake8
2017-06-14 10:51:31 +01:00
Ryan
e8cc40b139
Add fusion-lint, documentation, and tests ( #648 )
...
* Add `fusion-lint` for first FusionScript linter
* Add documentation over `fusion-lint`
* Add tests for `fusion-lint` command callback
2017-06-14 09:35:11 +01:00
w0rp
ebbfb64221
Merge branch 'tsserver'
2017-06-13 17:54:07 +01:00
w0rp
aef58f598c
Handle LSP responses for different files more consistently
2017-06-13 17:53:47 +01:00
Steven Humphrey
99263bdda4
Perlcritic column number and rule names ( #640 )
...
* Add column number to perlcritic linting output
This returns the column number of the perlcritic error so that ale can
show the column in addition to the line where perlcritic found an error.
* Add perlcritic configuration for rule names
This adds a configuration setting so that the name of the perlcritic
rule is shown [Rule::Name] after the error message.
This is useful to lookup the rule failure.
* Add a vader test for perlcritic#GetCommand
2017-06-11 21:13:47 +01:00
w0rp
5146332206
Add tsserver support
2017-06-09 09:47:19 +01:00
w0rp
62862c3347
Experimental code for showing results as soon as each linter completes
2017-06-08 17:30:21 +01:00
w0rp
04190cbcfe
#517 Support linter settings needed for LSP, undocumented for now
2017-06-08 13:52:29 +01:00
José Luis Lafuente
1eec446620
Search python fixers in virtual environment ( #632 )
...
* Search python fixers in virtual environment
* Add tests for python fixers
2017-06-07 20:42:30 +01:00
w0rp
f61c6d4c0e
Add support for generating essential tsserver messages
2017-06-07 17:05:34 +01:00
w0rp
7517fd8226
Move all functions for fixing things to autoload/ale/fixers, and only accept the lines of input where needed.
2017-06-07 14:02:29 +01:00
w0rp
edddb1910b
Fix the stylelint tests to match the changes to the handler
2017-06-07 09:29:53 +01:00
w0rp
f30652a98f
Allow ALEFix functions to be defined with only the buffer argument
2017-06-06 23:13:53 +01:00
w0rp
e4d886d4a7
Add a function for computing the number of arguments for a function
2017-06-06 22:27:20 +01:00
w0rp
eeea72e167
Fix #625 Ignore Perl errors from other files
2017-06-06 20:40:07 +01:00
w0rp
7db805b0cd
#482 - Fix Flow handling with relative paths
2017-06-06 20:08:19 +01:00
w0rp
ef86a8a389
Make the test for the history more reliable
2017-06-06 19:54:10 +01:00
w0rp
e88eb6c415
Use BufWinEnter for g:ale_lint_on_enter instead
2017-06-06 17:01:17 +01:00
w0rp
fcc17dffbe
Fix a test
2017-06-06 09:54:17 +01:00
w0rp
1a62e95733
Do not check files on insert leave
2017-06-05 13:55:18 +01:00
Drew Neil
33b0852c84
Add :ALEFirst and :ALELast commands ( #616 )
...
* Add :ALEFirst and :ALELast commands
* Add documentation for ALEFirst and ALELast commands
* Add tests for ale#loclist_jumping#JumpToIndex()
* Fix the loclist jumping tests
2017-06-03 12:45:52 +01:00
w0rp
7c68889bbc
#574 Do not restore items with no columns for highlights from hidden buffers
2017-06-02 19:02:54 +01:00
w0rp
d5ae9b50ea
Fix #499 Set an explicit height for the quickfix list, and make the height configurable
2017-06-01 10:39:21 +01:00
cs86661
81f27a99c8
Set qflist/loclist window title properly ... ( #588 )
...
* Update list.vim
Set qflist/loclist window title properly ...
* Update list.vim
1. Remove redundant code.
2. Get absolute path from 'a:buffer'.
* Set the list window titles appropriately for each version of Vim, and add tests
2017-05-31 22:55:23 +01:00
w0rp
735a6a2a88
Fix #537 - Add support for balloons
2017-05-31 22:04:33 +01:00
w0rp
5e4c302b5b
Fix #557 - Detect C project roots and include root directories with headers, or include directories
2017-05-31 20:01:47 +01:00
Jon Gjengset
88948e0ee3
Include span label in rust lints ( #601 )
...
* Include span label in rust lints
This turns relatively unhelpful error messages like
mismatched types
into more expressive messages along the lines of
mismatched types: expected bool, found integral variable
Fixes #597 .
* Exclude rust lint span label if empty
* Use single-quoted strings in vimscript
* Add test for detailed rust errors
* Prune Cargo JSON
* Use matching error file name
* Byte offsets not char offsets
2017-05-31 18:16:49 +01:00
w0rp
42efd51723
Fix #596 - Report exceptions thrown by flake8
2017-05-31 15:20:12 +01:00
Jon Gjengset
5eb80f03a2
Include location list end column for rust lint ( #602 )
...
* Include location list end column for rust lint
Fixes #599 .
* Include rust lint end_lnum for good measure
* Reverse engineer end_* for rust lint tests
2017-05-31 13:17:04 +01:00
w0rp
ab50b3a88a
Fix #604 - Support highlights spanning many lines
2017-05-31 13:14:39 +01:00
w0rp
676a4049b3
#604 Add a function for creating positions needed for supporting highlights across many lines
2017-05-31 11:20:57 +01:00
w0rp
fd49f7df90
#604 Change match_id to match_id_list, for future highlights spanning more than 8 lines
2017-05-31 10:27:35 +01:00
w0rp
a90cf62995
Run the temporary file management test synchronously, so it will fail less
2017-05-31 10:01:46 +01:00
w0rp
b9f4b0373a
#591 Store buffer variables when fixing filess, and read them back in ale#Var
2017-05-30 22:15:24 +01:00
w0rp
6ec965c8e4
#591 Support fixing files on save
2017-05-30 21:32:51 +01:00
Adrian Zalewski
7ed343965c
Ember-template-lint handler: properly handle template parsing errors.
2017-05-28 21:19:47 +02:00
w0rp
c17346d402
Fix ALEInfo and some test issues
2017-05-27 23:51:27 +01:00
w0rp
aca5a00fb7
Fix #500 - Support defining aliases for linter names
2017-05-27 21:27:42 +01:00
Agata Naomichi
b934dc52b6
Fix file name checking in rust handler ( #581 )
...
* Fix file name checking in rust handler
* Add a test for rust hanler
* Remove unused variable
2017-05-27 00:35:57 +01:00
w0rp
00d3141962
Fix #577 Add an option preventing linting of large files
2017-05-26 21:21:15 +01:00
w0rp
28a62aab28
Fix #316 - Add tests to check the code used for autocmd events. The functions are already tested elsewhere
2017-05-26 17:36:21 +01:00
w0rp
9460e58c3b
Fix #371 Allow ALE to be disabled in different buffers
2017-05-26 16:20:17 +01:00
w0rp
c77cf0e518
#371 Allow buffer variables to be set based on patterns
2017-05-26 15:59:43 +01:00
w0rp
7fe1119cf1
#576 Run the eslint.js file created by React with node on Windows
2017-05-26 10:02:48 +01:00
w0rp
c89587785b
Fix #549 - escape strings more appropriately for use with cmd /c
2017-05-26 00:06:16 +01:00
w0rp
3840cebbc4
Automatically use eslint_d for eslint, when available
2017-05-25 22:34:59 +01:00
w0rp
c31cd12bdd
Simplify the sandbox check, to save on execution time
2017-05-25 17:23:21 +01:00
Nozomu Okuda
43098171ac
Translate pylint output column to 1-based index
...
This should fix #575 ; also added vader tests to ensure that translation
is working properly.
2017-05-24 21:40:06 -06:00
w0rp
1e72a7a130
Add a fixer for Python for automatically adding blank lines before control statements
2017-05-22 12:59:40 +01:00
w0rp
4526018344
Remove the test for highlight linking, because it just cannot be tested
2017-05-22 10:01:41 +01:00
w0rp
71bf2bfb94
Fix #572 - Link to whatever SignColumn links to for ALESignColumnWithoutErrors
2017-05-22 09:34:25 +01:00
w0rp
b67c103d06
#309 Add an option for changing the sign column color when problems are detected
2017-05-21 22:42:27 +01:00
w0rp
3a289dab6b
#318 Do not capitalize the first character for cursor messages
2017-05-21 19:51:34 +01:00
w0rp
23ee0d0992
#149 - Set different highlights for info, style error, and style warning problems
2017-05-21 19:22:48 +01:00
w0rp
57ad32f986
Fix counting of warnings and style warnings
2017-05-21 18:58:26 +01:00
w0rp
ab44d05508
#149 - Support info and style problem types for status lines
2017-05-21 15:37:45 +01:00
w0rp
f92bbab8cf
#149 - Support Info, style error, and style warning types for problems for signs
2017-05-20 23:32:41 +01:00
w0rp
3530180a73
Suggest functions for fixing issues for ALEFix
2017-05-20 19:02:36 +01:00
w0rp
59d9f5d458
Allow b:ale_fixers to be used
2017-05-20 19:02:36 +01:00
w0rp
ed097cfcbd
Allow funcref values and lambdas for ALEFix
2017-05-20 19:02:36 +01:00
w0rp
74691269ce
Run a lint cycle after fixing problems
2017-05-20 19:02:36 +01:00
w0rp
e6b132c915
Fix an off-by-one bug in ALEFix
2017-05-20 19:02:36 +01:00
w0rp
4214832ae2
Remove the code for checking if functions exist. It breaks autoload functions
2017-05-20 19:02:36 +01:00
w0rp
1f4d1800e0
Allow function aliases to be registered for fixing problems, and add some more argument checking for fixing problems
2017-05-20 19:02:36 +01:00
w0rp
0b743389e5
Send modified lines to jobs, not the file contents
2017-05-20 19:02:36 +01:00
w0rp
05bab00c3c
Allow strings to be used for selecting a single fix function for g:ale_fixers too
2017-05-20 19:02:36 +01:00
w0rp
8ebd15a54d
Add commands to run ALEFix, and some tests to cover functionality so far. Add a simple autopep8 function.
2017-05-20 19:02:36 +01:00
w0rp
d012fd1f09
Revert "Fix #556 Remove duplicate error messages from clang++"
...
This reverts commit 164c4efb32
.
2017-05-20 12:57:41 +01:00
w0rp
0646b2861f
Revert " #562 Join split JSON lines together for new Rust output"
...
This reverts commit 5790df1272
.
2017-05-20 12:57:21 +01:00
w0rp
0f0d1709c5
#567 Try and fix NeoVim split line handling
2017-05-20 12:50:19 +01:00
Sander van Harmelen
455793dfd9
Improve performance when using gometalinter ( #566 )
...
* Improve performance when using gometalinter
Before this change when I opened a big project that had 6000+ warnings/errors it took ages to get the actual warnings/errors and it caused my CPU to be busy for quite some time. The call to gometalinter alone took about 24 seconds, but after that vim was struggling as well.
After this change the gometalinter call just takes 2 seconds and nothing noticable happens with the CPU and/or vim.
* Removed obsolete test
This logic is no longer done by the `ale` plugin, but by `gometalinter` itself.
2017-05-20 11:43:28 +01:00
w0rp
bb1f045d59
Merge pull request #564 from adriaanzon/php-end-columns
...
Add end columns on php linter
2017-05-18 09:38:15 +01:00
q12321q
cdf0fb39e5
Add xmllint linter ( #559 )
...
* Add xmllint linter for xml
2017-05-18 09:31:12 +01:00
w0rp
2fd4db91ce
Merge pull request #561 from meunierd/override-rubocop-executable
...
Allow overriding rubocop executable.
2017-05-18 09:19:23 +01:00
Adriaan Zonnenberg
05970e1b28
Add end columns on php linter #538
2017-05-17 21:28:29 +02:00
Adriaan Zonnenberg
6299da7bd3
Break up php tests so the output is easier to read
2017-05-17 21:19:34 +02:00
Devon Meunier
3f926de76b
Escape executable
2017-05-17 08:46:47 -04:00
w0rp
f7fc54262d
Refactor special command parsing into its own file
2017-05-17 11:17:49 +01:00
w0rp
164c4efb32
Fix #556 Remove duplicate error messages from clang++
2017-05-17 10:10:25 +01:00
w0rp
5790df1272
#562 Join split JSON lines together for new Rust output
2017-05-17 09:43:28 +01:00
w0rp
372a4dfd7e
Merge pull request #546 from dawikur/master
...
Add cpplint linter
2017-05-17 09:12:36 +01:00
w0rp
3443994a52
#538 Set some end columns for some eslint problems
2017-05-16 22:57:15 +01:00
w0rp
e2860f8a26
#538 Fix an off-by-one bug with end columns
2017-05-16 19:46:19 +01:00
Devon Meunier
9ca51ed035
Allow overriding rubocop executable.
2017-05-16 14:07:52 -04:00
w0rp
a65358cfce
#538 Suport highlight sizes by looking at end column numbers
2017-05-16 18:12:49 +01:00
Dawid Kurek
9185a0d2e5
Add cpplint linter
2017-05-16 19:09:59 +02:00
w0rp
4c5e97dd1c
Fix #555 - Handle csslint errors without groups
2017-05-15 21:21:09 +01:00
w0rp
78a7df52c0
Clean up linters after running the checkstyle handlers
2017-05-15 20:59:50 +01:00
w0rp
42155049a5
Merge pull request #551 from meunierd/add-checkstyle-linter
...
Add checkstyle linter
2017-05-15 20:58:06 +01:00
w0rp
11a50b2580
Fix #553 - Filter out errors from other files for gometalinter
2017-05-15 20:43:55 +01:00
Devon Meunier
9baae52d1a
Add checkstyle linter
2017-05-15 15:41:04 -04:00
wisut hantanong
3f33dc7d98
Haskell: add ghc-mod linter
2017-05-15 19:46:02 +01:00
w0rp
5a947933d7
Refactor jobs into a Vim version agnostic API which can be used for other purposes
2017-05-12 21:16:15 +01:00
w0rp
2bafdb7e5a
Run all tests in NeoVim, improve the test script, and make all tests pass for NeoVim
2017-05-12 20:38:52 +01:00
w0rp
fa54f7af97
Remove a dependency on eslint, ready for the new Docker image
2017-05-12 09:19:36 +01:00
w0rp
ac707be619
Remove the tests which run C compilers. They are too expensive and difficult to maintain
2017-05-11 00:07:30 +01:00
Adriaan Zonnenberg
4e5a848d95
Merge pull request #533 from pbogut/add_php7_compatibility
...
Add PHP 7 compatibility
2017-05-09 18:34:38 +02:00