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
Running Layout/SpaceBeforeBrackets on the https://github.com/zammad/zammad codebase breaks code on various locations. It wrongly detects a space before brackets and then removed the bracket resulting in broken code. See example below.
Expected behavior
While the code is not nice (yet) at these locations it should pass IMHO or fix it correctly/not break the code.
Actual behavior
Breaks code by removing perfectly fine placed bracket.
Steps to reproduce the problem
Run rubocop -a on a file containing just this line:
Running
Layout/SpaceBeforeBrackets
on the https://github.com/zammad/zammad codebase breaks code on various locations. It wrongly detects a space before brackets and then removed the bracket resulting in broken code. See example below.Expected behavior
While the code is not nice (yet) at these locations it should pass IMHO or fix it correctly/not break the code.
Actual behavior
Breaks code by removing perfectly fine placed bracket.
Steps to reproduce the problem
Run
rubocop -a
on a file containing just this line:Watch it to turn into:
Or for more:
RuboCop version
The text was updated successfully, but these errors were encountered: