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

Function NewParser

commit/parser.go:12–14  ·  view source on GitHub ↗

NewParser returns a stateless parser backed by syntax.

()

Source from the content-addressed store, hash-verified

10
11// NewParser returns a stateless parser backed by syntax.
12func NewParser() Parser {
13 return &defaultParser{}
14}
15
16func (p *defaultParser) Parse(input string) (Commit, error) {
17 c, err := syntax.Parse(input)

Callers 6

TestSyntaxAdapterFunction · 0.92
TestSyntaxAdapterErrorsFunction · 0.92
TestCommitHelpersFunction · 0.92
BenchmarkSyntaxAdapterFunction · 0.92

Calls

no outgoing calls

Tested by 6

TestSyntaxAdapterFunction · 0.74
TestSyntaxAdapterErrorsFunction · 0.74
TestCommitHelpersFunction · 0.74
BenchmarkSyntaxAdapterFunction · 0.74