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

Function New

lint/linter.go:23–25  ·  view source on GitHub ↗

New returns a new Linter instance with given config and rules using the default inspection parser.

(conf *Config, rules []Rule)

Source from the content-addressed store, hash-verified

21// New returns a new Linter instance with given config and rules using the
22// default inspection parser.
23func New(conf *Config, rules []Rule) (*Linter, error) {
24 return newLinter(conf, rules, nil)
25}
26
27// NewWithParser returns a new Linter instance using parser for ParseAndLint.
28func NewWithParser(conf *Config, rules []Rule, parser commit.Parser) (*Linter, error) {

Calls 1

newLinterFunction · 0.85