DebtType enum

Type of technical debt.

Inheritance
Available extensions

Values

todo → const DebtType

TODO comment indicating planned work.

const DebtType('TODO', DebtSeverity.medium)
fixme → const DebtType

FIXME comment indicating known issue.

const DebtType('FIXME', DebtSeverity.high)
ignoreComment → const DebtType

Single ignore comment suppressing a warning.

const DebtType('ignore comment', DebtSeverity.high)
ignoreForFile → const DebtType

File-level ignore suppressing warnings for entire file.

const DebtType('ignore_for_file', DebtSeverity.critical)
asDynamic → const DebtType

Cast to dynamic type.

const DebtType('as dynamic', DebtSeverity.high)
deprecated → const DebtType

Usage of deprecated API.

const DebtType('@deprecated', DebtSeverity.medium)
lowMaintainability → const DebtType

Function with low maintainability index (MI < 50).

const DebtType('low maintainability', DebtSeverity.high)
highComplexity → const DebtType

Function with high cyclomatic complexity (> threshold).

const DebtType('high complexity', DebtSeverity.medium)
longMethod → const DebtType

Function with too many lines of code.

const DebtType('long method', DebtSeverity.medium)
duplicateCode → const DebtType

Duplicate or similar code detected.

const DebtType('duplicate code', DebtSeverity.medium)

Properties

defaultSeverity DebtSeverity
Default severity for this debt type.
final
hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
label String
Human-readable label.
final
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
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

Constants

values → const List<DebtType>
A constant List of the values in this enum, in order of their declaration.