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

    Use flycheck-error-new-at in salt-lint parser
    
    Replace flycheck-error-new (keyword-only constructor) with
    flycheck-error-new-at (positional line/column) for consistency
    with all other parsers in the codebase.
---
 flycheck.el | 23 +++++++++++------------
 1 file changed, 11 insertions(+), 12 deletions(-)

diff --git a/flycheck.el b/flycheck.el
index 6dbff54531..32d3a08a0c 100644
--- a/flycheck.el
+++ b/flycheck.el
@@ -11893,20 +11893,19 @@ CHECKER and BUFFER are used to construct the error 
objects."
                                       :false-object nil)))
         (mapcar (lambda (e)
                   (let-alist e
-                    (flycheck-error-new
+                    (flycheck-error-new-at
+                     .linenumber 0
+                     (pcase .severity
+                       ("HIGH" 'error)
+                       ("MEDIUM" 'warning)
+                       ("LOW" 'warning)
+                       ("INFO" 'info)
+                       (_ 'info))
+                     (concat .message .line)
+                     :id .id
                      :checker checker
                      :buffer buffer
-                     :filename filename
-                     :level (pcase .severity
-                              ("HIGH" 'error)
-                              ("MEDIUM" 'warning)
-                              ("LOW" 'warning)
-                              ("INFO" 'info)
-                              (_ 'info))
-                     :line .linenumber
-                     :column 0
-                     :message (concat .message .line)
-                     :id .id)))
+                     :filename filename)))
                 errors))
     (json-parse-error nil)))
 

Reply via email to