MCPcopy Create free account
hub / github.com/conventionalcommit/commitlint / initLinterRules

Function initLinterRules

config/lint.go:31–37  ·  view source on GitHub ↗
(conf *lint.Config)

Source from the content-addressed store, hash-verified

29}
30
31func initLinterRules(conf *lint.Config) ([]lint.Rule, error) {
32 if err := checkIfMinVersion(conf.MinVersion); err != nil {
33 return nil, err
34 }
35
36 return GetEnabledRules(conf)
37}
38
39// GetFormatter returns the formatter as defined in conf
40func GetFormatter(conf *lint.Config) (lint.Formatter, error) {

Callers 2

NewLinterFunction · 0.85
NewLinterWithParserFunction · 0.85

Calls 2

checkIfMinVersionFunction · 0.85
GetEnabledRulesFunction · 0.85

Tested by

no test coverage detected