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

Method Parse

commit/parser.go:16–22  ·  view source on GitHub ↗
(input string)

Source from the content-addressed store, hash-verified

14}
15
16func (p *defaultParser) Parse(input string) (Commit, error) {
17 c, err := syntax.Parse(input)
18 if err != nil {
19 return nil, err
20 }
21 return &defaultCommit{Commit: c}, nil
22}
23
24// Inspect exposes recoverable fields alongside all syntax diagnostics.
25// A nil commit means structural recovery was unsafe.

Callers

nothing calls this directly

Calls 1

ParseMethod · 0.65

Tested by

no test coverage detected