FindingFactoryImpl

class FindingFactoryImpl @Inject constructor(val rules: DaggerList<ModuleCheckRule<*>>) : FindingFactory<Finding> , HasTraceTags(source)

Sorts rules and applies the appropriate types for each function. Sorting is stable and prioritizes modification rules so that they don't clobber each other.

NB The incoming rules should already be filtered using RuleFilter. The filtering done within this class should only be done with regard to categorizing rules up by fixable/sorts/reports categories.

Since

0.12.0

Constructors

Link copied to clipboard
@Inject
constructor(rules: DaggerList<ModuleCheckRule<*>>)

Properties

Link copied to clipboard
Link copied to clipboard
open override val tags: Iterable<Any>

Functions

Link copied to clipboard
private suspend fun evaluate(projects: List<McProject>, predicate: (ModuleCheckRule<*>) -> Boolean): List<Finding>
Link copied to clipboard
open suspend override fun evaluateFixable(projects: List<McProject>): List<Finding>
Link copied to clipboard
open suspend override fun evaluateReports(projects: List<McProject>): List<Finding>
Link copied to clipboard
open suspend override fun evaluateSorts(projects: List<McProject>): List<Finding>
Link copied to clipboard