| 70 | } |
| 71 | |
| 72 | pub fn summary(self) -> &'static str { |
| 73 | match self { |
| 74 | Self::Syntax => "Parser reports invalid or missing syntax", |
| 75 | Self::RustPlaceholder => "Placeholder macro requires review", |
| 76 | Self::EmptyCatch => "Empty catch may silently discard a failure", |
| 77 | Self::FailureMasking => "Failure path converts an observed error into apparent success", |
| 78 | Self::DuplicatedBehavior => "Conditional alternatives execute identical code", |
| 79 | Self::UnnecessaryMachinery => { |
| 80 | "Private wrapper forwards an unchanged contract without behavior" |
| 81 | } |
| 82 | Self::Manageability => { |
| 83 | "Function combines a long body with substantial branching or nesting" |
| 84 | } |
| 85 | Self::AsyncResourceSafety => { |
| 86 | "Async work violates an observed resource or completion contract" |
| 87 | } |
| 88 | Self::WeakVerification => "Test has empty or non-independent verification", |
| 89 | Self::UnsafeShortcuts => "Safety or verification bypass lacks a local justification", |
| 90 | } |
| 91 | } |
| 92 | |
| 93 | /// Exact implemented pattern coverage; completing these checks is not an |
| 94 | /// assertion that every concern in the broad audit card was proved absent. |