diff options
Diffstat (limited to 'ale_linters')
-rw-r--r-- | ale_linters/dart/language_server.vim | 2 | ||||
-rw-r--r-- | ale_linters/gitcommit/gitlint.vim | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/ale_linters/dart/language_server.vim b/ale_linters/dart/language_server.vim index 14b6ab93..8e0c139b 100644 --- a/ale_linters/dart/language_server.vim +++ b/ale_linters/dart/language_server.vim @@ -15,6 +15,6 @@ call ale#linter#Define('dart', { \ 'name': 'language_server', \ 'lsp': 'stdio', \ 'executable_callback': ale#VarFunc('dart_language_server_executable'), -\ 'command_callback': 'ale_linters#dart#language_server#GetExecutable', +\ 'command': '%e', \ 'project_root_callback': 'ale_linters#dart#language_server#GetProjectRoot', \}) diff --git a/ale_linters/gitcommit/gitlint.vim b/ale_linters/gitcommit/gitlint.vim index ec3bfb0b..a9c4822d 100644 --- a/ale_linters/gitcommit/gitlint.vim +++ b/ale_linters/gitcommit/gitlint.vim @@ -23,8 +23,10 @@ function! ale_linters#gitcommit#gitlint#Handle(buffer, lines) abort for l:match in ale#util#GetMatches(a:lines, l:pattern) let l:code = l:match[2] - if l:code is# 'T2' && !ale#Var(a:buffer, 'warn_about_trailing_whitespace') - continue + if !ale#Var(a:buffer, 'warn_about_trailing_whitespace') + if l:code is# 'T2' || l:code is# 'B2' + continue + endif endif let l:item = { |