fix wrong line number in ANSIBLE0004 rule

This commit is contained in:
Robert Kaussow 2019-01-24 16:14:16 +01:00
parent 1ec1dac888
commit b6126758a5
2 changed files with 13 additions and 2 deletions

View File

@ -0,0 +1,11 @@
<a name="v0.1.0"></a>
## v0.1.0 (2018-12-19)
### Drone
* fix version grep and switch to stretch images for test steps
* add missing build dependencies
* add missing build-base to alpine python images
* prepare pipeline to allow parallel python versions testing

View File

@ -21,9 +21,9 @@ def check_braces_spaces(candidate, settings):
match = braces.findall(line)
if match:
for item in match:
matches.append(item)
matches.append((item, lineno))
for item in matches:
for item, lineno in matches:
error_count = 0
string_length = len(item)
strip_length = item.rstrip()