mirror of
https://github.com/msberends/AMR.git
synced 2025-04-20 20:33:54 +02:00
lintr fix
This commit is contained in:
parent
07efc292bc
commit
fa519105eb
7
.github/workflows/lintr.yaml
vendored
7
.github/workflows/lintr.yaml
vendored
@ -60,11 +60,14 @@ jobs:
|
|||||||
any::devtools
|
any::devtools
|
||||||
any::usethis
|
any::usethis
|
||||||
|
|
||||||
- name: Lint
|
- name: Remove unneeded folders
|
||||||
run: |
|
run: |
|
||||||
# no not check these folders
|
# do not check these folders
|
||||||
rm -rf data-raw
|
rm -rf data-raw
|
||||||
rm -rf tests
|
rm -rf tests
|
||||||
|
|
||||||
|
- name: Lint
|
||||||
|
run: |
|
||||||
# old: lintr::lint_package(linters = lintr::with_defaults(line_length_linter = NULL, trailing_whitespace_linter = NULL, object_name_linter = NULL, cyclocomp_linter = NULL, object_length_linter = lintr::object_length_linter(length = 50L)), exclusions = list("R/aa_helper_pm_functions.R"))
|
# old: lintr::lint_package(linters = lintr::with_defaults(line_length_linter = NULL, trailing_whitespace_linter = NULL, object_name_linter = NULL, cyclocomp_linter = NULL, object_length_linter = lintr::object_length_linter(length = 50L)), exclusions = list("R/aa_helper_pm_functions.R"))
|
||||||
# now get ALL linters, not just default ones
|
# now get ALL linters, not just default ones
|
||||||
linters <- getNamespaceExports(asNamespace("lintr"))
|
linters <- getNamespaceExports(asNamespace("lintr"))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user