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

Investigate Input.IgnoreObjectSource bug #1753

Open
BernieWhite opened this issue Feb 11, 2024 · 0 comments
Open

Investigate Input.IgnoreObjectSource bug #1753

BernieWhite opened this issue Feb 11, 2024 · 0 comments
Labels
bug Something isn't working feature: input Issues that affect input

Comments

@BernieWhite
Copy link
Member

Description of the issue

The option Input.IgnoreObjectSource is not working correcting with the following options:

input:
  # By default, objects read from file using inputPath will be skipped if the file path has been ignored.
  # When set to true, additionally objects with a source path that has been ignored will be skipped.
  ignoreObjectSource: true
  
  # By default, PSRule will process all files within an input path.
  ignoreUnchangedPath: true

  pathIgnore:
    # Ignore other files in the repository.
    - '**'

    # Include deployment files.
    - '!deployments/**/*.bicepparam'
    - '!deployments/**/main.bicep'

Expected behaviour

All files should be ignored except *.bicepparam and main.bicep files.

Module in use and version:

  • Module: PSRule
  • Version: 2.9.0

Additional context

Related to Azure/PSRule.Rules.Azure#2678

@BernieWhite BernieWhite added bug Something isn't working feature: input Issues that affect input labels Feb 11, 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

No branches or pull requests

1 participant