ThresholdedCodeSmell

open class ThresholdedCodeSmell(val issue: Issue, val entity: Entity, val metric: Metric, val message: String, val references: List<Entity> = emptyList()) : CodeSmell

Represents a code smell for which a specific metric can be determined which is responsible for the existence of this rule violation.

See also

Constructors

Link copied to clipboard
constructor(issue: Issue, entity: Entity, metric: Metric, message: String, references: List<Entity> = emptyList())

Functions

Link copied to clipboard
open override fun compact(): String

Contract to format implementing object to a string representation.

Link copied to clipboard
open override fun compactWithSignature(): String

Same as compact except the content should contain a substring which represents this exact findings via a custom identifier.

Link copied to clipboard
open override fun messageOrDescription(): String

Explanation why this finding was raised.

Link copied to clipboard
open fun metricByType(type: String): Metric?

Finds the first metric matching given type.

Link copied to clipboard
open override fun toString(): String

Properties

Link copied to clipboard
Link copied to clipboard
open override val entity: Entity
Link copied to clipboard
open val file: String
Link copied to clipboard
open override val id: String
Link copied to clipboard
override val issue: Issue
Link copied to clipboard
open val location: Location
Link copied to clipboard
open override val message: String
Link copied to clipboard
Link copied to clipboard
open override val metrics: List<Metric>
Link copied to clipboard
open override val references: List<Entity>
Link copied to clipboard
open override val severity: SeverityLevel
Link copied to clipboard
open val signature: String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val value: Int