Skip to content
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

Path filtering of ignored files includes prefixed files. #2624

Closed
BernieWhite opened this issue Nov 23, 2024 · 0 comments · Fixed by #2625
Closed

Path filtering of ignored files includes prefixed files. #2624

BernieWhite opened this issue Nov 23, 2024 · 0 comments · Fixed by #2625
Assignees
Labels
bug Something isn't working feature: input Issues that affect input
Milestone

Comments

@BernieWhite
Copy link
Member

BernieWhite commented Nov 23, 2024

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
@BernieWhite BernieWhite added bug Something isn't working feature: input Issues that affect input labels Nov 23, 2024
@BernieWhite BernieWhite added this to the v3.0.0 milestone Nov 23, 2024
@BernieWhite BernieWhite self-assigned this Nov 24, 2024
BernieWhite added a commit to BernieWhite/PSRule that referenced this issue Nov 24, 2024
BernieWhite added a commit that referenced this issue Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working feature: input Issues that affect input
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant