Commit 75eb5d0
authored
feature: specify the color property (e.g. textColor, tintColor) that is causing the named_colors warning. (#65)
Added the specific color property that is causing the warning in the error message.
```
Use of custom textColors is not allowed. Use a named color instead. [rule: named_colors]
Use of custom tintColors is not allowed. Use a named color instead. [rule: named_colors]
Use of custom backgroundColors is not allowed. Use a named color instead. [rule: named_colors]
"foo" is not one of the allowed backgroundColors: `bar`,`baz`. [rule: named_colors]
```
This way when the developer uses the `object_id` to find the problematic object, they don't need to look at the xml to know which color property (e.g backgroundColor, textColor, tintColor) to modify.1 parent 8427efc commit 75eb5d0
1 file changed
+10
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
45 | 47 | | |
46 | 48 | | |
47 | 49 | | |
48 | 50 | | |
49 | 51 | | |
50 | 52 | | |
51 | 53 | | |
52 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
53 | 57 | | |
54 | 58 | | |
55 | 59 | | |
56 | 60 | | |
57 | 61 | | |
58 | | - | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
59 | 65 | | |
60 | 66 | | |
61 | 67 | | |
62 | 68 | | |
63 | 69 | | |
64 | | - | |
65 | | - | |
| 70 | + | |
| 71 | + | |
0 commit comments