Reputation: 1566
I want the build to error out on trailing_whitespace
. I have added trailing_whitespace: error
to my .swiftlint.yml
but it's still just showing up as a warning.
I've seen How to force error on SwiftLint instead of warnings? but that's about treating all warnings as errors, I want just selectively treat some rules as errors.
Upvotes: 0
Views: 831
Reputation: 1184
This works in your .swiftlint.yml file:
trailing_whitespace:
severity: error
Upvotes: 3