MCPcopy Index your code
hub / github.com/conventionalcommit/commitlint / NewIssue

Function NewIssue

lint/result.go:34–39  ·  view source on GitHub ↗

NewIssue returns a new issue

(desc string, infos ...string)

Source from the content-addressed store, hash-verified

32
33// NewIssue returns a new issue
34func NewIssue(desc string, infos ...string) *Issue {
35 return &Issue{
36 description: desc,
37 additionalInfos: infos,
38 }
39}
40
41// RuleName returns rule name
42func (r *Issue) RuleName() string { return r.ruleName }

Callers 15

caseIssueFunction · 0.92
validateMinLenFunction · 0.92
validateMaxLenFunction · 0.92
validateMaxLineLengthFunction · 0.92
ValidateMethod · 0.92
ValidateMethod · 0.92
ValidateMethod · 0.92
ValidateMethod · 0.92
ValidateMethod · 0.92
ValidateMethod · 0.92
ValidateMethod · 0.92
ValidateMethod · 0.92

Calls

no outgoing calls

Tested by 2

TestIssue_PropertiesFunction · 0.74
TestIssue_NoInfosFunction · 0.74