|
34 | 34 | ]
|
35 | 35 | ERROR_MSGS = {
|
36 | 36 | "GL01": "Docstring text (summary) should start in the line immediately "
|
37 |
| - "after the opening quotes (not in the same line, or leaving a " |
38 |
| - "blank line in between)", |
| 37 | + "after the opening quotes (not in the same line, or leaving a " |
| 38 | + "blank line in between)", |
39 | 39 | "GL02": "Closing quotes should be placed in the line after the last text "
|
40 |
| - "in the docstring (do not close the quotes in the same line as " |
41 |
| - "the text, or leave a blank line between the last text and the " |
42 |
| - "quotes)", |
| 40 | + "in the docstring (do not close the quotes in the same line as " |
| 41 | + "the text, or leave a blank line between the last text and the " |
| 42 | + "quotes)", |
43 | 43 | "GL03": "Double line break found; please use only one blank line to "
|
44 |
| - "separate sections or paragraphs, and do not leave blank lines " |
45 |
| - "at the end of docstrings", |
| 44 | + "separate sections or paragraphs, and do not leave blank lines " |
| 45 | + "at the end of docstrings", |
46 | 46 | "GL05": 'Tabs found at the start of line "{line_with_tabs}", please use '
|
47 |
| - "whitespace only", |
| 47 | + "whitespace only", |
48 | 48 | "GL06": 'Found unknown section "{section}". Allowed sections are: '
|
49 |
| - "{allowed_sections}", |
| 49 | + "{allowed_sections}", |
50 | 50 | "GL07": "Sections are in the wrong order. Correct order is: {correct_sections}",
|
51 | 51 | "GL08": "The object does not have a docstring",
|
52 | 52 | "GL09": "Deprecation warning should precede extended summary",
|
53 | 53 | "GL10": "reST directives {directives} must be followed by two colons",
|
54 | 54 | "SS01": "No summary found (a short summary in a single line should be "
|
55 |
| - "present at the beginning of the docstring)", |
| 55 | + "present at the beginning of the docstring)", |
56 | 56 | "SS02": "Summary does not start with a capital letter",
|
57 | 57 | "SS03": "Summary does not end with a period",
|
58 | 58 | "SS04": "Summary contains heading whitespaces",
|
59 | 59 | "SS05": "Summary must start with infinitive verb, not third person "
|
60 |
| - '(e.g. use "Generate" instead of "Generates")', |
| 60 | + '(e.g. use "Generate" instead of "Generates")', |
61 | 61 | "SS06": "Summary should fit in a single line",
|
62 | 62 | "ES01": "No extended summary found",
|
63 | 63 | "PR01": "Parameters {missing_params} not documented",
|
64 | 64 | "PR02": "Unknown parameters {unknown_params}",
|
65 | 65 | "PR03": "Wrong parameters order. Actual: {actual_params}. "
|
66 |
| - "Documented: {documented_params}", |
| 66 | + "Documented: {documented_params}", |
67 | 67 | "PR04": 'Parameter "{param_name}" has no type',
|
68 | 68 | "PR05": 'Parameter "{param_name}" type should not finish with "."',
|
69 | 69 | "PR06": 'Parameter "{param_name}" type should use "{right_type}" instead '
|
70 |
| - 'of "{wrong_type}"', |
| 70 | + 'of "{wrong_type}"', |
71 | 71 | "PR07": 'Parameter "{param_name}" has no description',
|
72 | 72 | "PR08": 'Parameter "{param_name}" description should start with a '
|
73 |
| - "capital letter", |
| 73 | + "capital letter", |
74 | 74 | "PR09": 'Parameter "{param_name}" description should finish with "."',
|
75 | 75 | "PR10": 'Parameter "{param_name}" requires a space before the colon '
|
76 |
| - "separating the parameter name and type", |
| 76 | + "separating the parameter name and type", |
77 | 77 | "RT01": "No Returns section found",
|
78 | 78 | "RT02": "The first line of the Returns section should contain only the "
|
79 |
| - "type, unless multiple values are being returned", |
| 79 | + "type, unless multiple values are being returned", |
80 | 80 | "RT03": "Return value has no description",
|
81 | 81 | "RT04": "Return value description should start with a capital letter",
|
82 | 82 | "RT05": 'Return value description should finish with "."',
|
83 | 83 | "YD01": "No Yields section found",
|
84 | 84 | "SA01": "See Also section not found",
|
85 | 85 | "SA02": "Missing period at end of description for See Also "
|
86 |
| - '"{reference_name}" reference', |
| 86 | + '"{reference_name}" reference', |
87 | 87 | "SA03": "Description should be capitalized for See Also "
|
88 |
| - '"{reference_name}" reference', |
| 88 | + '"{reference_name}" reference', |
89 | 89 | "SA04": 'Missing description for See Also "{reference_name}" reference',
|
90 | 90 | "EX01": "No examples section found",
|
91 | 91 | }
|
|
0 commit comments