-
Notifications
You must be signed in to change notification settings - Fork 186
Details for improving multiple_dots_linter() #182
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
Comments
|
Great, thanks Jim!
Is that not an option? |
The problem is not figuring out if a function is a S3 generic, you just search for a It is certainly possible to do if you require running all the prior code in a file or package before linting, but that is not a road I want to go down. |
Hi,
I would like to use some sort of linter against object names that contain a dot, but a few things about the multiple_dots_linter make me raise an eyebrow...
1/ Why multiple dots? I would also like to flag objects that contain a single dot.
2/ I would like to make an exception for S3 generics, so perhaps have an "allow_S3" flag?
3/ How to handle "private" functions, i.e. functions that are prefixed with a "." in some coding conventions (e.g. https://www.bioconductor.org/developers/how-to/coding-style/)? This point may be related to #136. Does ".private.fun" count as a 2-dot name? In my case, I would like to allow such private names. Perhaps it would be good to have an option "allow_prefix".
Let me know what you think of this and I may have the opportunity to work on implementing the changes needed. Cheers,
Florent
The text was updated successfully, but these errors were encountered: