Skip to content

Instantly share code, notes, and snippets.

@olivroy
Last active May 16, 2024 01:35
Show Gist options
  • Save olivroy/ea1ae9ad00b54eb78e2cfd1910097d0c to your computer and use it in GitHub Desktop.
Save olivroy/ea1ae9ad00b54eb78e2cfd1910097d0c to your computer and use it in GitHub Desktop.
My linter file
linters: all_linters(
# packages = "lintr",
line_length_linter = NULL,
namespace_linter = NULL,
todo_comment_linter = NULL,
cyclocomp_linter = NULL,
duplicate_argument_linter = NULL, # cli_abort...
object_usage_linter = NULL, # problem
implicit_integer_linter = NULL,
object_length_linter = NULL, # will not rename objects
object_name_linter = NULL, # sometimes, there are good reasons behind naming conventions.
nonportable_path_linter = NULL,
expect_identical_linter = NULL, # doesn't seem widely usedm nor worth the effort.
absolute_path_linter = NULL,
indentation_linter = NULL, # When working on a PR, it's better, not to touch that. Either styler::style_pkg() or live with it :)
keyword_quote_linter = NULL,
undesirable_function_linter = NULL, # when I understand lintr a bit more, I would just exclude library in packages
commented_code_linter = NULL,
unreachable_code_linter = NULL, # would be useful in packages
extraction_operator_linter = NULL # would be useful in packages
) # see vignette("lintr")
encoding: "UTF-8"
exclusions: list("renv", "packrat", "data-raw") # see ?lintr::exclude
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment