summaryrefslogtreecommitdiff
path: root/ale_linters
diff options
context:
space:
mode:
authorw0rp <w0rp@users.noreply.github.com>2018-02-06 09:46:22 +0000
committerGitHub <noreply@github.com>2018-02-06 09:46:22 +0000
commita3329ef3fc44a04a2617941eb46deef6c184f4af (patch)
treea3f8b5e53f5405002ae53e3fe8477e8631cca136 /ale_linters
parent91b7a75afb250eedbdaf88411fad084ce85bd13b (diff)
parentc2ab8853849d1fc64d448d6e65920c988ca9c0fa (diff)
downloadale-a3329ef3fc44a04a2617941eb46deef6c184f4af.zip
Merge pull request #1333 from fennerm/master
Fix the lintr::lint_package command
Diffstat (limited to 'ale_linters')
-rw-r--r--ale_linters/r/lintr.vim9
1 files changed, 5 insertions, 4 deletions
diff --git a/ale_linters/r/lintr.vim b/ale_linters/r/lintr.vim
index 006bf47c..51e5c562 100644
--- a/ale_linters/r/lintr.vim
+++ b/ale_linters/r/lintr.vim
@@ -11,14 +11,15 @@ let g:ale_r_lintr_lint_package = get(g:, 'ale_r_lintr_lint_package', 0)
function! ale_linters#r#lintr#GetCommand(buffer) abort
if ale#Var(a:buffer, 'r_lintr_lint_package')
- let l:lint_cmd = 'lint_package'
+ let l:lint_cmd = 'lint_package(cache = FALSE, linters = '
+ \ . ale#Var(a:buffer, 'r_lintr_options') . ')'
else
- let l:lint_cmd = 'lint'
+ let l:lint_cmd = 'lint(cache = FALSE, commandArgs(TRUE), '
+ \ . ale#Var(a:buffer, 'r_lintr_options') . ')'
endif
let l:cmd_string = 'suppressPackageStartupMessages(library(lintr));'
- \ . l:lint_cmd . '(cache = FALSE, commandArgs(TRUE),'
- \ . ale#Var(a:buffer, 'r_lintr_options') . ')'
+ \ . l:lint_cmd
return ale#path#BufferCdString(a:buffer)
\ . 'Rscript -e '