How to disable SwiftLint for XCode autogenerated *.swift files? For example for Siri Intents?
You can specify folders and files in the excluded section of the .swiftlint.yml file as discussed in the documentation.
excluded
.swiftlint.yml
E.g., you might have an excluded section like so:
excluded: # paths to ignore during linting. Takes precedence over `included`. - Carthage - Pods - Source/ExcludedFolder - Source/ExcludedFile.swift - Source/*/ExcludedFile.swift # Exclude files with a wildcard
You can specify folders and files in the
excludedsection of the.swiftlint.ymlfile as discussed in the documentation.E.g., you might have an
excludedsection like so: