Giter Site home page Giter Site logo

`inputPath` set to `some.bicepparam` file works, but throws warning `has not been processed because no matching rules were found` about psrule HOT 3 CLOSED

o-l-a-v avatar o-l-a-v commented on August 27, 2024
`inputPath` set to `some.bicepparam` file works, but throws warning `has not been processed because no matching rules were found`

from psrule.

Comments (3)

BernieWhite avatar BernieWhite commented on August 27, 2024 1

@o-l-a-v In part it does, but not by a rule.

If Bicep generates a Error either via a linter rule that is set to error or a general compile issue PSRule will propagate the error up and generate an error, which will result in breaking the build. But there is no rule that drives this, so a warning would still be generated.

from psrule.

BernieWhite avatar BernieWhite commented on August 27, 2024

Hi @o-l-a-v this is intended. The behaviour will change in PSRule v3, because it is a common cause for confusion.


Expanding my explanation, by default, PSRule will warn objects that are processed and no rules have run. Each file is treated as an independent object in addition to the Azure resources contained within.

Because you have no rules that check this object (PSRule for Azure doesn't ship with any) the warning is generated.

You can toggle of the warning by setting the Execution.UnprocessedObject option to Ignore.

See: https://microsoft.github.io/PSRule/v2/concepts/PSRule/en-US/about_PSRule_Options/#executionunprocessedobject


If there is no further issue, let's close this issue.

from psrule.

o-l-a-v avatar o-l-a-v commented on August 27, 2024

Thanks for the explaination @BernieWhite.

I wrongfully assumed PSRule analyzed the results of Bicep build.

from psrule.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.