exclude {lintr} | R Documentation |
Exclude lines or files from linting
exclude(lints, exclusions = settings$exclusions, ...)
lints |
that need to be filtered. |
exclusions |
manually specified exclusions |
... |
additional arguments passed to |
Exclusions can be specified in three different ways.
single line in the source file. default: # nolint
line range in the source file. default: # nolint start
, # nolint end
exclusions parameter, a named list of the files and lines to exclude, or just the filenames if you want to exclude the entire file.