Disable SwiftLint for a file

by
, posted

SwiftLint is great, but sometimes you want to completely ignore something. Add this to the top of a file to achieve that:

// swiftlint:disable all

Alternatively, you can update your SwiftLint configuration. Add this to your .swiftlint.yml configuration file:

excluded:
  - Path/To/File/To/Exclude.swift

And SwiftLint will stop complaining about it!