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
Is your feature request related to a problem? Please describe.
A. new or Kernel. puts is valid ruby, but very weird.
Describe the solution you'd like
I'd like a cop to enforce that no spaces are used between the . and the method being called. Not sure about naming, perhaps, DotSpacing inspired by the DotPosition cop, or maybe SpaceAfterDot?
Describe alternatives you've considered
None.
Additional context
None.
The text was updated successfully, but these errors were encountered:
deivid-rodriguez
changed the title
New cop to check no spaces between . and the method being called
Cop idea: check no spaces between . and the method being called
Mar 27, 2020
deivid-rodriguez
changed the title
Cop idea: check no spaces between . and the method being called
Cop idea: Check no spaces between . and the method being called
Mar 27, 2020
Actually, just found #7273, which wants to check for spaces before the dot, but the cop I'm proposing here is suggested in a followup comment on the issue. So maybe both tickets can be merged 🤷♂️
Is your feature request related to a problem? Please describe.
A. new
orKernel. puts
is valid ruby, but very weird.Describe the solution you'd like
I'd like a cop to enforce that no spaces are used between the
.
and the method being called. Not sure about naming, perhaps,DotSpacing
inspired by theDotPosition
cop, or maybeSpaceAfterDot
?Describe alternatives you've considered
None.
Additional context
None.
The text was updated successfully, but these errors were encountered: