MetricsThresholds class

Metrics thresholds for rule integration.

Constructors

MetricsThresholds({int cyclomaticComplexity = 20, int cognitiveComplexity = 15, int sourceLinesOfCode = 50, int maintainabilityIndex = 50, int maximumNesting = 5, int numberOfParameters = 4, int numberOfMethods = 20, int halsteadVolume = 150})
const
MetricsThresholds.fromMap(Map<String, dynamic> map)
Creates from a map.
factory

Properties

cognitiveComplexity int
Maximum cognitive complexity.
final
cyclomaticComplexity int
Maximum cyclomatic complexity.
final
halsteadVolume int
Maximum Halstead volume.
final
hashCode int
The hash code for this object.
no setterinherited
maintainabilityIndex int
Minimum maintainability index.
final
maximumNesting int
Maximum nesting level.
final
numberOfMethods int
Maximum number of methods per class.
final
numberOfParameters int
Maximum number of parameters.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sourceLinesOfCode int
Maximum source lines of code per function.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, int>
Converts to map for serialization.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited