-
Notifications
You must be signed in to change notification settings - Fork 187
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
Extend scalar_in_linter() for other clear scalar RHS #2085
Comments
The |
Yes, but if easy to do we should try and decouple the linters where possible. Not the highest priority of course. We don't necessarily have to replicate the fully unnecessary_concatenation_linter() logic, just a quick check for c() with one *CONST |
I would argue in favor of generating less lints on the same code, especially with default linters involved. |
The flip side of it is chained lints, where you fix a lint ( We definitely have other examples of linters that throw in the presence of would-be lints... the first thing that comes to mind is handling of grep -Er "^[^#]*RIGHT_ASSIGN" R --exclude=assignment_linter.R --exclude=shared_constants.R
So linting here would be consistent with that. |
All right. |
Copying over from the PR:
|
API suggestion
Where I have no strong preference on the default value of |
Follow-up to #2084
Some cases to consider as lints:
The text was updated successfully, but these errors were encountered: