Skip to content

Commit

Permalink
Merge pull request #191 from gw-kit/make-include-filter-primary
Browse files Browse the repository at this point in the history
Make include filter primary
  • Loading branch information
SurpSG authored Dec 15, 2024
2 parents 43cd316 + 212b30b commit a5aec47
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 22 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ configure<io.github.surpsg.deltacoverage.gradle.DeltaCoverageConfiguration> {
coverageBinaryFiles = files("/path/to/jacoco/exec/file.exec")

// Optional. Specifies classes to include for the analysis.
// If set then excludeClasses patterns are ignored.
matchClasses.value(
listOf("**/com/*/classes/to/include/Class*")
)
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,11 @@ internal fun interface SourceFilter {
} else {
NOOP_FILTER
}
return CompositeFilter(
listOf(
AntSourceExcludeFilter(config.excludeClasses.get()),
includeFilter,
)
)
return if (includeFilter == NOOP_FILTER) {
AntSourceExcludeFilter(config.excludeClasses.get())
} else {
includeFilter
}
}
}

Expand Down

0 comments on commit a5aec47

Please sign in to comment.