branch: elpa/flycheck
commit 22d8de4801fe5945c265d6d36493e72cf16fa120
Author: Bozhidar Batsov <[email protected]>
Commit: Bozhidar Batsov <[email protected]>

    Add missing warning patterns to scala and xml-xmllint checkers
    
    The scala checker only matched errors; add a warning pattern for
    the standard "file:line: warning: message" format. For xml-xmllint,
    add a warning pattern matching "DOMAIN warning : message" lines,
    with the existing error pattern as catch-all.
---
 flycheck.el | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/flycheck.el b/flycheck.el
index b20df4d9ba..c0cf7c60cf 100644
--- a/flycheck.el
+++ b/flycheck.el
@@ -11906,7 +11906,8 @@ CHECKER and BUFFER are used to construct the error 
objects."
 See URL `https://www.scala-lang.org/'."
   :command ("scalac" "-Ystop-after:parser" source)
   :error-patterns
-  ((error line-start (file-name) ":" line ": error: " (message) line-end))
+  ((error line-start (file-name) ":" line ": error: " (message) line-end)
+   (warning line-start (file-name) ":" line ": warning: " (message) line-end))
   :modes (scala-mode scala-ts-mode)
   :next-checkers ((warning . scala-scalastyle)))
 
@@ -12584,7 +12585,11 @@ The xmllint is part of libxml2, see URL
             "-")
   :standard-input t
   :error-patterns
-  ((error line-start "-:" line ": " (message) line-end))
+  ((warning line-start "-:" line ": "
+            (message (one-or-more (not (any ":"))) "warning : "
+                     (one-or-more not-newline))
+            line-end)
+   (error line-start "-:" line ": " (message) line-end))
   :modes (xml-mode nxml-mode))
 
 (flycheck-define-checker yaml-jsyaml

Reply via email to