AnvilFactoryRule

class AnvilFactoryRule @Inject constructor : DocumentedRule<CouldUseAnvilFinding>

Constructors

Link copied to clipboard
@Inject
fun AnvilFactoryRule()

Functions

Link copied to clipboard
open suspend override fun check(project: McProject): List<CouldUseAnvilFinding>
Link copied to clipboard
suspend fun parse(findingName: FindingName, project: McProject): List<CouldUseAnvilFinding>
Link copied to clipboard
open override fun shouldApply(settings: ModuleCheckSettings): Boolean
Link copied to clipboard
open override fun toString(): String

Properties

Link copied to clipboard
private val anvilMergeComponent: Reference.ExplicitKotlinReference
Link copied to clipboard
private val daggerComponent: Reference.ExplicitKotlinReference
Link copied to clipboard
private val daggerInject: Reference.ExplicitKotlinReference
Link copied to clipboard
private val daggerModule: Reference.ExplicitKotlinReference
Link copied to clipboard
open override val description: String
Link copied to clipboard
override val documentationUrl: String

This should correspond to the finding name in snake_case. So a rule with a findingName.id of 'unused-dependency' would have a documentation url of <docs root>/rules/unused_dependency.

Link copied to clipboard
private val minimumAnvilVersion: SemVer
Link copied to clipboard
open override val name: FindingName

Sources

Link copied to clipboard