Skip to content

Path filtering of ignored files includes prefixed files. #2624

@BernieWhite

Description

@BernieWhite

Description of the issue

In the following configuration, a file named abc.csproj should be ignored but it no because of the previous exclusion for !**/*.cs because .cs matches all part of the file name before.

input:
  fileObjects: true
  pathIgnore:
    - '**'
    - '!**/*.cs'
    - '!**/*.ps1'
    - '!**/*.psd1'
    - '!**/*.psm1'
    - '*.Designer.cs'

Module in use and version:

  • Module: PSRule
  • Version: 3.0.0

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingfeature: inputIssues that affect input

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions