mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-08 19:13:25 -08:00
[Icons] Add an icon asset ratchet test
The icon rules were enforced by review only, so the next Inkscape export could reintroduce a baked fill or a physical size without anyone noticing. Add a test that rejects non-24 viewBoxes, physical sizes, editor metadata, hardcoded paints, missing tokens, color-coded filenames, and rasters. Keep the legacy baseline empty so the ratchet can only tighten.
This commit is contained in:
parent
550f1d908b
commit
06ad7a6d92
4 changed files with 306 additions and 0 deletions
9
tests/icon_assets/icon-baseline.txt
Normal file
9
tests/icon_assets/icon-baseline.txt
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
# Icon rule baseline (ratchet).
|
||||
#
|
||||
# One violation per line: <rule> <path relative to cockatrice/resources/icons>.
|
||||
# Rules: xml, viewbox, editor-metadata, hardcoded-color, color-filename, no-token, physical-size, raster.
|
||||
#
|
||||
# This file may only shrink. When an icon is fixed, delete its line(s) in the
|
||||
# same change; the test fails while a fixed entry remains. Never add new lines.
|
||||
#
|
||||
# The UI glyph set is fully migrated; this list is intentionally empty.
|
||||
Loading…
Add table
Add a link
Reference in a new issue