applyFullStopArg extracts a single character string from setting.
(dst *string, ruleName string, setting lint.RuleSetting)
| 16 | |
| 17 | // applyFullStopArg extracts a single character string from setting. |
| 18 | func 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 ".". |
no test coverage detected