eachProjectRule

Add new coverage verification rule to check in each non-skipped project.

When checking the rule, only the classes declared in the corresponding project will be analyzed.

The projectName and projectPath properties can be used to identify the project.

The specified action will be called for each non-skipped Gradle project, that is, it must be taken into account that it is performed several times.

eachProjectRule {
    if (projectPath != ":badly-covered-project") {
        // all other projects should be covered with 80%
        minBound(80)
    } else {
        // :badly-covered-project should be covered with 50%
        minBound(50)
    }
}