w0rp
790c614b7a
#333 Update line numbers for loclist items when current sign_id values are set
2017-03-14 23:04:25 +00:00
w0rp
d19a35485f
#333 Keep any loclist items which have match_id values set on them
2017-03-14 20:26:44 +00:00
Markus Doits
fae26369d4
add slim-lint ( #388 )
...
* add slim-lint
* add slim readme entry
* add slim entry to doc
* add slimlint vader test
2017-03-13 23:21:59 +00:00
w0rp
3f3d8b0014
Merge pull request #393 from naoina/fix-coffeelint-pattern
...
Fix pattern of output for coffeelint
2017-03-13 23:18:06 +00:00
Naoya Inada
e969d97843
Fix pattern of output for coffeelint
2017-03-13 20:09:49 +09:00
w0rp
711ab99362
#333 Remember the IDs for highlights
2017-03-12 22:46:33 +00:00
w0rp
382e569f66
Revert "Don't save the sign ID on loclist items. This approach won't work."
...
This reverts commit f25a543260
.
2017-03-12 22:34:32 +00:00
w0rp
f25a543260
Don't save the sign ID on loclist items. This approach won't work.
2017-03-12 21:48:40 +00:00
w0rp
4bf6784d7d
#333 Save sign IDs back on loclist items, and make it possible to get line numbers again
2017-03-11 20:33:29 +00:00
w0rp
892fff03cc
Cover error priority in the sign tests
2017-03-11 17:39:51 +00:00
w0rp
bd07d04670
Cover parsing of Italian signs with tests
2017-03-10 13:21:08 +00:00
w0rp
3b981e22cc
Fix sign tests.
2017-03-09 22:45:22 +00:00
w0rp
587360e760
Group sign tests
2017-03-09 22:18:45 +00:00
w0rp
3cababc83b
Fix #386 report problems with eslint configuration files
2017-03-09 21:05:00 +00:00
w0rp
ad49846a48
#376 Use the window ID for a given buffer for setting the loclist
2017-03-09 00:43:53 +00:00
w0rp
1c3f0b1e19
#333 Add the List needed for the lint_file option, and option itself. Neither do anything meaningful yet
2017-03-08 00:23:14 +00:00
w0rp
21caf54543
Make the navigation commands only work with ALE's pre-sorted list
2017-03-07 23:31:25 +00:00
w0rp
b3ab89ac15
Make sure to reset linters after running the nix handler test
2017-03-06 23:34:19 +00:00
w0rp
663d8f832f
Group handler test cases in a directory
2017-03-06 23:32:48 +00:00
w0rp
75a2dc5ff5
Complain loudly when other conflicting plugins are installed
2017-03-06 23:15:34 +00:00
Alistair Bill
f659d97504
Add nix handler test cases
2017-03-05 20:36:29 +00:00
w0rp
76df2d393b
Fix detailed messages with newline characters
2017-03-04 23:55:12 +00:00
w0rp
2750c605c1
Fix cursor issues, and clean up the cursor tests
2017-03-03 20:14:03 +00:00
w0rp
da8a0f25cc
Fix the tests again
2017-03-03 19:37:24 +00:00
Jasper Woudenberg
edc5dee226
Merge remote-tracking branch 'upstream/master'
2017-03-02 19:04:28 -08:00
Jasper Woudenberg
f5ddc51d85
Address some feedback
2017-03-02 18:40:07 -08:00
w0rp
969274ccc2
Try and fix issues on Travis
2017-03-03 01:01:24 +00:00
w0rp
0e50a7d278
Fix #373 - echo the cursor message after lint cycles or when leaving Insert mode
2017-03-02 23:36:31 +00:00
Jasper Woudenberg
70711022db
Add support for error details
...
Some review needed.
2017-03-01 23:27:48 -08:00
Adriaan Zonnenberg
6befe9e37c
Fix PHP column matching for unexpected single quotes ( #370 )
...
* PHP: Fix column matching for unexpected single quotes
Unexpected single quotes resulted in an empty match, because PHP
surrounds the errors with quotes, and we check for the next quote to be
the ending delimiter.
For example: an unexpected string 'foo' would be presented as
`unexpected ''foo''`, and then the match would be `''`. The inner part
of that match is an empty string.
This adds a check for the keyword "expecting". Any quote after
"expecting" won't be matched, so we can use greedy matching instead of
non-greedy.
* PHP: Use "very magic"
The pattern started to get unreadable
Also replaced non-greedy matching (`\{-}`) by greedy matching, because
we don't need to match non-greedily anymore and it reads a little nicer.
* PHP: Add tests for column matches
And with that, also a test for unexpected single quotes.
2017-03-01 23:26:03 +00:00
w0rp
ceeff6c723
Fix #288 - Add a command for running ALE
2017-02-28 09:10:58 +00:00
w0rp
b2fe1b2567
Copy all loclist items returned from handlers, and set up defaults for convenience
2017-02-26 14:51:22 +00:00
Jon Parise
c2c6c9f491
Fix Credo's line-matching pattern ( #360 )
...
* Fix Credo's line-matching pattern
In d3e7d3d5
, the line matching pattern was changed to handle filenames
other than `stdin`. Unfortunately, this broke the pattern's ability to
reliably extract both line and column numbers because the latter is an
optional match and the filename portion was very greedy. This resulted
in line numbers being discarded (treated as part of the filename) and
column numbers being interpreted as line numbers.
This change simplifies the pattern to only anchor on the line's suffix,
ignoring the filename portion entirely.
Alternatively, we could use vim's `\f` ("file name characters") class,
but that could still run into problems when `:`'s naturally appear in
the filename.
* Add a Vader test case for the Credo handler
2017-02-22 23:33:05 +00:00
Chris Paul
fef3276f34
escape dot in maker regex ( #357 )
...
* escape dot in maker regex
* Create test_typecheck_handler
* Rename test_typecheck_handler to test_typecheck_handler.vader
2017-02-21 20:32:37 +00:00
w0rp
6a02c5812c
Fix #314 - quickfix should take precedence over loclist for jumping
2017-02-21 12:51:49 +00:00
w0rp
c310080359
#314 filter both lists, and add tests to cover the list retrieval
2017-02-21 12:46:07 +00:00
w0rp
3c4af280f0
Remove a flaky PHP handler
2017-02-21 11:35:37 +00:00
w0rp
3786322cf0
Merge remote-tracking branch 'adriaanzon/php-columns'
2017-02-21 11:34:39 +00:00
w0rp
8eca101fd1
Merge pull request #348 from rob-b/add-hdevtools-linter
...
Add hdevtools linter for haskell
2017-02-21 11:09:15 +00:00
Adriaan Zonnenberg
cca0222cf1
PHP: Make parser work with more error messages
2017-02-18 00:51:33 +01:00
Adriaan Zonnenberg
a18e172a96
PHP: Fix test for column highlighting
2017-02-18 00:04:59 +01:00
Rob Berry
06fe8a043f
Add hdevtools linter for haskell
...
This adds support for the hdevtools haskell linter
https://github.com/hdevtools/hdevtools
The output for hdevtools is near identical to the ghc output so this
also extracts the ghc handler into the handle file and adds tests
* Add testing for previous major release of ghc
2017-02-17 17:18:38 +00:00
w0rp
b21ca4ed4e
Use a more reliable method for getting an ID for a job
2017-02-17 10:19:44 +00:00
w0rp
eac0a41ae1
#254 Add an option for logging the output of commands
2017-02-16 23:18:57 +00:00
w0rp
843370b96f
#254 Capture command exit codes in the history
2017-02-16 22:19:53 +00:00
w0rp
ca17b5aebd
Add an option for completely disabling command history, and add documentation
2017-02-16 21:33:44 +00:00
w0rp
3a2286a1b8
Refactor history management functions into their own file
2017-02-16 21:18:03 +00:00
Rob Berry
c4afd72792
Add hdevtools linter for haskell
...
This adds support for the hdevtools haskell linter
https://github.com/hdevtools/hdevtools
The output for hdevtools is near identical to the ghc output so this
also extracts the ghc handler into the handle file and adds tests
2017-02-16 10:06:48 +00:00
Adriaan Zonnenberg
b2241e991b
Support columns on php handler
...
Also added some tests for different error messages
2017-02-15 23:59:18 +01:00
w0rp
cb60a2c06e
Cover ALEToggle with Vader tests
2017-02-15 21:36:16 +00:00
w0rp
ed370667c8
#254 Add command history to ALEInfo
2017-02-14 23:44:37 +00:00
w0rp
c460602cbb
#338 Try and stop ALE from throwing ALEs when run from a sandbox
2017-02-14 21:02:49 +00:00
Daan van Vugt
68b6be57f1
Update line marker pattern for new gfortran
...
Add tests for GCC 4.1.2, 4.9.2 and 6.3.1
2017-02-14 14:31:31 +01:00
w0rp
f39e88cfa8
#274 - Fix airline integration when ALE is not loaded fully
2017-02-13 23:31:29 +00:00
w0rp
c0814934af
Output ALE global variables for :ALEInfo
2017-02-13 23:15:52 +00:00
w0rp
0589022c76
Include most linter variables in ALEInfo
2017-02-13 22:11:35 +00:00
w0rp
5cdd1498b4
#283 Fix linting buffers with no filename, by creating a filename with a guess for the file extension
2017-02-13 10:36:38 +00:00
w0rp
3aa1d57b57
Fix #171 - Implement basic error highlighting
2017-02-13 00:24:25 +00:00
w0rp
ecbb276805
Replace every stdin-wrapper script with the new %t formatting support
2017-02-11 19:40:57 +00:00
w0rp
c33602534e
Fix Pug linting
2017-02-11 18:49:12 +00:00
w0rp
03ab963d1a
Add support for temporary filename substitution, for replacing stdin_wrapper
2017-02-11 18:14:18 +00:00
w0rp
88192e8662
Add support for managing temporary files/directories
2017-02-11 15:16:08 +00:00
w0rp
49f7ce4f6d
Fix #246 Don't run flow if there's no .flowconfig
2017-02-10 22:47:56 +00:00
w0rp
926cd1a953
Fix #283 Add an option for using ch_sendraw(), which can be better for some users
2017-02-10 19:34:44 +00:00
w0rp
c528ab1eaa
Fix #269 Set $TMPDIR to a default value, if not set
2017-02-10 09:45:42 +00:00
w0rp
5de445c041
Fix #315 Implement the read_buffer option
2017-02-09 23:32:57 +00:00
w0rp
9f8c76b5b9
Make ALE complain when conflicting command options are used
2017-02-09 20:44:13 +00:00
w0rp
b0190fd080
Merge pull request #306 from ahmedelgabri/standardjs
...
Add standard linter
2017-02-09 18:56:40 +00:00
w0rp
df2c6df819
Add a test to cover sign placement after linting
2017-02-07 22:55:23 +00:00
w0rp
c3ebe7bd9e
Cover the Rust handler with some tests
2017-02-07 21:17:10 +00:00
w0rp
a3b7056cad
#289 Only use the --stdin-display-name flag if the flake8 version supports it
2017-02-06 11:12:27 +00:00
Ahmed El Gabri
119695bd08
Add standard linter
2017-02-05 21:19:34 +01:00
w0rp
d953c68ebb
Fix mypy error parsing when column numbers are included.
2017-02-04 19:47:37 +00:00
w0rp
829f87bc6a
Fix #124 Finish implementing command chaining, and make it work for DMD
2017-02-04 18:30:30 +00:00
DiscoViking
a9c650cd05
Add ALEInfo command to get list of available/enabled linters ( #273 )
...
* Add ALEInfo command to get list of available/enabled linters for current filetype
* Add Vader tests for ALEInfo command
* Fix ALEInfo tests breaking CI by echoing too much output to screen
* Speculative change to Makefile which seems to fix test hanging problem locally.
* Fix Vader tests to not require a TTY
2017-01-24 15:50:49 +00:00
EinfachToll
23f8e7ddc5
Fix parsing of currently shown signs with Spanish locale ( #268 )
...
* Fix parsing of currently shown signs with spanish locale
* Add a test for parsing of Spanish signs
2017-01-22 13:40:23 +00:00
w0rp
a37970facd
Clean up the list opening tests
2017-01-22 13:33:16 +00:00
yfery
a23173eeb2
Add option to open loclist/quicklist when there are errors ( #266 )
...
* Add option to open loclist/quicklist when there are errors
I copied PR #137 , and tries to complete it by correcting some issues and
adding vader tests.
About tests, first time with vader, can you give some feedback if there
are what you expected in PR #137 .
* Remove old code + fix indent issue
* add g:ale_keep_list_window_open option
* Correct bug with keep open option
* Add comment into vader file
* Fix errors for Travis CI build
2017-01-22 12:57:05 +00:00
w0rp
9820899b9e
Improve mypy handling a little bit more
2017-01-20 17:30:34 +00:00
EinfachToll
831f783493
Join the lines Neovim passes to ale ( #263 )
...
* Join the lines Neovim passes to ale
Fixes #256
* Refactor line joining into own function
* Add test for line joining
* Fix the test. Sorry.
2017-01-19 20:01:51 +00:00
w0rp
771bfe3b18
#193 Fix a parsing error for parsing errors with eslint
2016-12-22 11:16:22 +00:00
w0rp
8cb9b2ba4e
Make sign parsing testable, and add tests for it against various languages.
2016-12-16 10:01:28 +00:00
w0rp
10777d3421
Add tests to cover definitions for linters so far.
2016-12-13 13:33:19 +00:00
w0rp
614a30a508
Improve file blacklisting to make Unite.vim not fuck up.
2016-10-31 14:47:08 +00:00
w0rp
c546f47cc0
Merge everything into the one global map.
2016-10-24 20:21:42 +01:00
w0rp
7481facd73
#107 Stop jobs when buffers close
2016-10-23 22:41:00 +01:00
w0rp
36461b69d7
Support loading eslint from node_modules, re issue #118 .
2016-10-23 13:04:41 +01:00
Bjorn Neergaard
dc99282f79
Clean up some test filenames and extraneous code
2016-10-22 08:53:28 -05:00
Bjorn Neergaard
f49f615ef6
Add support for dot-seperate linters, improve linter tests
...
This PR first and formost implements support for dot-seperate filetypes,
a very trivial change.
This closes #132
But more importantly, this PR vastly improves the test quality for
`ale#linter#Get`. It enables us to reset the state of ale's internal
linter cache, to facilitate better testing, as well as making use of
mocked linters instead of depending on linters on disk (which may
change). In addition, a dummy linter is defined to test the autoloading
behavior.
Header guards were removed from all linters as:
* A: ale won't try and load linters if they already exist in memory
* B: we can't reset state for testing if they can't be loaded again
2016-10-21 21:02:20 -05:00
w0rp
5eee70cf37
Merge pull request #129 from neersighted/ansible
...
Add ansible-lint support and factor out PEP8 handler
2016-10-21 09:21:50 +01:00
Bjorn Neergaard
c697ef05bb
Add PEP8 handler test.
2016-10-20 22:52:25 -05:00
w0rp
7a06d276c2
#131 Keep the error types in the message for eslint
2016-10-20 18:07:55 +01:00
Bart Libert
a34fb0a6a7
Add support for cppcheck ( #126 )
...
* Add support for cppcheck
* Fix vint error in cppcheck handler
* Add vader test for CppCheck format handler
2016-10-20 12:30:45 +01:00
w0rp
6df632218e
Add a test which checks that we can find the stdin-wrapper script.
2016-10-19 23:26:07 +01:00
Bjorn Neergaard
0e6f406fe0
Add autocommand test
2016-10-17 20:14:21 -05:00
w0rp
bf45ab6d8d
Add a function for waiting for linters to complete, and add a test which checks that linting updates the loclist.
2016-10-17 23:26:19 +01:00
w0rp
654a172473
Make the nearest file search result absolute paths, and add tests to cover it.
2016-10-17 21:14:34 +01:00
w0rp
7c2a16e149
Add a test to check that buffer cleanup works.
2016-10-17 20:42:50 +01:00
w0rp
c726503acf
Correct the order of arguments for AssertEqual in some places.
2016-10-14 20:34:21 +01:00
w0rp
56b866c8d8
Add some tests for the EchoCursorWarning function.
2016-10-14 20:29:31 +01:00