LintMessage lints commitMsg using the default configuration. It is the simplest entry point for programmatic use: no config file is needed. For custom configuration use Parse or NewDefault, then NewLinter.
(commitMsg string)
| 7 | // |
| 8 | // For custom configuration use Parse or NewDefault, then NewLinter. |
| 9 | func LintMessage(commitMsg string) (*lint.Result, error) { |
| 10 | linter, err := NewLinter(NewDefault()) |
| 11 | if err != nil { |
| 12 | return nil, err |
| 13 | } |
| 14 | return linter.ParseAndLint(commitMsg) |
| 15 | } |
nothing calls this directly
no test coverage detected