You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I guess one correction adds a empty line where the other removes it again.
You might say that this AccessModifier is useless anyway and we have a Cop for that named Lint/UselessAccessModifier. The problem is this Cop does not (yet) support auto-correct.
I could not find it on this list on the wiki and to me it seems both possible and save to do auto-correct.
If someone can point me to a good example on how to do this kind of auto-correction or how the auto-correction is applied in general I probably could make a pull request myself.
The text was updated successfully, but these errors were encountered:
I was about to say that we don't add autocorrect to Lint cops, but a search through the source code revealed that we do sometimes. So I see no reason why we shouldn't in this case.
But I'd also like to see a fix in EmptyLinesAroundAccessModifier because we should not depend on other cops being enabled for proper function.
I am without access to a real computer for a few days, typing this on an iPad, so it's difficult for me to point you to a good example.
take a simple example like this
using rubocop
0.25.0
the following command seems to go into an endless loop.I guess one correction adds a empty line where the other removes it again.
You might say that this AccessModifier is useless anyway and we have a Cop for that named
Lint/UselessAccessModifier
. The problem is this Cop does not (yet) support auto-correct.I could not find it on this list on the wiki and to me it seems both possible and save to do auto-correct.
If someone can point me to a good example on how to do this kind of auto-correction or how the auto-correction is applied in general I probably could make a pull request myself.
The text was updated successfully, but these errors were encountered: