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

Function applyFullStopArg

lint/rule/fullstop_rules.go:18–23  ·  view source on GitHub ↗

applyFullStopArg extracts a single character string from setting.

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

Source from the content-addressed store, hash-verified

16
17// applyFullStopArg extracts a single character string from setting.
18func applyFullStopArg(dst *string, ruleName string, setting lint.RuleSetting) error {
19 if err := setStringArg(dst, setting.Argument); err != nil {
20 return errInvalidArg(ruleName, err)
21 }
22 return nil
23}
24
25// HeaderFullStopRule checks that the header does NOT end with a given character.
26// Default character is ".".

Callers 3

ApplyMethod · 0.85
ApplyMethod · 0.85
ApplyMethod · 0.85

Calls 2

setStringArgFunction · 0.85
errInvalidArgFunction · 0.85

Tested by

no test coverage detected