Swiftlint: Ability to ignore certain files (e.g. dependencies for iOS 7?)

Created on 15 Jun 2015  ·  4Comments  ·  Source: realm/SwiftLint

Hi, is it possible to configure SwiftLint to ignore certain files in the "Run Script" phase? I had to drag in a few dependencies for iOS 7 and it's spamming my project with errors.

enhancement

Most helpful comment

You can now specify excluded in your .swiftlint.yml file. See https://github.com/realm/SwiftLint#configuration for more details.

All 4 comments

For now, you could run SwiftLint individually on each file you want linted, but I agree it'd be nice to allow excluding files.

:+1:, I just added a framework via Carthage and now my project won't build. Maybe just ignore all files in .gitignore and other vcs.

Or make a .swiftlint config file.

Until then I have to disable the build step :cry:

Ended up working around this by running swiftlint --path [srcdir], which suits my needs just fine.

You can now specify excluded in your .swiftlint.yml file. See https://github.com/realm/SwiftLint#configuration for more details.

Was this page helpful?
0 / 5 - 0 ratings