Merge pull request #2914 from hsanson/2913-fix-checkstyle-config-with-options

Fix 2913 - checkstyle config file ignored.
This commit is contained in:
w0rp
2020-07-21 12:49:55 +01:00
committed by GitHub
2 changed files with 3 additions and 3 deletions

View File

@@ -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)
\ : ''