Skip to content

Commit bc3c914

Browse files
committed
fix: return code 0 if no violations are detected
1 parent 5c10cda commit bc3c914

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

main.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,9 @@ func main() {
115115
if errorCounter > 0 {
116116
fmt.Printf("Coding standards not met.\n")
117117
os.Exit(1)
118+
} else {
119+
fmt.Printf("No coding standards violation detected.\n")
120+
os.Exit(0)
118121
}
119122

120123
if err != nil {

0 commit comments

Comments
 (0)