branch: elpa/flymake-collection
commit 274e5ec3e614e73fd0d7c3e1ffc652461bf5b5f3
Author: Fredrik Bergroth <fbergr...@gmail.com>
Commit: GitHub <nore...@github.com>

    checkers: Fix error codes in ruff (#15)
    
    Oopsies
---
 src/checkers/flymake-collection-ruff.el | 2 +-
 tests/checkers/test-cases/ruff.yml      | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/checkers/flymake-collection-ruff.el 
b/src/checkers/flymake-collection-ruff.el
index 9336872162..d7f60cac82 100644
--- a/src/checkers/flymake-collection-ruff.el
+++ b/src/checkers/flymake-collection-ruff.el
@@ -70,7 +70,7 @@ See URL `https://github.com/charliermarsh/ruff'."
             (car loc)
             (cdr loc)
             :warning
-            (concat (propertize (format "SC%s" .code) 'face 
'flymake-collection-diag-id) " " .message)))))
+            (concat (propertize .code 'face 'flymake-collection-diag-id) " " 
.message)))))
 
 (provide 'flymake-collection-ruff)
 
diff --git a/tests/checkers/test-cases/ruff.yml 
b/tests/checkers/test-cases/ruff.yml
index 10763c8ddf..2e77572118 100644
--- a/tests/checkers/test-cases/ruff.yml
+++ b/tests/checkers/test-cases/ruff.yml
@@ -15,14 +15,14 @@ tests:
     lints:
       - point: [3, 0]
         level: warning
-        message: SCF821 Undefined name `a` (ruff)
+        message: F821 Undefined name `a` (ruff)
       - point: [3, 5]
         level: warning
-        message: SCE711 Comparison to `None` should be `cond is None` (ruff)
+        message: E711 Comparison to `None` should be `cond is None` (ruff)
   - name: syntax-error
     file: |
       definitely should not work
     lints:
       - point: [1, 12]
         level: warning
-        message: "SCE999 SyntaxError: invalid syntax. Got unexpected token 
'should' (ruff)"
+        message: "E999 SyntaxError: invalid syntax. Got unexpected token 
'should' (ruff)"

Reply via email to