-
Notifications
You must be signed in to change notification settings - Fork 195
Validate config files #2225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Validate config files #2225
Changes from 21 commits
f5b0fe7
e96ac22
e943fd1
3986c31
4a8ab36
71d8bd0
b6ed2f3
8427a65
898fecf
7360ae9
8bdfbe0
67b0c76
e6ab0f9
4a9a762
6cf4385
bbcdb4c
602b720
ac7f67e
b96e738
10fbb39
ede3f3d
455228e
6a5c955
e92af56
0190baa
1b3fed2
a49ada5
36ce8c7
da9278c
04ecf8f
4a13f52
81515c7
c045a9d
58e4afc
75b8af7
7757e5a
7a5aa4d
4b2fb93
74328be
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,18 +10,24 @@ | |
| #' "@details", | ||
| #' "Exclusions can be specified in three different ways.", | ||
| #' "", | ||
| #' "1. single line in the source file. default: `# nolint`, possibly followed by a listing of linters to exclude.", | ||
| #' "1. Single line in the source file. default: `# nolint`, possibly followed by a listing of linters to exclude.", | ||
| #' " If the listing is missing, all linters are excluded on that line. The default listing format is", | ||
| #' paste( | ||
| #' " `#", | ||
| #' "nolint: linter_name, linter2_name.`. There may not be anything between the colon and the line exclusion tag" | ||
| #' ), | ||
| #' " and the listing must be terminated with a full stop (`.`) for the linter list to be respected.", | ||
| #' "2. line range in the source file. default: `# nolint start`, `# nolint end`. `# nolint start` accepts linter", | ||
| #' "2. Line range in the source file. default: `# nolint start`, `# nolint end`. `# nolint start` accepts linter", | ||
| #' " lists in the same form as `# nolint`.", | ||
| #' "3. exclusions parameter, a named list of files with named lists of linters and lines to exclude them on, a named", | ||
| #' " list of the files and lines to exclude, or just the filenames if you want to exclude the entire file, or the", | ||
| #' " directory names if you want to exclude all files in a directory." | ||
| #' "3. Exclusions parameter, a list with named and/or unnamed entries. If present, the name is a path relative to", | ||
| #' " the config. Moreover, elements have the following characteristics:", | ||
| #' " 1. Unnamed elements specify filenames or directories.", | ||
| #' " 2. Named elements are numeric or a list. If present, the name is a linter.", | ||
|
||
| #' " 1. Numeric or unnamed list elements are line numbers to be excluded.", | ||
MichaelChirico marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| #' " 2. Named list elements are line numbers to be excluded for specific linters.", | ||
| #' " For convenience, a vector can be used in place of a list whenever it would not introduce ambiguity, e.g.", | ||
| #' " a character vector of files to exclude or a vector of lines to exclude.", | ||
| #' NULL | ||
| #' ) | ||
| exclude <- function(lints, exclusions = settings$exclusions, linter_names = NULL, ...) { | ||
| if (length(lints) <= 0L) { | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.