summary refs log tree commit diff
path: root/emacs.d/core/core-flycheck.el
diff options
context:
space:
mode:
authorFranck Cuny <franckcuny@gmail.com>2016-03-09 09:13:47 -0800
committerFranck Cuny <franckcuny@gmail.com>2016-03-09 09:13:47 -0800
commit9a901cbe2960d3a18dcd69b775372aacfa082775 (patch)
tree5c40ec893b1c564f05ce6e8bd5bb6d0b0b2769a0 /emacs.d/core/core-flycheck.el
parent[emacs] enable debug for exec-path-from-shell (diff)
downloademacs.d-9a901cbe2960d3a18dcd69b775372aacfa082775.tar.gz
[emacs] Twitter's style check report warnings too
Add pattern for warnings from Twitter's check style to flycheck.
Diffstat (limited to '')
-rw-r--r--emacs.d/core/core-flycheck.el3
1 files changed, 2 insertions, 1 deletions
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   <file name>:<line> <message>
-      :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)))