mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-06 12:44:23 +08:00
Update formatting and tests.
This commit is contained in:
@@ -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',
|
||||
\})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user