Skip to content

Commit b1af987

Browse files
bskinnpeterjc
authored andcommitted
Add codes and README doc for 212, 305, 306
Closes #9 and closes #10. Defines - `RST305`: Undefined substitution referenced: "XXX". - `RST306`: Unknown target name: "XXX". Also defines a new 200-level code: - `RST212`: Title underline too short. Updates README.rst to reflect these.
1 parent b1b0d81 commit b1af987

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

README.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ RST207 Literal block ends without a blank line; unexpected unindent.
9999
RST208 Option list ends without a blank line; unexpected unindent.
100100
RST210 Inline strong start-string without end-string.
101101
RST211 Blank line required after table.
102+
RST212 Title underline too short.
102103
RST299 Previously unseen warning, not yet assigned a unique code.
103104
====== =======================================================================
104105

@@ -111,6 +112,8 @@ RST301 Unexpected indentation.
111112
RST302 Malformed table.
112113
RST303 Unknown directive type "XXX".
113114
RST304 Unknown interpreted text role "XXX".
115+
RST305 Undefined substitution referenced: "XXX".
116+
RST306 Unknown target name: "XXX".
114117
RST399 Previously unseen major error, not yet assigned a unique code.
115118
====== =======================================================================
116119

flake8_rst_docstrings.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ def tokenize_open(filename):
170170
# Other:
171171
"Inline strong start-string without end-string.": 10,
172172
"Blank line required after table.": 11,
173+
"Title underline too short.": 12,
173174
}
174175

175176
# Level 3 - error
@@ -180,6 +181,10 @@ def tokenize_open(filename):
180181
"Unknown directive type": 3,
181182
# e.g. Unknown interpreted text role "need".
182183
"Unknown interpreted text role": 4,
184+
# e.g. Undefined substitution referenced: "dict".
185+
"Undefined substitution referenced:": 5,
186+
# e.g. Unknown target name: "license_txt".
187+
"Unknown target name:": 6,
183188
}
184189

185190
# Level 4 - severe

0 commit comments

Comments
 (0)