-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Fix #8799] Fix SpaceInsideBlockBraces cop regression.
In 6c05f69 this cop was changed in a way which prevents it from running multiple times on a single line. It appears that this is due to the misunderstanding about what the 'unrecognized_style_detected' and 'opposite_style_detected' methods are designed to do. I do not believe that they should be used as inquiry methods, but should be used as side-effecting methods. e.g. `opposite_style_detected` ALWAYS returns a truthy value.
- Loading branch information
Showing
3 changed files
with
29 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters