You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update reporters to (allow) use of end_line and end_column (#5372)
* Update reporters to (allow) use end_line and end_column
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
Copy file name to clipboardExpand all lines: doc/user_guide/output.rst
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,6 +58,10 @@ line
58
58
line number
59
59
column
60
60
column number
61
+
end_line
62
+
line number of the end of the node
63
+
end_column
64
+
column number of the end of the node
61
65
module
62
66
module name
63
67
obj
@@ -94,6 +98,9 @@ A few other examples:
94
98
The ``--msg-template`` option can only be combined with text-based reporters (``--output-format`` either unspecified or one of: parseable, colorized or msvs).
95
99
If both ``--output-format`` and ``--msg-template`` are specified, the ``--msg-template`` option will take precedence over the default line format defined by the reporter class.
96
100
101
+
If ``end_line`` or ``end_column`` are ``None``, they will be represented as an empty string
102
+
by the default ``TextReporter``.
103
+
97
104
.. _Python new format syntax: https://docs.python.org/2/library/string.html#formatstrings
0 commit comments