Allow for lintr options

This commit is contained in:
Alex Axthelm 2017-08-15 13:59:25 -04:00 committed by w0rp
parent 6833e01f23
commit 29ffd5134f

View File

@ -3,7 +3,7 @@
function! ale_linters#r#lintr#GetCommand(buffer) abort
return ale#path#BufferCdString(a:buffer)
\ . 'Rscript -e ' . ale#Escape('lintr::lint(commandArgs(TRUE))') . ' %t'
\ . 'Rscript -e ' . ale#Escape('lintr::lint(commandArgs(TRUE), linters = lintr::with_defaults(object_usage_linter = NULL))') . ' %t'
endfunction
call ale#linter#Define('r', {