Package com.integrallis.mfcqi.gradle
Class MfcqiExtension
java.lang.Object
com.integrallis.mfcqi.gradle.MfcqiExtension
Configuration for the MFCQI Gradle plugin.
mfcqi {
source = layout.projectDirectory // what to analyze (default: project dir)
parallelism = 4 // metric workers (default: CPU count)
jsonReport = layout.buildDirectory.file("reports/mfcqi/mfcqi.json")
badgeFile = layout.projectDirectory.file(".github/badges/mfcqi.json")
failOnGate = true // fail the build when a quality gate fails
}
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract org.gradle.api.file.RegularFilePropertyBadge JSON destination.abstract org.gradle.api.provider.Property<Boolean> Use real SpotBugs+FindSecBugs bytecode SAST for the security metric (both Java and Kotlin) when compiled classes are available.abstract org.gradle.api.provider.Property<Boolean> WhethermfcqiGatefails the build on a gate failure.abstract org.gradle.api.file.RegularFilePropertyOptional explicit quality-gate config; otherwise.mfcqi.yamlis auto-discovered.abstract org.gradle.api.file.RegularFilePropertyOptional JSON report destination.abstract org.gradle.api.provider.Property<Integer> Number of metric workers.abstract org.gradle.api.file.DirectoryPropertySource root to analyze.
-
Constructor Details
-
MfcqiExtension
public MfcqiExtension()
-
-
Method Details
-
getSource
public abstract org.gradle.api.file.DirectoryProperty getSource()Source root to analyze. Defaults to the project directory. -
getParallelism
Number of metric workers. Defaults to the available processor count. -
getJsonReport
public abstract org.gradle.api.file.RegularFileProperty getJsonReport()Optional JSON report destination. -
getBadgeFile
public abstract org.gradle.api.file.RegularFileProperty getBadgeFile()Badge JSON destination. Defaults to.github/badges/mfcqi.json. -
getGateFile
public abstract org.gradle.api.file.RegularFileProperty getGateFile()Optional explicit quality-gate config; otherwise.mfcqi.yamlis auto-discovered. -
getFailOnGate
WhethermfcqiGatefails the build on a gate failure. Defaults totrue. -
getBytecodeSecurity
Use real SpotBugs+FindSecBugs bytecode SAST for the security metric (both Java and Kotlin) when compiled classes are available. Defaults totrue; falls back to source heuristics.
-