(self)
| 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)] |
no outgoing calls