diff options
author | Martin Mathieson <martin.r.mathieson@googlemail.com> | 2021-08-23 09:23:00 +0100 |
---|---|---|
committer | Martin Mathieson <martin.r.mathieson@googlemail.com> | 2021-08-23 08:32:56 +0000 |
commit | d3b016a365bde62b42679b47b4c820ee3580fcc5 (patch) | |
tree | 3576ef6e257a927da8f2d1e5beccb214c9ac6ea7 /tools | |
parent | d3392ffb554e203844673dafb6a40affd54d5d16 (diff) |
Remove trailing colons from item label names
This is a new check added to check_typed_item_calls.py --label
Ignoring cases where item type is FT_NONE, as fpr tjpse
text was appended that otherwise would lack a colon.
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/check_typed_item_calls.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/check_typed_item_calls.py b/tools/check_typed_item_calls.py index dd538074df..778bc4d86c 100755 --- a/tools/check_typed_item_calls.py +++ b/tools/check_typed_item_calls.py @@ -242,6 +242,8 @@ class Item: label.count('[') != label.count(']') or label.count('{') != label.count('}')): print('Warning: ' + filename + ': - filter "' + filter + '" label', '"' + label + '"', 'has unbalanced parens/braces/brackets') + if item_type != 'FT_NONE' and label.endswith(':'): + print('Warning: ' + filename + ': - filter "' + filter + '" label', '"' + label + '"', 'ends with an unnecessary colon') self.item_type = item_type self.type_modifier = type_modifier |