summaryrefslogtreecommitdiff
path: root/pylint/reporters/json_reporter.py
diff options
context:
space:
mode:
authorMarc Mueller <30130371+cdce8p@users.noreply.github.com>2021-12-03 15:53:14 +0100
committerGitHub <noreply@github.com>2021-12-03 15:53:14 +0100
commit765a0b74bc5f2cface4595661f8832a3aebc68ba (patch)
tree501d3a7a5df084817d89658182dbd9c5ac830771 /pylint/reporters/json_reporter.py
parent28a33ef874cd63b92a32208e844b97f0c6a2f082 (diff)
downloadpylint-git-765a0b74bc5f2cface4595661f8832a3aebc68ba.tar.gz
Add endLine and endColumn keys to JSONReporter (#5456)
Co-authored-by: Daniƫl van Noord <13665637+DanielNoord@users.noreply.github.com> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
Diffstat (limited to 'pylint/reporters/json_reporter.py')
-rw-r--r--pylint/reporters/json_reporter.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pylint/reporters/json_reporter.py b/pylint/reporters/json_reporter.py
index 8c43b0a3b..9299d581b 100644
--- a/pylint/reporters/json_reporter.py
+++ b/pylint/reporters/json_reporter.py
@@ -40,6 +40,8 @@ class JSONReporter(BaseReporter):
"obj": msg.obj,
"line": msg.line,
"column": msg.column,
+ "endLine": msg.end_line,
+ "endColumn": msg.end_column,
"path": msg.path,
"symbol": msg.symbol,
"message": msg.msg or "",