NewLinterWithParser returns Linter for given conf and custom parser
(conf *lint.Config, parser commit.Parser)
| 20 | |
| 21 | // NewLinterWithParser returns Linter for given conf and custom parser |
| 22 | func NewLinterWithParser(conf *lint.Config, parser commit.Parser) (*lint.Linter, error) { |
| 23 | rules, err := initLinterRules(conf) |
| 24 | if err != nil { |
| 25 | return nil, err |
| 26 | } |
| 27 | |
| 28 | return lint.NewWithParser(conf, rules, parser) |
| 29 | } |
| 30 | |
| 31 | func initLinterRules(conf *lint.Config) ([]lint.Rule, error) { |
| 32 | if err := checkIfMinVersion(conf.MinVersion); err != nil { |