MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / summary

Method summary

atomic-audit/src/structural.rs:72–91  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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.

Callers 1

inspectFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected