summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChayoung You <yousbe@gmail.com>2024-04-07 10:32:19 +0900
committerGitHub <noreply@github.com>2024-04-07 10:32:19 +0900
commitb6b9612691ec22f286eff72755aac492ef8c384b (patch)
tree30ffc5d9fa78c4e55b474db9ae9e8fa2cbb4e1ce
parent6c10a519f1460179cf8f8e329d8eb3186247be2b (diff)
downloadale-b6b9612691ec22f286eff72755aac492ef8c384b.zip
Make cmake-lint read .cmake-format config file (#4747)
-rw-r--r--ale_linters/cmake/cmake_lint.vim2
-rw-r--r--test/linter/test_cmake_cmake_lint.vader4
2 files changed, 3 insertions, 3 deletions
diff --git a/ale_linters/cmake/cmake_lint.vim b/ale_linters/cmake/cmake_lint.vim
index 3c44c92f..5942e08d 100644
--- a/ale_linters/cmake/cmake_lint.vim
+++ b/ale_linters/cmake/cmake_lint.vim
@@ -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
diff --git a/test/linter/test_cmake_cmake_lint.vader b/test/linter/test_cmake_cmake_lint.vader
index 6cf09149..9238f91a 100644
--- a/test/linter/test_cmake_cmake_lint.vader
+++ b/test/linter/test_cmake_cmake_lint.vader
@@ -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'