Skip to content

Commit

Permalink
checkers: Fix error codes in ruff (#15)
Browse files Browse the repository at this point in the history
Oopsies
  • Loading branch information
fbergroth authored Nov 13, 2022
1 parent 976ac70 commit 274e5ec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/checkers/flymake-collection-ruff.el
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
6 changes: 3 additions & 3 deletions tests/checkers/test-cases/ruff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)"

0 comments on commit 274e5ec

Please sign in to comment.