mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
We are using enumerate to get line numbers, so we need to add 1 since it is 0 offset
This commit is contained in:
@@ -175,7 +175,7 @@ class ModuleValidator(Validator):
|
||||
if '\t' in i:
|
||||
index = line.index(i)
|
||||
self.errors.append('indentation contains tabs. line %d '
|
||||
'column %d' % (line_no, index))
|
||||
'column %d' % (line_no + 1, index))
|
||||
|
||||
def _find_json_import(self):
|
||||
for child in self.ast.body:
|
||||
|
||||
Reference in New Issue
Block a user