Skip to content

Setting to have SwiftLint exclude files listed in .gitignore or other existing ignore files #6245

@rgoldberg

Description

@rgoldberg

New Issue Checklist

Feature or Enhancement Proposal

Please add a setting to have SwiftLint exclude files listed in .gitignore or in other existing ignore files.

I want to lint all Swift files in my repo, but .build contains many generated Swift files that get linted.

.build & other paths are already ignored by my .gitignore; I shouldn't need to copy such ignored paths into .swiftlint.yml.

Other file names or ignore file formats can also be supported. You could always take the union of all ignores from all supported ignore files from standard locations, allow format & path to be specified, and allow multiple ignore files, potentially with multiple ignore files per same type.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementIdeas for improvements of existing features and rules.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions