We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 598083a commit dbef31eCopy full SHA for dbef31e
main.go
@@ -83,7 +83,6 @@ var RootCmd = &cobra.Command{
83
os.Exit(1)
84
}
85
86
-
87
} else {
88
if len(args) < 1 && len(directories) < 1 {
89
log.Error("You must pass at least one file as an argument, or at least one directory to the directories flag")
@@ -143,6 +142,8 @@ var RootCmd = &cobra.Command{
143
142
},
144
145
+// hasErrors returns truthy if any of the provided results
146
+// contain errors.
147
func hasErrors(res []kubeval.ValidationResult) bool {
148
for _, r := range res {
149
if len(r.Errors) > 0 {
0 commit comments