From 9a901cbe2960d3a18dcd69b775372aacfa082775 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Wed, 9 Mar 2016 09:13:47 -0800 Subject: [emacs] Twitter's style check report warnings too Add pattern for warnings from Twitter's check style to flycheck. --- emacs.d/core/core-flycheck.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/emacs.d/core/core-flycheck.el b/emacs.d/core/core-flycheck.el index 9c64bb1..7118f83 100644 --- a/emacs.d/core/core-flycheck.el +++ b/emacs.d/core/core-flycheck.el @@ -17,7 +17,8 @@ :command ("check.pex" source) ;;; errors are reported like this: ;;; E241:ERROR : - :error-patterns ((error line-start (1+ nonl) ":ERROR" (1+ nonl) ":" line (message) line-end)) + :error-patterns ((error line-start (id (1+ nonl)) ":ERROR" (1+ nonl) ":" line (message) line-end) + (warning line-start (id (1+ nonl)) ":WARNING" (1+ nonl) ":" line (message) line-end)) :predicate check-source-predicate :modes (python-mode)) (add-to-list 'flycheck-checkers 'source-check))) -- cgit 1.4.1