Skip to content

Support regex pattern matching for file_name excluded array in configuration file #6066

@vimscientist69

Description

@vimscientist69

New Issue Checklist

Feature or Enhancement Proposal

The problem I am facing: I want to entirely disable the file_name rule for all Swift files in a codebase that ends with "Types". I guess this is not only specific to file_name but all rules that have an excluded field. I tried:

  1. .*Types\\.swift
  2. Types
  3. **/*Types
  4. **/*Types.swift

The examples included in rules documentation for the excluded field does not have any patterns, only hard-coded file names.

The top-level excluded array in a configuration file supports pattern matching (this field is for all the files swiftlint should ignore entirely).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementIdeas for improvements of existing features and rules.good first issueIssue to be taken up by new contributors yet unfamiliar with the project.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions