Closed charlie-abbott-deltatre closed 9 months ago
I think a good first pass at this would be to enforce all of your suggestions exclusively in xml files. (perhaps also for m.top.someColorField
assignments since those are pretty easy to detect)
Finding the correct locations in brs/bs/json files may be more difficult. For example, consider this code:
'this has nothing to do with colors
bitFlags = 0x00000001 and 0x00000003
Longer-term, when we can do proper type tracking, then we could start to enforce these things when assigning to component fields.
Opened a WIP PR https://github.com/rokucommunity/bslint/pull/94/files
I wonder if with your bitFlags
example, if it's possible to include exceptions, by line or example?
We can close this, @TwitchBronBron 😎
Sure! Closed by #89
Would be a good addition to have the ability to check if color formatting is consistent, as defined in XML, BRS, BS, JSON files.
#161616
or0x161616
0xDBDBDB
0x161616CC
0x161616FF
Could also check that the classic Roku cert requirement around broadcast safe colors is followed. - 6.4 the channel using only broadcast-safe colors