Skip to content

Commit 00c1f8e

Browse files
committed
Update docs for warning fields
1 parent 4016412 commit 00c1f8e

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

docsrc/module.rst

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,20 @@ A file report is an array of issues (warnings or errors). If a fatal error occur
2424

2525
An issue is a table with field ``code`` indicating its type (see :doc:`warnings`), and fields ``line``, ``column`` and ``end_column`` pointing to the source of the warning. ``name`` field may contain name of related variable. Issues of some types can also have additional fields:
2626

27-
===== ========================================================================================
28-
Codes Additional fields
29-
===== ========================================================================================
30-
011 ``msg`` field contains syntax error message.
31-
111 ``module`` field indicates that assignment is to a non-module global variable.
32-
122 ``indirect`` field indicates that the global was mutated using a local alias.
33-
211 ``func`` field indicates that unused variable is a function.
34-
211 ``recursive`` field indicates that unused function is recursive.
35-
211 ``mutually_recursive`` field is set for unused mutually recursive functions.
36-
314 ``field`` field contains string representation of ununsed field or index.
37-
4.. ``prev_line`` and ``prev_column`` fields contain location of the overwritten definition.
38-
521 ``label`` field contains label name.
39-
631 ``max_length`` field contains maximum allowed line length.
40-
===== ========================================================================================
27+
============= ========================================================================================
28+
Codes Additional fields
29+
============= ========================================================================================
30+
011 ``msg`` field contains syntax error message.
31+
111 ``module`` field indicates that assignment is to a non-module global variable.
32+
122, 142, 143 ``indirect`` field indicates that the global field was accessed using a local alias.
33+
122, 142, 143 ``field`` field contains string representation of related global field.
34+
211 ``func`` field indicates that unused variable is a function.
35+
211 ``recursive`` field indicates that unused function is recursive.
36+
211 ``mutually_recursive`` field is set for unused mutually recursive functions.
37+
314 ``field`` field contains string representation of ununsed field or index.
38+
4.. ``prev_line`` and ``prev_column`` fields contain location of the overwritten definition.
39+
521 ``label`` field contains label name.
40+
631 ``max_length`` field contains maximum allowed line length.
41+
============= ========================================================================================
4142

4243
Other fields may be present for internal reasons.

0 commit comments

Comments
 (0)