branch: elpa/flycheck
commit 1fe4892d111347b452a037cab562de91f08f9d26
Author: Bozhidar Batsov <[email protected]>
Commit: Bozhidar Batsov <[email protected]>
Show pyright rule name in error reports
Include the rule field from pyright's JSON output as the error
ID, so users can see which diagnostic rule triggered each error
(e.g. reportGeneralTypeIssues).
Closes #1979
---
flycheck.el | 1 +
1 file changed, 1 insertion(+)
diff --git a/flycheck.el b/flycheck.el
index 2e224aaaf5..7db05482c6 100644
--- a/flycheck.el
+++ b/flycheck.el
@@ -11143,6 +11143,7 @@ the BUFFER that was checked respectively."
("warning" 'warning)
(_ 'warning))
.message
+ :id .rule
:end-line (+ 1 .range.end.line)
:end-column (+ 1 .range.end.character)
:checker checker