tests/testthat/dummy_packages/RConfig/lintr_test_config_extraneous.R

# 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)

Try the lintr package in your browser

Any scripts or data that you put into this service are public.

lintr documentation built on May 29, 2024, 11:31 a.m.