aboutsummaryrefslogtreecommitdiffstats
path: root/flycheck-commit-check.el
diff options
context:
space:
mode:
Diffstat (limited to 'flycheck-commit-check.el')
-rw-r--r--flycheck-commit-check.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/flycheck-commit-check.el b/flycheck-commit-check.el
index 1dcd979..907f7c4 100644
--- a/flycheck-commit-check.el
+++ b/flycheck-commit-check.el
@@ -32,9 +32,9 @@
(flycheck-define-checker git-commit-check
"A git commit checker"
:command ("commit-check" "-0" source)
- :error-patterns ((error line-start "Error on line "
- (one-or-more digit) " (actual line "
- line "): " (message) line-end))
+ :error-patterns ((error line-start "commit-check:"
+ (one-or-more (not (any ":"))) ":" line ": "
+ (message) line-end))
:modes git-commit-mode)
(add-to-list 'flycheck-checkers 'git-commit-check)