Code Smell
open class CodeSmell(val issue: Issue, val entity: Entity, val message: String, val metrics: List<Metric> = emptyList(), val references: List<Entity> = emptyList()) : Finding
A code smell indicates any possible design problem inside a program's source code. The type of a code smell is described by an Issue.
If the design problem results from metric violations, a list of Metric's can describe further the kind of metrics.
If the design problem manifests by different source locations, references to these locations can be stored in additional Entity's.
Constructors
Functions
Link copied to clipboard
Same as compact except the content should contain a substring which represents this exact findings via a custom identifier.
Link copied to clipboard
Explanation why this finding was raised.
Link copied to clipboard
Finds the first metric matching given type.