Using type_name
in .swiftlint.yml causes incorrect style errors
#526
Labels
bug
Unexpected and reproducible misbehavior.
Abstract
If I try to control how
type_name
rule (length) behaves in my project, any type that IS legal throws an error when run against the linter.Steps for reproduction
.swiftlint.yml
fileThen compile the project with swiftlint enabled
Expected behavior
Any type names less than two characters and greater than forty characters are flagged as a warning.
Actual behavior
Type names that do fit in the 2-40 range are marked as an error:
Workaround
Remove the rule from the .swiftlint.yml file and no errors are generated.
Attempted resolutions:
type_name
rule to:This caused swiftlint to ignore the rule altogether.
Version
I am not sure if my yml format is invalid or if something else is going wrong. This was not occurring until I
brew upgrade
'd today to 0.8.0.Any help would be greatly appreciated. And thank you for this tool and the help.
The text was updated successfully, but these errors were encountered: