Skip to content

Commit 7bb19f8

Browse files
committed
chore(lint): Export linting function
1 parent 091f5e2 commit 7bb19f8

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

cmd/linter/lint_cmd.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ func FindLintErrors(schemaFileContents map[string][]byte, rulesToApply []linter.
7070
exitStatus |= 1 // If there's error for any file, exit code should be 1
7171
}
7272
}
73-
7473
if errorCount == 0 {
7574
fmt.Printf("Schema has no lint errors! 🎉\n")
7675
} else {
@@ -102,7 +101,6 @@ func FindTheRulesToApply(rulesString []string) ([]linter.LintRuleFunc, error) {
102101
if !matchFound {
103102
return nil, fmt.Errorf("invalid rule[%s] passed", inputRuleName)
104103
}
105-
106104
}
107105
return rulesToApply, nil
108106
}

0 commit comments

Comments
 (0)