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

Method id

atomic-audit/src/metrics.rs:71–84  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

69 ];
70
71 pub fn id(self) -> &'static str {
72 match self {
73 Self::MethodLength => "metric.method-length",
74 Self::ClassLength => "metric.class-length",
75 Self::MethodCount => "metric.method-count",
76 Self::ParameterCount => "metric.parameter-count",
77 Self::NestingDepth => "metric.nesting-depth",
78 Self::CyclomaticComplexity => "metric.cyclomatic-complexity",
79 Self::ClassComplexity => "metric.class-complexity",
80 Self::DependencyFanOut => "metric.dependency-fan-out",
81 Self::PublicSurface => "metric.public-surface",
82 Self::DuplicatedTokens => "metric.duplicated-tokens",
83 }
84 }
85}
86
87#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]

Callers 15

projection_journaledFunction · 0.45
parseFunction · 0.45
is_else_ifFunction · 0.45
control_flowFunction · 0.45
cpp_accessFunction · 0.45
code_linesFunction · 0.45
forwarding_wrapperFunction · 0.45
guard_across_awaitFunction · 0.45
possible_movesFunction · 0.45
inspectFunction · 0.45
tokensFunction · 0.45

Calls

no outgoing calls