File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -104,6 +104,7 @@ RST213 Inline emphasis start-string without end-string.
104104RST214 Inline literal start-string without end-string.
105105RST215 Inline interpreted text or phrase reference start-string without end-string.
106106RST216 Multiple roles in interpreted text (both prefix and suffix present; only one allowed).
107+ RST217 Mismatch: both interpreted text role suffix and reference suffix.
107108RST299 Previously unseen warning, not yet assigned a unique code.
108109====== =======================================================================
109110
@@ -217,7 +218,7 @@ Version History
217218======= ========== ===========================================================
218219Version Released Changes
219220------- ---------- -----------------------------------------------------------
220- v0.0.12 2019-11-18 - Adds ``RST213 ``, `` RST214 ``, ``RST215 `` and `` RST216 ``.
221+ v0.0.12 2019-11-18 - Adds ``RST213 `` to ``RST217 ``.
221222v0.0.11 2019-08-07 - Configuration options to define additional directives and
222223 roles (e.g. from Sphinx) for ``RST303 `` and ``RST304 ``.
223224v0.0.10 2019-06-17 - Fixed flake8 "builtins" parameter warning (contribution
Original file line number Diff line number Diff line change @@ -175,6 +175,7 @@ def tokenize_open(filename):
175175 "Inline literal start-string without end-string." : 14 ,
176176 "Inline interpreted text or phrase reference start-string without end-string." : 15 ,
177177 "Multiple roles in interpreted text (both prefix and suffix present; only one allowed)." : 16 ,
178+ "Mismatch: both interpreted text role suffix and reference suffix." : 17 ,
178179}
179180
180181# Level 3 - error
Original file line number Diff line number Diff line change 1+ """Print 'Hello world' to the terminal.
2+
3+ RST uses single backticks or back-quotes for various things including
4+ interpreted text roles and references.
5+
6+ Without a semi-colon prefix or suffix, `example` has the default role.
7+ A prefix like :code:`example` or a suffix like `example`:math: is allowed.
8+
9+ However, trailing underscores have special meaning for referencing, thus
10+ `code`:example:_ is considered to be an error:
11+
12+ $ flake8 --select RST RST217/roles.py
13+ RST217/roles.py:10:1: RST17 Mismatch: both interpreted text role suffix and reference suffix.
14+
15+ """
16+
17+ print ("Hello world" )
You can’t perform that action at this time.
0 commit comments