Files
SwiftLint/Source/SwiftLintBuiltInRules/Rules/RuleConfigurations/CyclomaticComplexityConfiguration.swift
T
2024-07-23 20:14:29 +02:00

17 lines
489 B
Swift

import SourceKittenFramework
import SwiftLintCore
@AutoConfigParser
struct CyclomaticComplexityConfiguration: RuleConfiguration {
typealias Parent = CyclomaticComplexityRule
@ConfigurationElement(inline: true)
private(set) var length = SeverityLevelsConfiguration<Parent>(warning: 10, error: 20)
@ConfigurationElement(key: "ignores_case_statements")
private(set) var ignoresCaseStatements = false
var params: [RuleParameter<Int>] {
length.params
}
}