mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-06 12:44:23 +08:00
* Fix lintr.vim to consider Renviron * Update test_lintr.vader to match lintr.vim fix * Update credits Co-authored-by: ourigen <ourigen [at] pm.me>
This commit is contained in:
@@ -7,7 +7,7 @@ After:
|
||||
Execute(The default lintr command should be correct):
|
||||
AssertLinterCwd '%s:h'
|
||||
AssertLinter 'Rscript',
|
||||
\ 'Rscript --vanilla -e '
|
||||
\ 'Rscript --no-save --no-restore --no-site-file --no-init-file -e '
|
||||
\ . ale#Escape('suppressPackageStartupMessages(library(lintr));'
|
||||
\ . 'lint(cache = FALSE, commandArgs(TRUE), '
|
||||
\ . 'with_defaults())')
|
||||
@@ -17,7 +17,7 @@ Execute(The lintr options should be configurable):
|
||||
let b:ale_r_lintr_options = 'with_defaults(object_usage_linter = NULL)'
|
||||
|
||||
AssertLinter 'Rscript',
|
||||
\ 'Rscript --vanilla -e '
|
||||
\ 'Rscript --no-save --no-restore --no-site-file --no-init-file -e '
|
||||
\ . ale#Escape('suppressPackageStartupMessages(library(lintr));'
|
||||
\ . 'lint(cache = FALSE, commandArgs(TRUE), '
|
||||
\ . 'with_defaults(object_usage_linter = NULL))')
|
||||
@@ -27,7 +27,7 @@ Execute(If the lint_package flag is set, lintr::lint_package should be called):
|
||||
let b:ale_r_lintr_lint_package = 1
|
||||
|
||||
AssertLinter 'Rscript',
|
||||
\ 'Rscript --vanilla -e '
|
||||
\ 'Rscript --no-save --no-restore --no-site-file --no-init-file -e '
|
||||
\ . ale#Escape('suppressPackageStartupMessages(library(lintr));'
|
||||
\ . 'lint_package(cache = FALSE, '
|
||||
\ . 'linters = with_defaults())')
|
||||
|
||||
Reference in New Issue
Block a user