Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

Commit

Permalink
cleaned up errors
Browse files Browse the repository at this point in the history
  • Loading branch information
josehelps committed Jul 19, 2018
1 parent d0e4829 commit 57c8103
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions waflyctl.go
Original file line number Diff line number Diff line change
Expand Up @@ -1282,20 +1282,19 @@ func getRules(apiEndpoint, apiKey string) bool {
}
}

Info.Println("| Rule ID | = | Rule Message |")
Info.Println("# OWASP Rules")
Info.Println("- OWASP Rules")
for _, r := range owasp {
Info.Printf("- %s = %s\n", r.ID, r.Attributes.Message)
Info.Printf("- Rule ID %s - Paranoia Level: %s - Version: %s - Message: %s\n", r.ID,r.Attributes.ParanoiaLevel, r.Attributes.Version, r.Attributes.Message)
}

Info.Println("# Fastly Rules")
Info.Println("- Fastly Rules")
for _, r := range fastly {
Info.Printf("- %s = %s\n", r.ID, r.Attributes.Message)
Info.Printf("- Rule ID %s - Paranoia Level: %s - Version: %s - Message: %s\n", r.ID,r.Attributes.ParanoiaLevel, r.Attributes.Version, r.Attributes.Message)
}

Info.Println("# Trustwave Rules")
Info.Println("- Trustwave Rules")
for _, r := range trustwave {
Info.Printf("- %s = %s\n", r.ID, r.Attributes.Message)
Info.Printf("- Rule ID %s - Paranoia Level: %s - Version: %s - Message: %s\n", r.ID,r.Attributes.ParanoiaLevel, r.Attributes.Version, r.Attributes.Message)
}

/*
Expand Down

0 comments on commit 57c8103

Please sign in to comment.