Skip to content

Commit

Permalink
Add for tests and testframework as well
Browse files Browse the repository at this point in the history
  • Loading branch information
Technici4n committed Dec 14, 2023
1 parent 6db6602 commit 9a2d5b4
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
11 changes: 10 additions & 1 deletion testframework/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,14 @@ spotless {
toggleOffOn()
eclipse().configFile rootProject.file('codeformat/formatter-config.xml')
importOrder()

// courtesy of diffplug/spotless#240
// https://github.com/diffplug/spotless/issues/240#issuecomment-385206606
custom 'noWildcardImports', { String fileContents ->
if (fileContents.contains('*;\n')) {
throw new GradleException('No wildcard imports are allowed!')
}
}
bumpThisNumberIfACustomStepChanges(1)
}
}
}
9 changes: 9 additions & 0 deletions tests/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -113,5 +113,14 @@ spotless {
toggleOffOn()
eclipse().configFile rootProject.file('codeformat/formatter-config.xml')
importOrder()

// courtesy of diffplug/spotless#240
// https://github.com/diffplug/spotless/issues/240#issuecomment-385206606
custom 'noWildcardImports', { String fileContents ->
if (fileContents.contains('*;\n')) {
throw new GradleException('No wildcard imports are allowed!')
}
}
bumpThisNumberIfACustomStepChanges(1)
}
}

0 comments on commit 9a2d5b4

Please sign in to comment.