w0rp
2c2c7ceb1d
Fix #1384 - Handle warnings and suggestions for tsserver
2018-03-02 20:33:45 +00:00
Andrew Crites
acbe527e15
Option to open lists vertically ( #1381 )
...
* Add configuration option to open lists vertically
* Add tests, clean up vertical list config
* Vertical list option cleanup
* Use is# for tests
* Order properties in documentation alphabetically
2018-03-02 20:22:29 +00:00
w0rp
2096562899
Make updating linter results slightly faster when the list is empty
2018-03-02 12:10:27 +00:00
Julien Deniau
fbbb8c17d9
add php-cs-fixer to list of fixers
2018-03-01 15:48:47 +01:00
Christian-Gibbons
82f8a04e18
New linter: Flawfinder ( #1361 )
...
* Flawfinder support added for C and C++
A minor modification to gcc handler was made to support flawfinder's
single-line output format that does not have a space following the
colon denoting the warning level. gcc handler still passes its
Vader tests after this modification.
* Documentation fixes
* Revert documentation regression
* Added Flawfinder to table of contents
* Removed trailing whitespace
* Follow ALE conventions better
Added additional documentation and Vader tests
2018-02-25 14:11:04 +00:00
w0rp
478a2883a6
#1363 Make ale#engine#IsCheckingBuffer part of the public API
2018-02-25 12:57:54 +00:00
w0rp
89f8d3e456
Fix #1336 - Print a friendly message when using invalid function names for fixers
2018-02-18 10:13:30 +00:00
Kevin Tindall
716b46e10d
functional pony linter
2018-02-10 13:17:53 -06:00
w0rp
0f822b063c
Fix #1330 - Find isort configs better by changing the working directory
2018-02-04 13:16:44 +00:00
blyoa
23db293bdf
Add prettier fixer support to vue
2018-02-01 02:30:02 +09:00
w0rp
c589e3d57d
Merge pull request #1322 from datanoise/master
...
fixed rust errors parsing
2018-01-29 13:54:50 +00:00
w0rp
7ef55a8615
#1303 jq isn't a Node program
2018-01-28 11:51:20 +00:00
Kent Sibilev
ea60fcea39
fixed rust errors parsing
...
use correct column values instead of absolute byte positions
2018-01-27 16:15:29 -05:00
w0rp
bc63325881
Merge pull request #1311 from butlerx/update/prettier-md
...
add prettier support for graphql
2018-01-26 17:30:00 +00:00
rhysd
ef898fa303
fixjson: Add support for local installation
2018-01-25 07:21:25 +09:00
butlerx
be47e37bbc
add prettier support for graphql
2018-01-24 15:25:25 +00:00
rhysd
b28a6ddbe4
Support fixing JSON files with fixjson
2018-01-24 10:36:31 +00:00
Rafael Rinaldi
d562d53102
Add jq as a JSON fixer
2018-01-24 10:12:29 +00:00
w0rp
8675bfc4ab
Merge pull request #1287 from rhysd/prettier-markdown
...
Enable prettier to format markdown files
2018-01-19 17:16:00 +00:00
w0rp
a5ec4143d2
Fix the didSave tests so they work in NeoVim 0.1.7, and do not send the message for tsserver
2018-01-19 16:50:04 +00:00
Rafael Lerm
042dec059a
Send didSave message to LSP-based linters ( #1295 )
...
* Also send didSave to LSP linters.
* Add tests for messages sent to LSP linters.
2018-01-19 16:40:55 +00:00
w0rp
045c92ed65
Fix #1298 - Escape commands for PowerShell
2018-01-17 18:08:17 +00:00
rhysd
13c839cf16
Enable prettier to format markdown files
2018-01-15 11:28:56 +09:00
Jelte Fennema
b6d1c41925
Go: Add gotype support ( #1099 )
2018-01-07 12:11:01 +00:00
w0rp
c9d66b861b
Show more ALE variables in ALEInfo
2018-01-07 12:01:20 +00:00
Björn Lindström
b0eaddadc9
Don't use temporary file for rustfmt fixer
...
rustfmt normally acts on a file in place, and applies configuration
from rustfmt.toml files according to the path of the file.
Using a temporary file for rustfmt breaks this functionality, so
removing the '%t' from the rustfmt command.
2017-12-27 23:12:57 +07:00
w0rp
c165c7c5d1
Fix #1251 - Handle an empty list in the line callback when NeoVim crashes
2017-12-26 18:15:59 +00:00
w0rp
e43e7065da
Fix #1115 - Add support for wrapping all commands with an option
2017-12-20 12:20:38 +00:00
w0rp
1568bf8128
Fix the mscs tests on Windows, and use the improved Simplify for all tests instead.
2017-12-19 18:23:09 +00:00
w0rp
d2bea5c310
Allow the cursor messages to be disabled while Vim is running
2017-12-19 14:43:24 +00:00
w0rp
2cacba5758
Fix #1228 - Reset the cursor if echoing a message moves it
2017-12-19 12:06:08 +00:00
Johannes Wienke
79aaec5a99
Missing warning level 'suggestion' for vale
...
Vale can also, optionally, raise suggestions. These weren't covered yet.
2017-12-18 17:10:57 +01:00
w0rp
fdaac9bd78
Fix #1210 - Fix a Windows path issue which broke TSLint
2017-12-18 13:27:59 +00:00
w0rp
e0c3cbd16f
Remove some now redundant echo code
2017-12-18 11:22:24 +00:00
w0rp
8afd9a70a6
#1212 Fix some echo cursor flashing by only echoing once all linters are finished.
2017-12-18 11:14:10 +00:00
w0rp
fdde8af894
Merge pull request #1232 from languitar/vale-json
...
Use JSON output with vale
2017-12-18 10:11:57 +00:00
Daniel Parker
d3cf02ecda
Add support for Vritual Env folder called venv
2017-12-18 09:33:11 +00:00
Johannes Wienke
96b90b45db
Use JSON output with vale
...
Switches all vale instances to JSON output and provides an appropriate
handler for that. Without JSON, no end_col is provided and text
highlighting only catches the first character of every result.
2017-12-17 16:49:57 +01:00
w0rp
c4956657dc
Merge pull request #1220 from languitar/linter-alex
...
Add a linter for alex
2017-12-17 13:11:49 +00:00
w0rp
55e09a4a2d
Look for mypy.ini to find Python project roots too
2017-12-17 12:38:50 +00:00
w0rp
7e793c9d71
Fix a typo
2017-12-17 12:36:07 +00:00
w0rp
c8ee402cce
Merge pull request #1203 from Carpetsmoker/autocmd-start
...
Add ALEStartLint autocmd
2017-12-17 12:06:57 +00:00
Johannes Wienke
55ca96bd83
Add a linter for alex
...
https://github.com/wooorm/alex
Enabled for text-like file formats and documented in README and doc.
2017-12-13 14:37:42 +01:00
Martin Tournoij
4825cce1cc
Run before lint cycle, rename autocmds
2017-12-10 13:10:52 +00:00
butlerx
0700c2d900
add google-java-format fixer
2017-12-09 14:25:35 +00:00
Martin Tournoij
92f20b0e51
goimports fixer doesn't work for vendored libraries
...
In Go you can "vendor" packages by putting them in the `vendor/`
directory for a project. Adding the `-srcdir` argument makes `goimports`
pick up these packages, in addition to what you have in GOPATH.
Without this, `goimports` is not very useful, since most projects vendor
their packages.
2017-12-08 12:49:02 +00:00
w0rp
7d932a239c
Fix #1205 Do not add line highlights if the groups do not exist
2017-12-07 23:25:17 +00:00
w0rp
7a71186d62
Merge pull request #1174 from eborden/eborden/add-brittany-for-haskell-formatting
...
Add brittany for Haskell formatting
2017-12-07 19:15:33 +00:00
Martin Tournoij
d6bf13502a
Add ALEStartLint autocmd
...
This grew out of my work in #1193 ; to ensure the statusline was being
updated I had to add:
fun! s:redraw(timer)
redrawstatus
endfun
augroup ALEProgress
autocmd!
autocmd BufWritePost * call timer_start(100, function('s:redraw'))
autocmd User ALELint redrawstatus
augroup end
Which kind of works, but is ugly. With this, I can replace the
`BufWritePost` with:
autocmd User ALEStartLint redrawstatus
Which is much better, IMHO.
Actually, this patch actually replaces adding a function, since you can
do:
augroup ALEProgress
autocmd!
autocmd User ALEStartLint hi Statusline ctermfg=darkgrey
autocmd User ALELint hi Statusline ctermfg=NONE
augroup end
or:
let s:ale_running = 0
let l:stl .= '%{s:ale_running ? "[linting]" : ""}'
augroup ALEProgress
autocmd!
autocmd User ALEStartLint let s:ale_running = 1 | redrawstatus
autocmd User ALELint let s:ale_running = 0 | redrawstatus
augroup end
Both seem to work very well in my testing.
No need to `ale#Statusline#IsRunning()` anymore, I think?
2017-12-07 16:14:20 +00:00
Jeff Willette
fba3c57872
added importjs fixer
...
- added tests for fixer functions
- added docs
2017-12-05 00:37:31 +09:00
w0rp
a4f8506227
Fix #1186 - Disable checking code with perl by default
2017-12-02 20:43:47 +00:00
w0rp
83760a0952
Merge pull request #1188 from ejsexton82/master
...
Fixed Command String for phpcbf Fixer
2017-12-02 12:25:13 +00:00
w0rp
6053f764bd
Make toggling work when pattern options are enabled
2017-12-01 17:12:19 +00:00
E.J. Sexton
6b3927820b
Fixed command string for phpcbf fixer
2017-12-01 14:55:34 +01:00
w0rp
a990188e27
Fix #1176 - Add an option for caching failing executable checks
2017-11-30 10:34:51 +00:00
w0rp
fd261264d7
Escape the filename for finddir
2017-11-30 10:25:32 +00:00
Lukas Galke
5d65980c42
fnameescape when searching nearest file
2017-11-30 00:33:13 +01:00
w0rp
6503b85d3d
Fix #1178 - Don't use the output from eslint_d for fixing files when the output is an error message
2017-11-29 10:08:54 +00:00
Evan Rutledge Borden
edb3a0c5e4
Add brittany for Haskell formatting
...
`brittany` is one of the options for Haskell source formatting. This
adds the necessary fixer files and documentation to support `brittany`
in `ALE`.
2017-11-28 17:58:13 -05:00
w0rp
21b460bb1d
Implement go to defintion for LSP linters
2017-11-26 22:27:08 +00:00
w0rp
01318b6930
Compress one line
2017-11-26 21:30:26 +00:00
w0rp
ae7cd2c090
Fix #918 - Save prettier details for Haskell linters
2017-11-26 18:24:10 +00:00
w0rp
8254e507d6
#1162 Get LSP completions working reasonably well
2017-11-26 13:01:01 +00:00
w0rp
b1a6abdda6
#1162 Add unfinished experimental code for supporting LSP completion, clean up the tests, and make the completion cancelling better
2017-11-26 12:24:18 +00:00
Martin Tournoij
7dfe690b0b
Delete to black hole register in fixer
...
Otherwise it'll be in "" and "0, which is an unexpected side-effect
IMHO.
2017-11-25 03:36:36 +00:00
w0rp
5160f814d9
Fix #988 - Support --fix-dry-run for ESLint by processing the JSON output
2017-11-22 23:23:14 +00:00
w0rp
8dd542bed0
Fix lambda and funcref chain values
2017-11-22 22:39:43 +00:00
w0rp
d07b5b71a4
Add support for post-processing fixer output
2017-11-22 22:32:53 +00:00
w0rp
6e65998ca7
#988 Take --fix-dry-run away again, because it is dumb
2017-11-22 17:01:50 +00:00
w0rp
b5ec1a5fd0
Fix #988 - Support --fix-dry-run for ESLint where available, and --fix-to-stdout for eslint_d
2017-11-22 16:51:04 +00:00
w0rp
91fe749d03
Fix a bug with resetting pattern options when ALE is enabled again
2017-11-22 16:39:05 +00:00
w0rp
5d2ab192cf
Support fixer aliases, and make prettier-eslint and prettier-standard just work
2017-11-22 15:31:39 +00:00
w0rp
4b4762697c
#1095 Use --stdin-filepath where available for prettier-eslint
2017-11-22 14:46:14 +00:00
w0rp
520541cd2d
#1095 - Use --stdin-filepath for prettier, where available
2017-11-22 13:46:11 +00:00
w0rp
3f70f1cbf1
Disable piping buffer data into commands for fixing files where needed
2017-11-22 13:01:13 +00:00
w0rp
074a011b08
Make fixing ignore empty output better
2017-11-22 12:01:21 +00:00
w0rp
8be85c2997
Use some default regex for completion support in other filetypes
2017-11-21 16:18:08 +00:00
w0rp
3ef98f42bd
Fix #783 - Do not run Flow with home directory configuration files by default
2017-11-21 14:37:01 +00:00
rhysd
d465b71362
redpen: use 'code' key to show validator
...
instead of embedding it into text
2017-11-21 15:49:04 +09:00
w0rp
7ea3aba5e5
Quietly add go to definition support for tsserver
2017-11-21 00:21:45 +00:00
w0rp
9420c411bd
#1149 Fix conversion from URIs to filenames on Windows
2017-11-20 00:02:33 +00:00
w0rp
597507e519
Make the message formats configurable with buffer local variables
2017-11-19 23:44:09 +00:00
w0rp
0cb8130d0e
Stop the completion tests from failing randomly
2017-11-19 23:09:20 +00:00
w0rp
d7a60ade77
#852 - Capture error codes for stylelint
2017-11-19 12:30:20 +00:00
w0rp
cefc5dc5b8
#852 - Capture error codes for csslint
2017-11-18 23:15:23 +00:00
w0rp
0e96d4576a
Merge pull request #1142 from rhysd/redpen-ext
...
* redpen support for asciidoc, reST, LaTeX and Re:VIEW
* redpen: fix start column
* add redpen as text linter
2017-11-17 16:34:01 +00:00
w0rp
5635b3c864
Fix #741 - Set highlights for entire lines when signs are disabled
2017-11-17 14:29:57 +00:00
rhysd
ca345ffb62
redpen: fix start column
2017-11-17 15:34:07 +09:00
rhysd
44cd07d39c
redpen support for asciidoc, reST, LaTeX and Re:VIEW
2017-11-17 15:34:07 +09:00
w0rp
71d34fc0c6
Fix #1132 - Parse react error codes again for ESLint
2017-11-16 09:34:24 +00:00
w0rp
e12e5c912c
Complain about stray echo lines in the codebase
2017-11-15 12:00:13 +00:00
w0rp
38bc489604
Merge pull request #1130 from deltaskelta/patch-1
...
fix goimports typo in registry
2017-11-15 11:35:51 +00:00
w0rp
8f80708da6
#852 - Capture error codes for cpplint
2017-11-15 11:28:16 +00:00
Jeff Willette
a36129eab0
fix goimports typo in registry
2017-11-15 09:40:40 +09:00
w0rp
d48506f9c1
Fix #757 - Show :ALEDetail messages in a window
2017-11-14 23:25:01 +00:00
w0rp
6b2c61a5cc
Fix #1128 - Add g:ale_linters_explicit for only enabling linters explicitly
2017-11-14 19:55:46 +00:00
Jeff Willette
20a01404f3
Added support for goimports fixer ( #1123 )
...
* Added support for goimports fixer
* added test and executable check
* fixed test assertions to reflect executable check
2017-11-14 17:37:22 +00:00
w0rp
16e7dc2371
Fix #1069 Support formatting the loclist messages with g:ale_loclist_msg_format
2017-11-14 10:28:36 +00:00
w0rp
fea708cff3
#852 Pass on error codes in the loclist corrections
2017-11-13 23:34:00 +00:00
w0rp
8a3a2da87e
#852 Capture error codes for ESLint
2017-11-13 23:23:06 +00:00
w0rp
764a33b1c9
Fix #1124 - Handle stack-build errors with leading spaces
2017-11-13 22:47:19 +00:00
w0rp
584e0bc7f2
#852 Support formatting echo messages with error codes. No linters set the code
key yet
2017-11-13 00:47:34 +00:00
w0rp
70623ca8a7
Add support for showing Info severities in echoed messages
2017-11-12 23:19:26 +00:00
w0rp
27e2f53ac9
#1108 Support setting b:ale_linter_aliases to a List
2017-11-12 00:11:50 +00:00
w0rp
ae08f80ead
#1108 Support using Lists and 'all' for b:ale_linters
2017-11-11 23:55:11 +00:00
w0rp
f6ac8a9eb9
#1108 Support selecting fixers with Lists
2017-11-11 23:04:08 +00:00
Michael Jungo
fb00acf734
Remove id from LSP notifications
2017-11-11 19:28:24 +01:00
Michael Jungo
f8fec369e5
Add ocaml-language-server for OCaml and ReasonML
2017-11-11 19:27:41 +01:00
w0rp
bac02c9d81
#1095 Cache the sorting of patterns for g:ale_pattern_options
2017-11-11 14:26:54 +00:00
w0rp
8c1d6eda81
#1095 Apply all patterns for g:ale_pattern_options, instead of just the first match
2017-11-11 13:44:12 +00:00
w0rp
d425b8a18a
Simplfy semver handling and share the semver version cache across everything
2017-11-09 23:42:54 +00:00
Auri
8a4cf923a8
Add PyLS linter ( #1097 )
...
* Support PyLS (python language server)
* Replace pyls#GetProjectRoot and add more config types to ale#python#FindProjectRoot
2017-11-08 17:58:56 +00:00
w0rp
1bf894f48c
Fix #1086 - Implement command chaining for fixers
2017-11-07 23:20:14 +00:00
w0rp
d97924b698
Tell users when a fixer does not exist, and make the no fixers message softer
2017-11-07 19:47:20 +00:00
w0rp
8e71f82f8f
#1006 Fix raw message handling for LSP support in NeoVim
2017-11-06 22:46:32 +00:00
w0rp
fa7d041c26
Fix #1085 - Add a final newline character to tsserver and LSP messages
2017-11-05 21:41:53 +00:00
Simon Bugert
716b22d524
Add shfmt fixer for sh files ( #1083 )
...
* Add shfmt fixer for sh files
* Add tests for shfmt fixer
2017-11-05 21:24:41 +00:00
w0rp
caed406e16
Fix #1062 - Use <nomodeline> for the ALELint autocmd, so we don not mess with folds, etc.
2017-11-05 17:34:36 +00:00
w0rp
d851f399c0
Fix #1058 - Ignore all errors with bad calls to jobstop() in NeoVim
2017-11-04 10:54:28 +00:00
w0rp
9c0a5635df
#1081 Remove the ale#python#IsExecutable function
2017-11-04 10:46:19 +00:00
w0rp
9010458581
#1081 Use executable() for Python executables on Windows, and rename the test files to .exe so they will pass the executable() check
2017-11-04 10:41:08 +00:00
w0rp
50f7ad3552
#857 - Add b:ale_fix_on_save for controlling fixing on save for specific buffers
2017-10-30 22:19:57 +00:00
w0rp
1575b3d7dd
Merge pull request #1059 from ahmedelgabri/reason-refmt
...
refmt fixer for ReasonML
2017-10-30 11:30:13 +00:00
Ahmed El Gabri
634eb1920c
refmt fixer for ReasonML
2017-10-29 21:48:28 +01:00
w0rp
daecbad543
Fix #719 - Add ALEReset and ALEResetBuffer for removing problems for all buffers or one buffer
2017-10-29 17:03:29 +00:00
w0rp
5fc2b98b73
#817 Add commands for toggling ALE for only the current buffer
2017-10-28 19:36:16 +01:00
w0rp
ea3a8e3c62
#817 Move code for toggling ALE to its own file
2017-10-28 15:41:14 +01:00
w0rp
6e681d9066
Fix #971 - Add an option for turning errors about missing eslint config files off.
2017-10-28 12:11:33 +01:00
Sam Howie
36898436b5
Add hackfmt fixer
2017-10-27 13:42:55 -07:00
w0rp
6490d3a5e6
Fix #1041 - Do not request completions shortly after CompleteDone
2017-10-26 23:18:12 +01:00
w0rp
33c2c20e66
Fix #1051 - Support ash and dash for shellcheck and the sh linter
2017-10-26 21:21:42 +01:00
w0rp
3ac92ea529
Fix #1048 - Do not lint files named "."
2017-10-26 20:29:33 +01:00
w0rp
2f5b94e07d
Remove redundant code for the GCC handler, and fix bugs with errors for - not being parsed
2017-10-26 00:09:26 +01:00
w0rp
da365134b5
Fix an exception with notes with no previous message
2017-10-25 23:43:09 +01:00
Gerry Agbobada
25d2af0b25
Handle multiple files localtion lists with gcc handler ( #1034 )
...
Handle multiple files in the GCC handler.
2017-10-25 22:29:36 +01:00
w0rp
5029078df3
Set better highlights for write-good
2017-10-25 00:58:16 +01:00
Sumner Evans
7ac07a30b8
Fix #643 - Add support for write-good for many languages
2017-10-25 00:28:06 +01:00
Zack Kourouma
07dad64acb
adds fixer support for hfmt ( #1027 )
...
Add support for fixing Haskell with hfmt
2017-10-24 22:29:04 +01:00
w0rp
c248885e57
Merge pull request #1025 from kfox/add-rustfmt-fixer
...
add rustfmt fixer
2017-10-24 22:20:03 +01:00
w0rp
0e4dd95e5d
Merge pull request #1017 from carakan/elixir_format
...
`mix format` new fixer for elixir lang
2017-10-24 22:13:04 +01:00
w0rp
b952dda386
Get all tests to pass on Windows
2017-10-23 23:09:40 +01:00
w0rp
231398dddc
Get more of the tests to pass on Windows
2017-10-23 01:26:31 +01:00
Carlos Ramos
3212278c91
fix test's and delete unused code
2017-10-22 19:20:38 -04:00
Carlos Ramos
43653ef548
new fixer elixir mix format
...
(only available in elixir > 1.6)
2017-10-22 19:20:38 -04:00
Kelly Fox
35031a0b8a
add rustfmt fixer
2017-10-21 12:31:49 -05:00
Zack Kourouma
e023e7a2fe
add prettier fixer support for 'less' filetype
2017-10-20 18:29:57 -07:00
w0rp
81d993086e
#904 - Allow linting to run on save a second after :q fails
2017-10-17 00:37:29 +01:00
Carlos Ramos
07ebfbeef0
Add new fixer tslint for typescript, fixes #932
2017-10-16 00:53:17 -04:00
Sander van Harmelen
090f8a8f38
Fix issue #734
...
Fixes #734
The main issue was not consitently using the correct buffer.
2017-10-15 11:35:33 +02:00
w0rp
ef495ba32d
#904 Do not run linters on :wq or :x
2017-10-14 23:22:13 +01:00
w0rp
69d6ff6020
#904 Do less processing when newer NeoVim versions are exiting
2017-10-14 19:22:19 +01:00
w0rp
40e69794eb
Make the getcmdwintype() check ever-so-slightly faster
2017-10-14 17:31:58 +01:00
w0rp
6fd10f80de
Cut down on the time for the CtrlPFunky check, by first checking if the command exists
2017-10-14 17:11:30 +01:00
w0rp
5204f2dbc2
Break up ShouldDoNothing checks into separate lines, so it's possible to profile them
2017-10-14 16:51:12 +01:00
w0rp
663fe75d0f
#965 - Make the cursor echo delay configurable
2017-10-12 23:25:41 +01:00
w0rp
e71c4a8bea
#965 - Support limiting the number of signs ALE will set
2017-10-12 23:04:54 +01:00
Carlos Ramos
844354cfed
Add new fixer: TrimWhitespace ( #991 )
...
add a new fixer: trim_whitespace
2017-10-12 09:27:24 +01:00
w0rp
02c8793c53
#965 Check ale#ShouldDoNothing() less and such often, for better performance
2017-10-11 23:51:41 +01:00
Bailey Stoner
3859ac0c9b
Use $VIRTUAL_ENV environment variable when present.
2017-10-10 14:21:04 -07:00
w0rp
a809c4fa3a
Get more random tests to pass on Windows
2017-10-08 23:26:50 +01:00
w0rp
25045641fb
Merge pull request #974 from odinuge/prettier_config
...
Add all possible config files for prettier
2017-10-04 11:38:28 +01:00
Odin Ugedal
a300014396
Add all possible config files for prettier
...
Prettier uses cosmiconfig, and therefore it is possible to add different
extensions to the config file. More information can be found here:
https://github.com/prettier/prettier#configuration-file .
2017-10-04 12:30:42 +02:00
aliou
e376f0ae44
gofmt fixer for Go ( #970 )
...
Add a gofmt fixer for golang.
2017-10-03 18:54:35 +01:00
w0rp
3ab414de1a
Fix #964 - Remove signs when multiple signs end up on a single line
2017-10-03 10:00:16 +01:00
rhysd
753592ca66
Fix typos
2017-10-03 01:11:54 +09:00
w0rp
5091e2de45
Get fixer tests to work on Windows
2017-10-01 20:23:41 +01:00
w0rp
638ca42082
Use local versions of yapf on Windows, and get the callback tests to pass
2017-10-01 18:47:54 +01:00
w0rp
5731616cd2
Get the mcsc handler tests to pass on Windows
2017-10-01 17:36:47 +01:00
Ray Zane
cb56cbb714
There seems to be a bug in eslint that causes the --config
option to
...
not detect node_modules correctly. The `-c` option, however, works fine.
2017-09-24 13:57:18 -04:00
w0rp
a59d1ddbf3
Make temporary file detection work on just about all platforms
2017-09-14 00:11:17 +01:00
w0rp
91df9ba2c0
Fix #924 - Make changing the sign column color work again
2017-09-12 21:17:54 +01:00
w0rp
e2271b769c
Ban getcwd() from the codebase, as it causes problems
2017-09-12 09:36:16 +01:00
w0rp
7f42aedaec
Use the same function for finding the ESLint config for eslint --fix and prettier-eslint
2017-09-12 09:20:31 +01:00
w0rp
661ed6e40b
Fix #923 Use package.json as a last resort for eslint --fix
2017-09-12 09:10:37 +01:00
w0rp
8eb99c3cec
Fix #922 - Prefer nearer ESLint configuration files with lower precedence filenames for eslint --fix
2017-09-11 21:53:45 +01:00
w0rp
e19a81cb09
Fix #920 - Shut up about E776
2017-09-10 20:13:35 +01:00
w0rp
c11d2ae375
Fix an SML variable init bug, and get the SML cm file tests to pass on Windows
2017-09-10 00:20:05 +01:00
w0rp
18f4d5a6da
Simplify some Rust handler code, and get the Rust handler tests passing on Windows
2017-09-10 00:06:31 +01:00
Clément DOUIN
f3da8f45c1
Add elm-format as a new fixer ( #916 )
...
* Add elm-format as a new fixer
2017-09-09 21:30:20 +01:00
w0rp
b3a9a0e3e8
Fix some path issues, and get lsp dir tests passing on Windows
2017-09-09 18:39:56 +01:00
w0rp
89cc8ca314
Fix #912 - Close lists automatically when g:ale_open_list is set to 'on_save' again
2017-09-08 20:10:11 +01:00
Peter Renström
03f1c1e81b
Add 'prettier' fixer support to TypeScript, CSS, SCSS and JSON ( #910 )
...
* Add prettier fixer support for typescript
* Add prettier fixer support for css and scss
* Add prettier fixer support for json
* Use getbufvar() to get &filetype
2017-09-06 15:21:26 +01:00
w0rp
e53debe000
Fix #907 - Stop LSP integration breaking with empty string keys in NeoVim
2017-09-04 00:15:13 +01:00
w0rp
6833e01f23
#894 - Replace ugly temporary filenames for Haskell problems with the buffer's basename
2017-09-03 21:53:48 +01:00
Jake Zimmerman
63e8946fc8
Detect and use CM files for smlnj ( #884 )
...
* Detect and use CM files for smlnj
* Split into two checkers
- one for CM projects
- one for single SML files
* Fix some typos
* Fix error caught by writing tests
We want to actually use `glob` to search in paths upwards from us.
(Previously we were just searching in the current directory every time!)
* Fix errors from former test run
* Write tests for GetCmFile and GetExecutableSmlnj
* Typo in 'smlnj/' fixture filenames
2017-09-03 19:56:14 +01:00
w0rp
c7fbcb3c02
Fix #899 - Make the quickfix and loclist windows close again
2017-09-03 19:44:00 +01:00
w0rp
d482b8e3b7
Fix #891 - Do not check ctrlp-funky windows
2017-09-03 18:24:43 +01:00
w0rp
f9b43a566c
#505 - Do not lint files on enter if the option for linting when the filetype changed is on
2017-09-02 16:57:01 +01:00
w0rp
52eff3bd83
Log commands that are run for ALEFix for ALEInfo
2017-08-31 16:46:40 +01:00
w0rp
7c2a5052a8
Fix #895 - Run Node.js scripts with node.exe instead of node on Windows
2017-08-31 13:12:24 +01:00
w0rp
f36f38c960
Cover the prettier-eslint changes with tests, and fix some problems
2017-08-30 22:49:46 +01:00
Pavel Pertsev
05ce86ea33
Add prettier-eslint legacy option
2017-08-30 22:21:45 +01:00
Pavel Pertsev
c09f8f5764
Passthrough eslint config to prettier-eslint
2017-08-30 22:17:16 +01:00
w0rp
3152e5c207
Fix #888 - Disable pycodestyle by default
2017-08-30 09:13:49 +01:00
w0rp
ec178b0b3b
Add a missing scriptencoding line
2017-08-29 16:57:08 +01:00
aliou
b36882e72e
Add support for prettier configuration file. ( #886 )
...
* Add support for prettier configuration file.
As of version 1.6.0, prettier allows passing a `--config` argument with
a path to a configuration file.
* Add test prettier configuration file.
* Add option to use local prettier configuration.
* Add description for new prettier option.
* Also check if the config is present before using it.
2017-08-29 16:05:19 +01:00
Pavel Pertsev
2a238fda9e
Add prettier_d fixer path
2017-08-29 11:46:53 +03:00
w0rp
b031531e79
#869 - Detect the shell dialect from the hashbang for shellcheck
2017-08-28 19:16:23 +01:00
w0rp
73ec83d055
Handle jobstart() returning -1 in the NeoVim 0.2.0, just in case
2017-08-28 15:25:18 +01:00
w0rp
e13651c16d
Fix #825 - Downgrade signs when problems change
2017-08-26 16:38:27 +01:00
w0rp
cdd1ddffdb
Fix #876 - Save history in a separate buffer variable so history works when linting is disabled
2017-08-25 22:22:26 +01:00
Peter Renström
4bea50b82f
Add clang-format fixer for C/C++ ( #873 )
...
* Add clang-format fixer for C/C++
* Document clang-format options
* Refer ale-cpp-clangformat to ale-c-clangformat
2017-08-24 22:49:43 +01:00
w0rp
623fdf212c
Include executable checks in ALEInfo
2017-08-23 21:41:29 +01:00
w0rp
0507503aa7
#653 Set loclists better when taking data from previous buffers
2017-08-22 22:45:55 +01:00
Eric Stern
2f19cf874b
Suppress warning about .eslintignore'd file ( #836 )
...
* Suppress warning about .eslintignore'd file
* Fix slightly ironic lint error
* Lock error suppression behind a variable; add docs and tests
2017-08-22 21:35:09 +01:00
w0rp
1a524ca63e
#653 - Always set loclist or quickfix in a timer callback, which prevents errors E924, E925, and E926
2017-08-22 21:19:36 +01:00
w0rp
456378cb53
#653 - Jump to the position which Vim does not jump to for moving from quickfix/loclist items to other buffers
2017-08-20 15:59:27 +01:00
w0rp
47e681529b
Merge pull request #862 from notomo/add-phpcbf-fixer
...
add phpcbf fixer
2017-08-20 13:42:03 +01:00
w0rp
753cf5da95
#653 - Automatically accept annoying loclist and quickfix errors from Vim
2017-08-20 13:27:18 +01:00
tmn-o3
5a9a365aed
add phpcbf fixer
2017-08-20 05:47:21 +00:00
w0rp
7112776d1b
#653 Update tslint to set the filename key for problems in other files
2017-08-20 00:05:15 +01:00
w0rp
fb0adc602e
#653 Treat temporary filenames as being for the current buffer
2017-08-19 21:18:27 +01:00
w0rp
9d6883561c
#653 Set problems from other buffers when buffers are first checked
2017-08-19 20:15:46 +01:00
w0rp
5c839c4825
#653 Collect items for quickfix from all buffers, and de-duplicate them. Set filename items in quickfix and loclist.
2017-08-19 14:28:51 +01:00
w0rp
be4347084e
Increase the default maximum completion suggestions to a more useful but safe level, and filter before requesting details, which is faster
2017-08-18 22:34:18 +01:00
w0rp
8cc7cd3aa1
Change the completeopt setting just before showing suggestions too, which works better
2017-08-18 21:06:21 +01:00
w0rp
0a282eb76a
Automatically adjust the completion options when using completion while you type
2017-08-17 23:06:02 +01:00
w0rp
17a76a7403
Cover completion with more tests
2017-08-16 00:45:46 +01:00
w0rp
5af82312fb
Set up one BufEnter event used for everything, and add tests for linting when the filetype changes
2017-08-14 23:31:54 +01:00
w0rp
1680f7af63
Fix a bug where the sign column was not closed some of the time, etc.
2017-08-14 10:00:46 +01:00
w0rp
2d02de33d4
#653 - Filter items based on the buffer number for signs
2017-08-13 16:30:46 +01:00
w0rp
ae6cecabb6
#653 Filter items based on the buffer number for problem counts
2017-08-13 13:24:10 +01:00
w0rp
f67fc43d9b
Simplify the loclist jumping code a little
2017-08-13 13:06:22 +01:00
w0rp
c6d11f4281
#653 - Filter out other buffers for loclist jumping
2017-08-13 13:02:59 +01:00
ilex
bc548b2ef9
Fix bug with ALEPrevious for blank lines.
...
ALEPrevious (as well as ALEPreviousWrap) does not work if there is an
error in empty line like 'W391: blank line at end of file' in python.
2017-08-13 11:56:41 +03:00
w0rp
e6b6146731
#653 - Fix loclist jumping so it works with buffer numbers
2017-08-12 14:49:02 +01:00
w0rp
c14886e479
#653 - Include the buffer number in sorting of items
2017-08-12 14:37:56 +01:00
w0rp
c52a4910bf
#653 - Update the loclist binary search to work with buffer numbers, to filter out items for other buffers
2017-08-12 14:27:47 +01:00
w0rp
7614560a6e
#468 - Do not try to echo things for a while if something goes wrong
2017-08-12 10:47:06 +01:00
w0rp
78b9ae0f1c
Add a fix function for breaking up long Python lines, which is hidden for now
2017-08-11 10:31:25 +01:00
w0rp
d5ae3201a4
Ban !=# and !=? from the codebase
2017-08-11 00:31:42 +01:00
w0rp
b1462ac66c
#653 - Pass on filenames for loclist items
2017-08-10 23:08:40 +01:00
w0rp
dcf7cbe366
Merge pull request #842 from gfontenot/gf-swiftformat
...
Add support for SwiftFormat as a fixer
2017-08-10 21:06:55 +01:00
w0rp
34aa3437e0
Pass extra rubocop options in the middle instead, and fix the Vader test so it can be run multiple times in Vim
2017-08-10 14:57:30 +01:00
Miguel Palhas
0c26e8945c
Rubocop fixer now uses g:ale_ruby_rubocop_options ( #841 )
...
* Rubocop fixer now uses g:ale_ruby_rubocop_options
* Adds spec
2017-08-10 14:52:54 +01:00
Gordon Fontenot
4709e67627
Add support for SwiftFormat as a fixer
...
SwiftFormat is a tool that can be used to format Swift files. This commit adds
support for using SwiftFormat as a fixer from ALE. It looks for executables in
the Pods directory, then the Pods directory for a React Native project, then
finally falls back to the globally installed instance if neither of those were
found.
https://github.com/nicklockwood/SwiftFormat
2017-08-09 12:41:21 -05:00
w0rp
670858f774
Fix #468 - Add a cool down period for when things go wrong
2017-08-09 00:05:55 +01:00
w0rp
16772298ab
Simplify some comparisons
2017-08-08 08:43:51 +01:00
w0rp
a535d07f28
Ban use of ==# or ==? in the codebase, and prefer is# or is? instead
2017-08-08 08:39:13 +01:00
w0rp
5010ddc28f
Fix #833 - Do not open windows on save when the option is off
2017-08-08 07:29:10 +01:00
w0rp
16cfedf04a
Fix #271 - Add the ability to open the quickfix or loclist windows only after saving a file
2017-08-08 00:46:42 +01:00
w0rp
2edea15358
Fix the resetting of selections and annotate it
2017-08-07 22:08:35 +01:00
Adrian Kocis
c18451fba9
added missing visual reselection after quick/location list update ( #788 )
...
Reset visual selection after opening loclist or quickfix windows
2017-08-07 21:57:59 +01:00
w0rp
593cafa18b
Fix #823 - Write Windows files with CRLF
2017-08-05 20:17:25 +01:00
w0rp
747d4fe80b
Stop writing a test file in real world usage in some cases
2017-08-05 19:51:38 +01:00
w0rp
666cfc6ee2
Fix the completion start position regex matching being off by one
2017-08-04 16:15:48 +01:00
w0rp
9ac74c44fe
Tell Vim omnicompletion that tsserver matches are case-insensitive
2017-08-04 13:35:02 +01:00
w0rp
09d50ebe31
Cover the Rust LSP with tests, allow LSP linters to be named anything, and rename the Rust LSP linter to rls
2017-08-02 23:21:30 +01:00
w0rp
a4ffd2f37c
#734 - Use the buffer number from the events for entering buffers and saving buffers for checking buffers
2017-08-01 00:03:24 +01:00
w0rp
ec82530247
#734 - Do not clear file linter results when no buffers are run
2017-07-31 22:36:30 +01:00
Mahmoud Mostafa
eaeb71993f
Add stylelint fixer
2017-07-31 02:54:59 +02:00
w0rp
2c252c0f12
#517 - Get the Rust language server working in a basic way
2017-07-30 23:34:58 +01:00
w0rp
6000d956f0
When servers never send an initialize response, but instead just publish diagnostics straight away, handle that as an initialize response
2017-07-30 22:18:19 +01:00
w0rp
5810d7faa0
Add some error message handling for LSP, for test purposes
2017-07-30 22:17:29 +01:00
w0rp
84af543907
Fix some bugs so the PHP language server will show errors at least once
2017-07-30 14:42:00 +01:00
w0rp
63b9d9e9df
Fix #798 - Handle syntax errors for tsserver
2017-07-27 13:24:32 +01:00
w0rp
db4d68eae7
Add a fuzzy JSON decoding function for ignoring json_decode errors for linters
2017-07-27 00:06:15 +01:00
w0rp
810e884dbe
Remove channel logging
2017-07-26 10:45:21 +01:00
w0rp
fbf59fd4ce
Check the active_linter_list only for running linters
2017-07-26 10:44:27 +01:00
w0rp
cfdb41f4d2
Remove a redundant check for tsserver
2017-07-26 10:44:07 +01:00
w0rp
cd860e3e8d
#517 Add more code LSP support which makes the tssserver linter behave more like the LSP linters
2017-07-26 10:37:37 +01:00
w0rp
e45c16d9bb
Fix #796 - Ignore errors for closing the last window
2017-07-24 09:30:41 +01:00
w0rp
b4d23d700b
Set the g:ale_completion_enabled option when completion is enabled or disabled
2017-07-24 09:22:29 +01:00
w0rp
a0059cfe03
Fix #795 - Handle GCC errors without column numbers
2017-07-23 00:39:59 +01:00
w0rp
12217480f9
Merge pull request #781 from sumnerevans/standard-fixer
...
Added fixer for Standard linter
2017-07-22 19:33:42 +01:00
Sumner Evans
f3fec6685e
added tests for Standard.js
2017-07-21 11:47:41 -06:00
w0rp
ee6dabcc4e
Don't mess with compleopt for each completion, as it doesn't work
2017-07-21 14:55:32 +01:00
w0rp
a5f754a5e0
Fix #786 - Only set --no-local-style for yapf if a configuration file is detected
2017-07-20 11:07:07 +01:00
Sumner Evans
ca83f11bee
added fixer for Standard
2017-07-19 14:50:33 -06:00
w0rp
0931e99ea4
Fix #775 - Run eslint.js via node on Windows for eslint --fix
2017-07-18 12:28:20 +01:00
w0rp
a6cc492a99
Limit the suggestions only after filtering them
2017-07-17 17:39:11 +01:00
w0rp
27feab7e3a
Filter the completion results by the prefix we used
2017-07-17 15:31:32 +01:00
w0rp
4fa66ab627
Fix #560 #763 - Silence errors for setting signs, and do nothing for dirvish
2017-07-16 01:15:07 +01:00
w0rp
cad9fc19c6
Fix #773 - Do not clear the loclist when closing the loclist window
2017-07-15 18:44:45 +01:00
w0rp
4c6c5bf84f
#697 - Remove highlights more thoroughly
2017-07-13 23:27:02 +01:00
w0rp
f7f6f6541d
Make tsserver completion more reliable, but not quite ready for documentation yet
2017-07-13 11:59:33 +01:00
Eddie Lebow
bc32e24203
Add rails_best_practices handler ( resolves #655 ) ( #751 )
...
* Move FindRailsRoot() to more general location
* Add rails_best_practices handler (resolves #655 )
* Update documentation for rails_best_practices
Also add brakeman to *ale* documentation.
* rails_best_practices: allow overriding the executable
* rails_best_practices: format help correctly
* rails_best_practices: capture tool output on Windows
2017-07-12 10:43:47 +01:00
Matteo Centenaro
ff80b23ee1
Fix docs for FindProjectRoot function
2017-07-12 10:00:42 +02:00
w0rp
340c0bbac5
#756 Escape the paths used for the --include parameter for gometalinter, which uses RE2
2017-07-11 23:47:21 +01:00
Matteo Centenaro
505d114a68
Look for ini file to spot python project root ( #755 )
...
* Look for ini file to spot project root
When looking for the project root folder it would be better
to check for some well-known init file instead of __init__.py.
Indeed, with python3 it is now possible to have namespace modules
where intermediate dirs are not required to include the __init__.py file.
* Break if statement conditions over several lines
* Add blank lines for the if block
* Add test for FindProjectRoot
* Typo: missing / for MANIFEST.in
* Fix test for non-namespace package
* Add more test cases
2017-07-11 21:57:37 +01:00
Eddie Lebow
78e0029488
Fix comment typo
2017-07-11 01:30:28 -04:00
Michael Pardo
d787050fa8
Kotlin and general Gradle support. ( #745 )
2017-07-10 23:03:36 +01:00
w0rp
751d965265
Fix #749 - Use /bin/sh when the shell is fish
2017-07-10 21:35:35 +01:00
w0rp
b44f6053d1
Fix #730 - Lint files on save even when nothing was fixed
2017-07-10 13:40:22 +01:00
w0rp
82dd80c692
Fix #746 - Keep highlights from other plugins when buffers are hidden
2017-07-10 00:02:49 +01:00
w0rp
6a84605c57
Make every test set filenames and switch directories in the same way, and fix some missing escaping for the rubocop linter
2017-07-09 22:43:31 +01:00
w0rp
836a2cfe3b
Fix issues with running individual tests, and get the Vim tests to run on certain machines again
2017-07-09 14:58:21 +01:00
Jacob Zimmerman
a70591fa76
Correctly resolve temp files on macOS
...
On macOS, the `$TMPDIR` is in `/var`. However, `/var -> /private/var`.
This means that fully resolved temp filenames weren't always getting
checked against the proper prefix.
This was affecting some of the Haskell plugins, though I'm sure it could
have affected any program that resolved past the generated `$TMPDIR/foo`
and wound up at a different filename.
2017-07-09 02:16:46 -05:00
w0rp
ab47011ef2
Support setting settings with g:ale_pattern_options
2017-07-09 00:10:28 +01:00
w0rp
8eb4f95766
#697 - Clear all highlights every time items are set again, and refactor most things. Clear errors when linters are removed
2017-07-07 23:47:41 +01:00
daa84
46225f3bb1
Fix windows path check on rust linter ( #736 )
...
* Fix rust linter on windows
* Add windows path test
* Use ale#path#IsBufferPath to compare paths
* Fix errors
2017-07-07 17:03:17 +01:00
w0rp
d9a7364dae
#710 - Fix a parsing bug caused by the last fix
2017-07-07 10:59:00 +01:00
w0rp
7ce960ae51
Fix #735 - Support old versions of Flow by only adding --respect-pragma for supported versions
2017-07-07 10:47:09 +01:00
w0rp
130928590b
#710 - Show warnings as warnings for ghc
2017-07-07 00:28:22 +01:00
w0rp
854066e849
#732 - Use the configuration files when fixing files with rubocop
2017-07-06 22:58:14 +01:00
w0rp
b43413916d
Initialize rubocop variables in one place
2017-07-06 22:47:07 +01:00
w0rp
5859050d29
Fix some bad indentation
2017-07-06 10:51:05 +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
871ce1c8f5
Correct a comment
2017-07-05 15:52:39 +01:00
w0rp
1bd9b0fbe2
#729 - Use a wrapper for simplify to fix // problems on Windows
2017-07-05 15:51:31 +01:00