Skip to content

Commit 1500f9b

Browse files
committed
ignore object error
1 parent 8a72a0c commit 1500f9b

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

.github/workflows/lint-project.yaml

+2-9
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,11 @@ jobs:
2222
use-public-rspm: true
2323

2424
- name: Install lintr
25-
run: |
26-
install.packages("lintr")
27-
install.packages("devtools")
25+
run: install.packages("lintr")
2826
shell: Rscript {0}
2927

30-
# we must use devtools::load_all to all lintr to not consider
31-
# all of the internal non exported functions as non declared globals
32-
# https://github.com/r-lib/lintr/issues/1137#issuecomment-1127828843
3328
- name: Lint root directory
34-
run: |
35-
devtools::load_all()
36-
lintr::lint_dir()
29+
run: lintr::lint_dir()
3730
shell: Rscript {0}
3831
env:
3932
LINTR_ERROR_ON_LINT: true

.lintr

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
linters: linters_with_defaults(
22
line_length_linter(120),
3-
commented_code_linter = NULL
3+
commented_code_linter = NULL,
4+
object_usage_linter = NULL
45
)
56

0 commit comments

Comments
 (0)