-
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
Make cyclocomp_linter()
optional
#2554
Comments
Thoughts I jotted down after having worked on #2555: Carving out all exceptions in unit tests is really making me iffy about whether this change is desirable. It breaks the beautiful isotropy (read uniformity) we have across linters where we don't need to treat any linter in a special manner. Additionally, this is a breaking change, especially in the context of CI: everyone who has been using this linter is going to be forced to update the CI configs to additionally download Wouldn't porting over the WDYT, @MichaelChirico, @AshesITR? Of course, the other easy solution is to maintain the status quo. |
I don't follow this. AIUI, the test carve-outs are mainly because we wrote tests needing a default linter, and happened to pick cyclocomp. We could as well re-write the tests using a different default linter, right (no need to do that for #2555)? If the idea is no linter should require add-on packages, I don't agree with that. #2149 is a great example -- we can offer a big enhancement within I worry there's too much status quo bias here. If we do make
Looking around, I see two types of reference to https://github.com/search?q=path%3A.lintr%20%2Fcyclocomp_linter%2F&type=code
I think those 150 usages could be affected, I guess it will be a CI error (assuming they have a lint CI -- any such downstream where {lintr} is run locally will not be affected, as {cyclocomp} will remain installed for a long time). Looking at the first 10 hits for In the longer term, we get that users really wanting
Not a fan of this approach where I've seen it -- worse than status quo of just depending on {cyclocomp} IMO. NB: the above is just for discussion. Not dead-set on removing |
Okay, thanks for providing some quantitative context to my misgivings!
I think this was the crux of my worry, and I concur that, in the long run, maybe this is something that we wish to do to gain some valuable functionality. As for the CI issue, looking at those numbers, I don't think we need to worry too much about breaking CI for many packages. The CI failures will prompt an immediate action, and so it's not a change that will pass below the radar, which would have been more problematic. |
* Make `cyclocomp_linter()` optional closes #2554 * update NAMESPACE * error if cyclocomp is not installed * Update cyclocomp_linter.R * more conditional skips * Update error message * Update NEWS.md * Update NEWS.md Co-authored-by: Michael Chirico <[email protected]> * remove unnecessary skip * ignore rd xref note * fix file ext * Revert "fix file ext" This reverts commit c625249. * Revert "ignore rd xref note" This reverts commit baf9512. * fix Rd issue * fix rd issue again * Update lint.yaml * does clearing cache first help? * Revert "does clearing cache first help?" This reverts commit 1a07a08. * fix broken test * remove cyclocomp from default linter tests --------- Co-authored-by: Michael Chirico <[email protected]>
As Michael mentioned in #2539:
The text was updated successfully, but these errors were encountered: