summaryrefslogtreecommitdiff
path: root/ale_linters/r/lintr.vim
diff options
context:
space:
mode:
authorMichael Quinn <msquinn@google.com>2018-01-31 18:06:35 -0800
committerMichael Quinn <msquinn@google.com>2018-01-31 18:06:35 -0800
commitb13f290390ba62180f731fef6cea58d6fef8bc3e (patch)
tree65db4b84bf2a78a361a95abc5067e1c34f0040bb /ale_linters/r/lintr.vim
parentbb095df25e7fb6e3090061572bf9b1c472ac550f (diff)
downloadale-b13f290390ba62180f731fef6cea58d6fef8bc3e.zip
Update formatting and tests.
Diffstat (limited to 'ale_linters/r/lintr.vim')
-rw-r--r--ale_linters/r/lintr.vim6
1 files changed, 3 insertions, 3 deletions
diff --git a/ale_linters/r/lintr.vim b/ale_linters/r/lintr.vim
index 9db63c7c..e1639051 100644
--- a/ale_linters/r/lintr.vim
+++ b/ale_linters/r/lintr.vim
@@ -7,8 +7,9 @@ let g:ale_r_lintr_options = get(g:, 'ale_r_lintr_options', 'with_defaults()')
function! ale_linters#r#lintr#GetCommand(buffer) abort
let l:cmd_string = 'suppressPackageStartupMessages(library(lintr));'
- \ . 'lint(cache = FALSE, commandArgs(TRUE),'
- \ . ale#Var(a:buffer, 'r_lintr_options') . ')'
+ \ . 'lint(cache = FALSE, commandArgs(TRUE),'
+ \ . ale#Var(a:buffer, 'r_lintr_options') . ')'
+
return ale#path#BufferCdString(a:buffer)
\ . 'Rscript -e '
\ . ale#Escape(l:cmd_string) . ' %t'
@@ -21,4 +22,3 @@ call ale#linter#Define('r', {
\ 'callback': 'ale#handlers#gcc#HandleGCCFormat',
\ 'output_stream': 'both',
\})
-