Skip to content

Commit

Permalink
ignore object error
Browse files Browse the repository at this point in the history
  • Loading branch information
esiegel committed Jan 8, 2025
1 parent 8a72a0c commit 1500f9b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/lint-project.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,11 @@ jobs:
use-public-rspm: true

- name: Install lintr
run: |
install.packages("lintr")
install.packages("devtools")
run: install.packages("lintr")
shell: Rscript {0}

# we must use devtools::load_all to all lintr to not consider
# all of the internal non exported functions as non declared globals
# https://github.com/r-lib/lintr/issues/1137#issuecomment-1127828843
- name: Lint root directory
run: |
devtools::load_all()
lintr::lint_dir()
run: lintr::lint_dir()
shell: Rscript {0}
env:
LINTR_ERROR_ON_LINT: true
3 changes: 2 additions & 1 deletion .lintr
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
linters: linters_with_defaults(
line_length_linter(120),
commented_code_linter = NULL
commented_code_linter = NULL,
object_usage_linter = NULL
)

0 comments on commit 1500f9b

Please sign in to comment.