Skip to content

Commit

Permalink
chore: printing only recommendations with valid ARG queries
Browse files Browse the repository at this point in the history
  • Loading branch information
cmendible committed Aug 20, 2024
1 parent d74c56c commit 0e64b74
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmd/azqr/rules.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@ var rulesCmd = &cobra.Command{

for _, t := range scanner.ResourceTypes() {
for _, r := range aprl[strings.ToLower(t)] {
if strings.Contains(r.GraphQuery, "cannot-be-validated-with-arg") ||
strings.Contains(r.GraphQuery, "under-development") ||
strings.Contains(r.GraphQuery, "under development") {
continue
}

i++
fmt.Printf("%s | %s | %s | %s | %s | %s | [Learn](%s)", fmt.Sprint(i), r.RecommendationID, r.ResourceType, r.Category, r.Impact, r.Recommendation, r.LearnMoreLink[0].Url)
fmt.Println()
Expand Down

0 comments on commit 0e64b74

Please sign in to comment.