MCPcopy Index your code
hub / github.com/conventionalcommit/commitlint / checkIfMinVersion

Function checkIfMinVersion

config/config.go:209–215  ·  view source on GitHub ↗
(versionNo string)

Source from the content-addressed store, hash-verified

207}
208
209func checkIfMinVersion(versionNo string) error {
210 cmp := semver.Compare(internal.Version(), versionNo)
211 if cmp != -1 {
212 return nil
213 }
214 return fmt.Errorf("min version required is %s. you have %s.\nupgrade commitlint", versionNo, internal.Version())
215}
216
217func isSeverityValid(s lint.Severity) bool {
218 return s == lint.SeverityError || s == lint.SeverityWarn

Callers 2

NewLinterFunction · 0.85
GetFormatterFunction · 0.85

Calls 1

VersionFunction · 0.92

Tested by

no test coverage detected