diff options
author | Horacio Sanson <horacio@allm.net> | 2019-11-27 23:19:44 +0900 |
---|---|---|
committer | Horacio Sanson <horacio@allm.net> | 2019-11-27 23:19:44 +0900 |
commit | 8fbcba0091161fb537adf1dfc87555fd79e52eaf (patch) | |
tree | afa12f72ed55d908c46ab3f2dc9ab2a71ae61e9a /ale_linters/java | |
parent | d8195e9276c27caabf173a268450a3420b53181a (diff) | |
download | ale-8fbcba0091161fb537adf1dfc87555fd79e52eaf.zip |
Fix 2913 - checkstyle config file ignored.
If checkstyle is configured with custom options that contain "-c" then
the checkstyle config file option is ignored. This PR modifies the
regular expression when creating the checkstyle command to avoid this.
Diffstat (limited to 'ale_linters/java')
-rw-r--r-- | ale_linters/java/checkstyle.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ale_linters/java/checkstyle.vim b/ale_linters/java/checkstyle.vim index 7901ff7e..ec7339d1 100644 --- a/ale_linters/java/checkstyle.vim +++ b/ale_linters/java/checkstyle.vim @@ -52,7 +52,7 @@ endfunction function! ale_linters#java#checkstyle#GetCommand(buffer) abort let l:options = ale#Var(a:buffer, 'java_checkstyle_options') let l:config_option = ale#Var(a:buffer, 'java_checkstyle_config') - let l:config = l:options !~# '\v(^| )-c' && !empty(l:config_option) + let l:config = l:options !~# '\v(^| )-c ' && !empty(l:config_option) \ ? s:GetConfig(a:buffer, l:config_option) \ : '' |