summaryrefslogtreecommitdiff
path: root/ale_linters
diff options
context:
space:
mode:
authorFenner Macrae <13209544+fennerm@users.noreply.github.com>2018-02-05 09:54:15 -0800
committerFenner Macrae <13209544+fennerm@users.noreply.github.com>2018-02-05 09:54:15 -0800
commit5dc884b24dff08e48287134f903b8ff5e93b33cb (patch)
tree8e1888a89f85c6bb579011453130ea921be8ff4f /ale_linters
parentdda132c1a2818390cafd674e5db0e3b6ce802965 (diff)
downloadale-5dc884b24dff08e48287134f903b8ff5e93b33cb.zip
Fixed 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..ac1d8569 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 '