Disable SwiftLint for XCode autogenerated Siri Intents swift files

194 Views Asked by At

How to disable SwiftLint for XCode autogenerated *.swift files? For example for Siri Intents?

Errors and Warnings in XCode

1

There are 1 best solutions below

1
Rob On BEST ANSWER

You can specify folders and files in the excluded section of the .swiftlint.yml file as discussed in the documentation.

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