Repository navigation
Allow assignment generics on custom classes object name lintr - #843
Conversation
|
Thanks for reporting this bug. is in cc @MichaelChirico: |
|
I'm happy to try removing |
|
Hi @jonkeane, sorry for the late reply. |
|
Is there anything you need from me to get this finished? |
|
Just a few tiny things still need to be done:
|
|
Thanks for the follow up — I've done all three of those. I put the news at the end of the current list, but happy to move it elsewhere if that's perferable. |
AshesITR
left a comment
There was a problem hiding this comment.
Thank you very much, almost ready to merge.
| * * `object_length_linter()` correctly detects generics and only counts the implementation class towards the length. | ||
| This prevents false positive lints in the case of long generic names, e.g. | ||
| `very_very_very_long_generic_name.short_class` no longer produces a lint (#871, @AshesITR) | ||
| * Assignment generics on custom classes (#843, @jonkeane) |
There was a problem hiding this comment.
Maybe *object_name_linter() now correctly detects assignment generics (#843, @jonkeane)?
|
Done, and thank you, again! |
For assignment methods like
names<-.class_nameI'm seeing linting errors:This PR resolves this (by looking for
<-.and replacing it with., instrip_names()since the<-are stripped from the generics before they are used in the matching regex in the object name lintr.Alternatively, I could try keeping
<-in both the generic list and the function names that are being linted if we think that's a better approach.