retorquere
retorquere

Reputation: 1566

How to error rather than warning on specific rule

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

Answers (1)

Michael Salmon
Michael Salmon

Reputation: 1184

This works in your .swiftlint.yml file:

trailing_whitespace:
  severity: error

Upvotes: 3

Related Questions