summaryrefslogtreecommitdiff
path: root/test/linter
diff options
context:
space:
mode:
authorourigen <79729735+ourigen@users.noreply.github.com>2021-05-25 00:30:42 +0000
committerGitHub <noreply@github.com>2021-05-25 09:30:42 +0900
commit6ef5bf308c91e5960ae84460329bf39287b17e23 (patch)
treec834894900639b32d2bdfe4279e0eac19287e1fa /test/linter
parent93f80ea7677df8584246262c67dd8575bd98dbeb (diff)
downloadale-6ef5bf308c91e5960ae84460329bf39287b17e23.zip
Allow lintr to consider .Renviron settings. Fix #3391 (#3727)
* 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>
Diffstat (limited to 'test/linter')
-rw-r--r--test/linter/test_lintr.vader6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/linter/test_lintr.vader b/test/linter/test_lintr.vader
index a2791c4d..8f6fb88f 100644
--- a/test/linter/test_lintr.vader
+++ b/test/linter/test_lintr.vader
@@ -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())')