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

Function applyIntArg

lint/rule/length_rules.go:24–29  ·  view source on GitHub ↗

applyIntArg is a shared helper that extracts an int argument from a RuleSetting.

(dst *int, ruleName string, setting lint.RuleSetting)

Source from the content-addressed store, hash-verified

22
23// applyIntArg is a shared helper that extracts an int argument from a RuleSetting.
24func applyIntArg(dst *int, ruleName string, setting lint.RuleSetting) error {
25 if err := setIntArg(dst, setting.Argument); err != nil {
26 return errInvalidArg(ruleName, err)
27 }
28 return nil
29}
30
31// --- Header ---
32

Callers 14

ApplyMethod · 0.85
ApplyMethod · 0.85
ApplyMethod · 0.85
ApplyMethod · 0.85
ApplyMethod · 0.85
ApplyMethod · 0.85
ApplyMethod · 0.85
ApplyMethod · 0.85
ApplyMethod · 0.85
ApplyMethod · 0.85
ApplyMethod · 0.85
ApplyMethod · 0.85

Calls 2

setIntArgFunction · 0.85
errInvalidArgFunction · 0.85

Tested by

no test coverage detected