-
Notifications
You must be signed in to change notification settings - Fork 186
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
Validate config files #2225
Conversation
@AshesITR PTAL at the updated description of valid lintr/tests/testthat/test-exclusions.R Line 88 in 9c49c6e
|
This is another undocumented usage of
Should we break that, or extend the description of a valid |
That form's used here too: lintr/tests/testthat/test-lint_dir.R Line 88 in 9c49c6e
|
I wouldn't want to break character vectors of file names to exclude. |
Codecov Report
@@ Coverage Diff @@
## main #2225 +/- ##
=======================================
Coverage 99.65% 99.65%
=======================================
Files 114 114
Lines 5198 5247 +49
=======================================
+ Hits 5180 5229 +49
Misses 18 18
|
R/exclude.R
Outdated
#' "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.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't the name a filename or a directory?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree it's confusing. But "the name is a path relative to the config" above refers to those names, this one refers to the more nested names. Taking another pass.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PTAL
Actually, let's just update that one CI suite for now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good for now. ?exclude still needs some work (examples, maybe?), but I think that can be a follow-up.
Thanks for all the work and patience!
I'm really happy w the progress! thanks for the thorough review & insistence! |
Closes #2195.