Skip to content

Commit

Permalink
exclude getters setters and toString methids from coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
BenAlvo1 committed Jan 22, 2025
1 parent a57cafa commit 56ddeb7
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,21 @@ jacocoTestReport {
if (jacocoTask == "integration") {
afterEvaluate {
classDirectories.setFrom(files(classDirectories.files.collect {
fileTree(dir: it, include: 'com/checkmarx/intellij/commands/**')
fileTree(dir: it, include: 'com/checkmarx/intellij/commands/**', exclude: [
'**/get*.class', // Exclude getters
'**/set*.class', // Exclude setters
'**/toString*.class' // Exclude toString methods
])
}))
}
} else {
afterEvaluate {
classDirectories.setFrom(files(classDirectories.files.collect {
fileTree(dir: it, exclude: [
'**/get*.class', // Exclude getters
'**/set*.class', // Exclude setters
'**/toString*.class' // Exclude toString methods
])
}))
}
}
Expand All @@ -120,6 +134,7 @@ jacocoTestReport {
}



publishPlugin {
token.set System.getenv("PUBLISH_TOKEN")
if (project.hasProperty("rchannels")) {
Expand Down

0 comments on commit 56ddeb7

Please sign in to comment.