Skip to content

Target object has not been processed because no matching rules were found, but starts analyzing right after? #1422

Discussion options

You must be logged in to vote

@bengeset96 PSRule for Azure doesn't include any rules that test the Bicep files directly. Instead we export the Azure resources, which is the reason for the warning. We could do better explaining this and providing a different default behaviour.

An examples of a rule that does target the file would be:

  • Looking for a copyright header. example
  • Checking naming convention of the Bicep file to be main.bicep or looking for a readme in the same path.

Your code is fine. If you want to disable the warning configure the configure the Execution.NotProcessedWarning option.

For example, you can do this in ps-rule.yaml by:

execution:
  notProcessedWarning: false

Other options on how to configure th…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@BenjaminEngeset
Comment options

Answer selected by BenjaminEngeset
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1421 on May 16, 2022 06:12.