Skip to content

Commit

Permalink
Fixed line and column number parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
HenningTimm committed Mar 12, 2024
1 parent de1bd32 commit a48d561
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions yml2block/rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,8 @@ def keys_valid(list_item, tsv_keyword, level=Level.ERROR):
level,
"keys_valid",
f"Cannot check entry for invalid keyword '{tsv_keyword}'. Skipping entry.",
list_item[entry].line,
list_item[entry].column,
list_item.line,
list_item.column,
)
]

Expand All @@ -289,8 +289,8 @@ def keys_valid(list_item, tsv_keyword, level=Level.ERROR):
suggestions.fix_keys_valid(
key, list_item, tsv_keyword, permissible
),
list_item[entry].line,
list_item[entry].column,
value.line,
value.column,
)
)
return violations
Expand All @@ -310,8 +310,8 @@ def required_keys_present(list_item, tsv_keyword, level=Level.ERROR):
level,
"required_keys_present",
f"Cannot check entry for invalid keyword '{tsv_keyword}'. Skipping entry.",
list_item[entry].line,
list_item[entry].column,
list_item.line,
list_item.column,
)
]
# Assure all required keys are there
Expand All @@ -326,8 +326,8 @@ def required_keys_present(list_item, tsv_keyword, level=Level.ERROR):
suggestions.fix_required_keys_present(
missing_keys, list_item, tsv_keyword
),
list_item[entry].line,
list_item[entry].column,
list_item.line,
list_item.column,
)
]

Expand Down

0 comments on commit a48d561

Please sign in to comment.