CorrectableCodeSmell

open class CorrectableCodeSmell(val issue: Issue, val entity: Entity, val message: String, val metrics: List<Metric> = emptyList(), val references: List<Entity> = emptyList(), val autoCorrectEnabled: Boolean) : CodeSmell

Represents a code smell for that can be auto corrected.

See also

Constructors

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

Properties

Link copied to clipboard
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
open override val metrics: List<Metric>
Link copied to clipboard
open override val references: List<Entity>
Link copied to clipboard
open override val severity: Severity
Link copied to clipboard
open val signature: String
Link copied to clipboard

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