From b6126758a56a93a2c813ce8957e4f9327b708295 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Thu, 24 Jan 2019 16:14:16 +0100 Subject: [PATCH] fix wrong line number in ANSIBLE0004 rule --- CHANGELOG.md | 11 +++++++++++ ansiblelater/rules/ansiblefiles.py | 4 ++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e69de29..5b892b2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -0,0 +1,11 @@ + + +## 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 + diff --git a/ansiblelater/rules/ansiblefiles.py b/ansiblelater/rules/ansiblefiles.py index 38fb992..f566b52 100644 --- a/ansiblelater/rules/ansiblefiles.py +++ b/ansiblelater/rules/ansiblefiles.py @@ -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()