| normalize_exclusions {lintr} | R Documentation |
Normalize lint exclusions
Description
Normalize lint exclusions
Usage
normalize_exclusions(x, normalize_path = TRUE, root = getwd(), pattern = NULL)
Arguments
x |
Exclusion specification
|
normalize_path |
Should the names of the returned exclusion list be normalized paths?
If |
root |
Base directory for relative filename resolution. |
pattern |
If non-NULL, only exclude files in excluded directories if they match
|
Value
A named list of file exclusions. The names of the list specify the filenames to be excluded.
Each file exclusion is a possibly named list containing line numbers to exclude, or the sentinel Inf for
completely excluded files. If the an entry is named, the exclusions only take effect for the linter with
the same name.
If normalize_path is TRUE, file names will be normalized relative to root.
Otherwise the paths are left as provided (relative to root or absolute). That also means
existence is not checked.