mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-26 02:09:00 +00:00
design-lint: drop the exception entries the component-constant rule leaves stale
This commit is contained in:
@@ -7,11 +7,3 @@ rule = "raw-colour/const"
|
||||
path = "crates/draw/src/ui/artboard/stories.rs"
|
||||
reason = "The artboard background is document data in a story, not a UI colour."
|
||||
count = 2
|
||||
|
||||
[[exception]]
|
||||
name = "convert-point-cursor-tip"
|
||||
kind = "marker"
|
||||
rule = "literal-size/vec2"
|
||||
path = "crates/draw/src/ui/pen/anchor_tool.rs"
|
||||
reason = "The cursor art's hot spot offset is in icon units, not a layout size."
|
||||
count = 1
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
config_version = 1
|
||||
|
||||
[[exception]]
|
||||
name = "page-rulers-story-strip"
|
||||
kind = "marker"
|
||||
rule = "literal-size/vec2"
|
||||
path = "crates/pages/src/ui/page_rulers/stories.rs"
|
||||
reason = "The strip is the demo page margin in document points, story data."
|
||||
count = 1
|
||||
@@ -6,7 +6,7 @@ kind = "marker"
|
||||
rule = "literal-size/vec2"
|
||||
path = "crates/print/src/ui/dialog.rs"
|
||||
reason = "Printer's marks are page geometry in points, not UI sizes."
|
||||
count = 4
|
||||
count = 2
|
||||
|
||||
[[exception]]
|
||||
name = "print-story-page-sizes"
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
config_version = 1
|
||||
|
||||
[[exception]]
|
||||
name = "view-fit-margins"
|
||||
kind = "marker"
|
||||
rule = "literal-size/vec2"
|
||||
path = "crates/ui-canvas/src/canvas/tools.rs"
|
||||
reason = "The room a view fit leaves around the document is in screen points, not a look."
|
||||
count = 2
|
||||
@@ -6,7 +6,7 @@ kind = "marker"
|
||||
rule = "literal-size/vec2"
|
||||
path = "crates/ui-contract/src/primitives/pointer_art.rs"
|
||||
reason = "Painted pointers are drawn in points around the hotspot like an OS cursor bitmap; their sides are art data, not layout sizes."
|
||||
count = 2
|
||||
count = 1
|
||||
|
||||
[[exception]]
|
||||
name = "icon-fixed-layer-tint"
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
config_version = 1
|
||||
|
||||
[[exception]]
|
||||
name = "preferences-window-sizes"
|
||||
kind = "marker"
|
||||
rule = "literal-size/vec2"
|
||||
path = "crates/ui-patterns/src/patterns/preferences/window.rs"
|
||||
reason = "The window opens at and shrinks to sizes of its own, in points."
|
||||
count = 2
|
||||
Reference in New Issue
Block a user