Files
SwiftLint/Source/SwiftLintBuiltInRules/Rules/RuleConfigurations/CyclomaticComplexityConfiguration.swift
T

17 lines
475 B
Swift

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