Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Properly check line breaks in space-after-type-colon (#268)
Previously, there was no explicit check for line breaks, and getSpaces would count line breaks as spaces. That meant that if there only was a line break between the colon and the type (the first of then new test cases), the rule would pass even if allowLineBreak was false. Now it checks if there is a line break between the colon and the type, and handles that explicitly so it passes if allowLineBreak is true and fails otherwise.
- Loading branch information
Showing
3 changed files
with
57 additions
and
7 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