DiagnosticThresholds class

Configuration thresholds for diagnostic generation.

Constructors

DiagnosticThresholds({int cyclomaticComplexity = 20, int cognitiveComplexity = 15, double maintainabilityIndex = 50.0, int linesOfCode = 100, int parameters = 4})
const

Properties

cognitiveComplexity int
Maximum cognitive complexity before hint.
final
cyclomaticComplexity int
Maximum cyclomatic complexity before warning.
final
hashCode int
The hash code for this object.
no setterinherited
linesOfCode int
Maximum lines of code before info.
final
maintainabilityIndex double
Minimum maintainability index before warning.
final
parameters int
Maximum number of parameters before warning.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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