Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
unavailable_system_classes
rule (lyft#34)
This adds the `unavailable_system_classes` rule. This ensures that a given tag (i.e. `<button>`, `<viewController>`, etc.) has one of the specified custom classes. With the following configuration: ```json { "rules": [ "unavailable_system_classes" ], "rules_config": { "unavailable_system_classes": { "system_classes": { "navigationController": ["CoreUI.NavigationController"] } } } ``` This has the following redacted output on the Lyft project: ``` Car.storyboard:248: error: E8E-bb-ZGv: `<navigationController>` must use `CoreUI.NavigationController` instead of `LyftUI.NavigationController`. [rule: strict_customization] Map.storyboard:658: error: TXt-Ri-g2P: `<navigationController>` must use `CoreUI.NavigationController` instead of `LyftUI.NavigationController`. [rule: strict_customization] Passenger.storyboard:372: error: 9wW-6l-rv8: `<navigationController>` without a custom class is prohibited. Use `CoreUI.NavigationController` instead. [rule: strict_customization] Driver.storyboard:1336: error: Zpe-RA-erm: `<navigationController>` must use `CoreUI.NavigationController` instead of `LyftUI.NavigationController`. [rule: strict_customization] ```
- Loading branch information