Feature a 'real-world' use of these rules against a large code base #2319
rohancragg
started this conversation in
Ideas
Replies: 2 comments 7 replies
-
In the following command-line: Invoke-PSRule -Format File -InputPath '*.tests.bicep' -Module 'PSRule.Rules.Azure' -Outcome Processed -As Summary
input:
pathIgnore:
# ignore all bicep files except the ones that have been created to test modules
- '**'
- '!**/*.tests.bicep' |
Beta Was this translation helpful? Give feedback.
5 replies
-
Thanks for indulging me here. I now see that PsRule is already used in the ALZ-Bicep repo, added here in September last year: Azure/ALZ-Bicep@2120863 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I wanted to see a more substantial example of the rules in action so I have forked a 'reference architecture' repo and tried to implement these checks against it.
Please see here: rohancragg/reliable-web-app-pattern-dotnet#1
It is a fork of Reliable web app pattern for .NET and I've tried to do the absolute minimum to get an analysis of the working. I added a
ps-rule.yaml
and a test of themain.bicep
and ignored other bicep files otherwise there's lots of noise.I'd welcome feedback on my use of the tool here as I'm still learning!
Beta Was this translation helpful? Give feedback.
All reactions