From fa519105eb120652d138288a612521a9b22dd1d0 Mon Sep 17 00:00:00 2001 From: Matthijs Berends Date: Thu, 27 Feb 2025 16:44:56 +0100 Subject: [PATCH] lintr fix --- .github/workflows/lintr.yaml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/lintr.yaml b/.github/workflows/lintr.yaml index 11070b889..776d8e991 100644 --- a/.github/workflows/lintr.yaml +++ b/.github/workflows/lintr.yaml @@ -59,12 +59,15 @@ jobs: any::roxygen2 any::devtools any::usethis - - - name: Lint + + - name: Remove unneeded folders run: | - # no not check these folders + # do not check these folders rm -rf data-raw 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")) # now get ALL linters, not just default ones linters <- getNamespaceExports(asNamespace("lintr"))