get_indexes_of_tokens_between appended the enumerate loop counter instead of the start-token index when a start token had no following end token. A block statement with the optional "is" keyword omitted (and no guard), in a file containing no other is/guard tokens, therefore made block_201 report a violation against the first token of the file (a leading comment) and --fix inserted a spurious blank line. Append the actual token index so the rule is evaluated against the block line. Adds a regression test. |
||
|---|---|---|
| .. | ||
| classify | ||
| extract | ||
| indent | ||
| __init__.py | ||
| code_tags.py | ||
| utils.py | ||
| vhdlFile.py | ||