File: lintr_test_config_extraneous.R

package info (click to toggle)
r-cran-lintr 3.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,396 kB
  • sloc: sh: 13; xml: 10; makefile: 2
file content (12 lines) | stat: -rw-r--r-- 365 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
# here are some extraneous variables that are not part of the config directly

non_default_linter <- any_duplicated_linter()
attr(non_default_linter, "name") <- "any_duplicated_linter"
excluded_files <- "tests/testthat.R"

linters <- linters_with_defaults(
  non_default_linter,
  assignment_linter = NULL
)
exclude <- "# NOLINT"
exclusions <- list(excluded_files)