diff --git a/.github/workflows/r-tests.yml b/.github/workflows/r-tests.yml index 946446ca..43beb470 100644 --- a/.github/workflows/r-tests.yml +++ b/.github/workflows/r-tests.yml @@ -21,5 +21,7 @@ jobs: - name: Lint R scripts and notebooks in ${{ matrix.folder }} run: | - R -e 'lintr::lint_dir("${{ matrix.folder }}", linters = lintr::with_defaults())' + R -e 'files <- list.files("${{ matrix.folder }}", pattern = "\\.(R|r|Rmd|rmd|irnb)$", full.names = TRUE); + linters <- lintr::with_defaults(line_length_linter = lintr::line_length_linter(119)); + lapply(files, lintr::lint, linters = linters);' continue-on-error: true