Package modulecheck.finding

Types

Link copied to clipboard
data class CouldUseAnvilFinding(    val findingName: FindingName,     val dependentProject: McProject,     val buildFile: File) : Finding, Fixable
Link copied to clipboard
data class InheritedDependencyFinding(    val findingName: FindingName,     val dependentProject: McProject,     val newDependency: ProjectDependency,     val source: ProjectDependency) : AbstractProjectDependencyFinding, AddsDependency, Comparable<InheritedDependencyFinding>
Link copied to clipboard
data class MustBeApiFinding(    val findingName: FindingName,     val dependentProject: McProject,     val newDependency: ProjectDependency,     val oldDependency: ProjectDependency,     val configurationName: ConfigurationName,     val source: ProjectDependency?) : AbstractProjectDependencyFinding, ModifiesProjectDependency, AddsDependency, RemovesDependency
Link copied to clipboard
data class OverShotDependency(    val dependentProject: McProject,     val newDependency: ConfiguredDependency,     val oldDependency: ConfiguredDependency)

Represents a ConfiguredDependency which is unused in the SourceSet to which it's added, but is used in another source set downstream. For instance, a dependency is overshot if it's added to main, but only used in test.

Link copied to clipboard
data class OverShotDependencyFinding(    val dependentProject: McProject,     val newDependency: ConfiguredDependency,     val oldDependency: ConfiguredDependency) : AbstractProjectDependencyFinding, AddsDependency
Link copied to clipboard
data class RedundantDependency(    val dependentProject: McProject,     val dependency: ProjectDependency,     val configurationName: ConfigurationName,     val from: List<ProjectDependency>)
Link copied to clipboard
data class RedundantDependencyFinding(    val findingName: FindingName,     val dependentProject: McProject,     val oldDependency: ProjectDependency,     val configurationName: ConfigurationName,     val from: List<ProjectDependency>) : AbstractProjectDependencyFinding, RemovesDependency, Deletable
Link copied to clipboard
class SortDependenciesFinding(    val dependentProject: McProject,     val dependentPath: ProjectPath.StringProjectPath,     val buildFile: File,     val comparator: Comparator<String>) : Finding, Fixable
Link copied to clipboard
data class UnusedDependency(    val dependentProject: McProject,     val dependency: ConfiguredDependency,     val dependencyIdentifier: Identifier,     val configurationName: ConfigurationName)
Link copied to clipboard
data class UnusedDependencyFinding(    val findingName: FindingName,     val dependentProject: McProject,     val oldDependency: ConfiguredDependency,     val dependencyIdentifier: String,     val configurationName: ConfigurationName) : AbstractProjectDependencyFinding, RemovesDependency, Deletable
Link copied to clipboard
data class UnusedKaptProcessorFinding(    val findingName: FindingName,     val dependentProject: McProject,     val dependentPath: ProjectPath.StringProjectPath,     val buildFile: File,     val oldDependency: ConfiguredDependency,     val configurationName: ConfigurationName) : Finding, Problem, Fixable, DependencyFinding, ConfigurationFinding, RemovesDependency
Link copied to clipboard
data class UnusedPluginFinding(    val dependentProject: McProject,     val dependentPath: ProjectPath.StringProjectPath,     val buildFile: File,     val findingName: FindingName,     val pluginDefinition: PluginDefinition) : Finding, Problem, Fixable, Deletable

Functions

Link copied to clipboard
internal fun List<DependencyDeclaration>.grouped(comparator: Comparator<String>): List<List<DependencyDeclaration>>
Link copied to clipboard
internal fun DependenciesBlock.sortedDeclarations(comparator: Comparator<String>): String
Link copied to clipboard
fun sortedDependenciesFileText(    block: DependenciesBlock,     fileText: String,     comparator: Comparator<String>): String