Actions
Defect #34165
closedRuboCop warns Layout/SpaceInsideBlockBraces and Layout/SpaceInsideHashLiteralBraces due to r20189 and r20190
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Code cleanup/refactoring
Target version:
-
Start date:
Due date:
% Done:
0%
Estimated time:
Resolution:
Invalid
Affected version:
Description
RuboCops displays huge numbers of warnings in the latest trunk.
This is because someone changed .ruboco.yml by committing r20189 and r20190. Those can be disabled again by reverting the two commits.
bundle exec rubocop --regenerate-todo bundle exec rubocop
Offenses: app/controllers/activities_controller.rb:62:22: C: Layout/SpaceInsideBlockBraces: Space inside { detected. format.html { ... app/controllers/activities_controller.rb:64:50: C: Layout/SpaceInsideBlockBraces: Space inside } detected. render :layout => false if request.xhr? ... . . . test/unit/user_import_test.rb:126:50: C: Layout/SpaceInsideBlockBraces: Space inside { detected. first, second, third = new_records(User, 3) { import.run } ^ test/unit/user_import_test.rb:126:61: C: Layout/SpaceInsideBlockBraces: Space inside } detected. first, second, third = new_records(User, 3) { import.run } ^ 902 files inspected, 1092 offenses detected, 1092 offenses auto-correctable
Actions