safe_migrate/report/violations.rs
1// FILE: ./src/report/violations.rs
2
3#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord)]
4pub enum ViolationTier {
5 Tier3, // Silent pass / Information
6 Tier2, // Warning, Share Row Exclusive
7 Tier1, // Halts build, Access Exclusive
8}
9
10#[derive(Debug, Clone)]
11pub struct Violation {
12 pub rule_id: &'static str,
13 pub title: String,
14 pub tier: ViolationTier,
15 pub recipe: &'static str,
16 pub dedup_key: Option<String>,
17}