SortPluginsFinding

class SortPluginsFinding(val dependentProject: McProject, val dependentPath: ProjectPath.StringProjectPath, val buildFile: File, val comparator: Comparator<PluginDeclaration>) : Finding, Fixable(source)

A Finding implementation that represents a finding where plugin declarations are not sorted according to the defined pattern.

Constructors

Link copied to clipboard
constructor(dependentProject: McProject, dependentPath: ProjectPath.StringProjectPath, buildFile: File, comparator: Comparator<PluginDeclaration>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val buildFile: File

the build file where the finding was detected

Link copied to clipboard

the comparator used to sort plugin declarations

Link copied to clipboard
open override val dependencyIdentifier: String
Link copied to clipboard

the path of the dependent project

Link copied to clipboard
open override val dependentProject: McProject

the dependent project where the finding was detected

Link copied to clipboard
open override val findingName: FindingName
Link copied to clipboard
Link copied to clipboard
open override val message: String

Returns the message associated with this finding.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open suspend override fun fix(removalStrategy: RemovesDependency.RemovalStrategy): Boolean

Fixes the finding by sorting the plugin declarations according to the defined pattern.

Link copied to clipboard
open fun fixLabel(): String
Link copied to clipboard
abstract suspend fun toResult(fixed: Boolean): Finding.FindingResult