Make cmake-lint read .cmake-format config file (#4747)

This commit is contained in:
Chayoung You 2024-04-07 10:32:19 +09:00 committed by GitHub
parent 6c10a519f1
commit b6b9612691
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -15,7 +15,7 @@ function! ale_linters#cmake#cmake_lint#Command(buffer) abort
let l:executable = ale_linters#cmake#cmake_lint#Executable(a:buffer)
let l:options = ale#Var(a:buffer, 'cmake_cmake_lint_options')
return ale#Escape(l:executable) . ' ' . l:options . ' %t'
return ale#Escape(l:executable) . ' ' . l:options . ' %s'
endfunction
function! ale_linters#cmake#cmake_lint#Handle(buffer, lines) abort

View File

@ -5,9 +5,9 @@ After:
call ale#assert#TearDownLinterTest()
Execute(The default command should be correct):
AssertLinter 'cmake-lint', ale#Escape('cmake-lint') . ' %t'
AssertLinter 'cmake-lint', ale#Escape('cmake-lint') . ' %s'
Execute(The executable should be configurable):
let g:ale_cmake_cmake_lint_executable = 'foobar'
AssertLinter 'foobar', ale#Escape('foobar') . ' %t'
AssertLinter 'foobar', ale#Escape('foobar') . ' %s'