0

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.

retorquere
  • 1,496
  • 1
  • 14
  • 27

1 Answers1

3

This works in your .swiftlint.yml file:

trailing_whitespace:
  severity: error
Michael Salmon
  • 1,056
  • 7
  • 15