Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 27 additions & 27 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -56,33 +56,33 @@ Error codes

This plugin is using the following error codes:

+----------------------------------------------------------------------+
| Presence of implicit parameters |
+--------+-------------------------------------------------------------+
| FMT101 | format string does contain unindexed parameters |
+--------+-------------------------------------------------------------+
| FMT102 | docstring does contain unindexed parameters |
+--------+-------------------------------------------------------------+
| FMT103 | other string does contain unindexed parameters |
+--------+-------------------------------------------------------------+
| Missing values in the parameters |
+--------+-------------------------------------------------------------+
| FMT201 | format call uses too large index (INDEX) |
+--------+-------------------------------------------------------------+
| FMT202 | format call uses missing keyword (KEYWORD) |
+--------+-------------------------------------------------------------+
| FMT203 | format call uses keyword arguments but no named entries |
+--------+-------------------------------------------------------------+
| FMT204 | format call uses variable arguments but no numbered entries |
+--------+-------------------------------------------------------------+
| FMT205 | format call uses implicit and explicit indexes together |
+--------+-------------------------------------------------------------+
| Unused values in the parameters |
+--------+-------------------------------------------------------------+
| FMT301 | format call provides unused index (INDEX) |
+--------+-------------------------------------------------------------+
| FMT302 | format call provides unused keyword (KEYWORD) |
+--------+-------------------------------------------------------------+
+--------+---------------------------------------------------------------------+
| Presence of implicit parameters |
+--------+---------------------------------------------------------------------+
| FMT101 | format string contains unindexed parameters |
+--------+---------------------------------------------------------------------+
| FMT102 | docstring contains unindexed parameters |
+--------+---------------------------------------------------------------------+
| FMT103 | other string contains unindexed parameters |
+--------+---------------------------------------------------------------------+
| Missing values in the parameters |
+--------+---------------------------------------------------------------------+
| FMT201 | format call index too large (INDEX) |
+--------+---------------------------------------------------------------------+
| FMT202 | format call uses missing keyword (KEYWORD) |
+--------+---------------------------------------------------------------------+
| FMT203 | format call uses keyword arguments but there are no keyword entries |
+--------+---------------------------------------------------------------------+
| FMT204 | format call uses indexed arguments but there are no indexed entries |
+--------+---------------------------------------------------------------------+
| FMT205 | format call uses implicit and explicit indexes together |
+--------+---------------------------------------------------------------------+
| Unused values in the parameters |
+--------+---------------------------------------------------------------------+
| FMT301 | format call provides unused index (INDEX) |
+--------+---------------------------------------------------------------------+
| FMT302 | format call provides unused keyword (KEYWORD) |
+--------+---------------------------------------------------------------------+


Operation
Expand Down
12 changes: 6 additions & 6 deletions flake8_string_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,13 @@ class StringFormatChecker(object):
name = 'flake8-string-format'

ERRORS = {
101: 'format string does contain unindexed parameters',
102: 'docstring does contain unindexed parameters',
103: 'other string does contain unindexed parameters',
201: 'format call uses too large index ({idx})',
101: 'format string contains unindexed parameters',
102: 'docstring contains unindexed parameters',
103: 'other string contains unindexed parameters',
201: 'format call index too large ({idx})',
202: 'format call uses missing keyword ({kw})',
203: 'format call uses keyword arguments but no named entries',
204: 'format call uses variable arguments but no numbered entries',
203: 'format call uses keyword arguments but there are no keyword entries',
204: 'format call uses indexed arguments but there are no indexed entries',
205: 'format call uses implicit and explicit indexes together',
301: 'format call provides unused index ({idx})',
302: 'format call provides unused keyword ({kw})',
Expand Down