Skip to content

Commit af66750

Browse files
Remove tag_name redefinition from "enforce_system_properties" rule (#59)
1 parent 196af75 commit af66750

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

xiblint/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '0.9.15'
1+
__version__ = '0.9.16'

xiblint/rules/enforce_system_properties.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ class EnforceSystemProperties(Rule):
1414
},
1515
"button": {
1616
"reversesTitleShadowWhenHighlighted": [null, "NO"]
17+
},
18+
"stackView/color": {
19+
"key": [null]
1720
}
1821
}
1922
}
@@ -23,7 +26,6 @@ def check(self, context): # type: (XibContext) -> None
2326

2427
for tag_name in system_properties.keys():
2528
for element in context.tree.findall('.//{}'.format(tag_name)):
26-
tag_name = element.tag
2729
enforced_properties = system_properties.get(tag_name)
2830
for property_name in enforced_properties.keys():
2931
property_allowed_values = enforced_properties.get(property_name)

0 commit comments

Comments
 (0)