Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove tag_name redefinition from "enforce_system_properties" rule #59

Merged
merged 2 commits into from
Sep 9, 2020

Conversation

gabriellanata
Copy link
Contributor

@gabriellanata gabriellanata commented Sep 9, 2020

This was included by mistake and is unnecessary for current uses because the element's tag will equivalent to the original tag_name that was used for the search. By removing it we can now use nested types in the element search.

I added an example of enforcing properties for a stackView's color. This triggers on the following code:

<stackView opaque="NO" contentMode="scaleToFill" id="zvX-8E-dZy">
    <color key="backgroundColor" name="My Custom Color"/>
    [...]
</stackView>

This was included by mistake and is unnecessary for current uses as the element's tag will the equivalent to the original tag_name that was used for the search. However, by removing it we can now use nested types.

I added an example of enforcing properties for a stackView's color. This triggers on the following example:
```
<stackView opaque="NO" contentMode="scaleToFill" id="zvX-8E-dZy">
    <color key="backgroundColor" name="+ Background Primary"/>
    [...]
</stackView>
```
@gabriellanata
Copy link
Contributor Author

cc @keith

@keith keith merged commit af66750 into lyft:master Sep 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants