-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exclude Pods
and Carthage
directories by default
#2319
Comments
Maybe rather create a |
@fabb It's easy enough to add it manually. The point here is to reduce boilerplate and optimize for the common case. |
@fabb I think some kind of command that generates a |
I‘m not against it, just wanted to point out a possible alternative. |
This issue has been automatically marked as stale because it has not had any recent activity. Please comment to prevent this issue from being closed. Thank you for your contributions! |
New Issue Checklist
Enhancement Request
I think that the
Pods
andCarthage
directories should be excluded from SwiftLint by default.Flagging linter warnings/errors on dependencies isn't a very useful or commonly needed feature. Most sample
.swiftlint.yml
files that I've seen manually exclude these directories (examples: 0, 1, 2). This should be a built-in default which can be overridden withincluded
if needed for some reason.At least with Cocoapods, excluding the Pods directory by default would simplify the initial integration of SwiftLint into the project. Currently, the initial setup goes something like:
pod 'SwiftLint'
"${PODS_ROOT}/SwiftLint/swiftlint"
to a build phase.swiftlint.yml
andexcluded: - Pods
It also makes running an initial or one-off autocorrect more cumbersome than it needs to be.
Related to #1637. This was mentioned also in #6 but the issue was closed with the addition of the exclusion options to
.swiftlint.yml
.Environment
swiftlint version
to be sure)? 0.26.0The text was updated successfully, but these errors were encountered: