Skip to content
This repository has been archived by the owner on Sep 26, 2019. It is now read-only.

Commit

Permalink
Limit spotless checks to java classes in expected java dirs (#1490)
Browse files Browse the repository at this point in the history
Sometimes build generated classes (like JMH) get caught up in IntelliJ's build dirs and the formatter doesn't like that. Change the spotless filter to only examine files in their expected dirs.
  • Loading branch information
Danno Ferrin authored May 24, 2019
1 parent 36b3250 commit 19edc4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ allprojects {
java {
// This path needs to be relative to each project
target fileTree('.') {
include '**/*.java'
include '**/src/*/java/**/*.java'
exclude '**/generalstate/GeneralStateReferenceTest*.java'
exclude '**/generalstate/GeneralStateRegressionReferenceTest*.java'
exclude '**/blockchain/BlockchainReferenceTest*.java'
Expand All @@ -128,7 +128,7 @@ allprojects {

// Below this line are currently only license header tasks
format 'groovy', {
target '**/*.groovy'
target '**/src/*/grovy/**/*.groovy'
licenseHeaderFile "${rootDir}/gradle/spotless.java.license", 'import'
}

Expand Down

0 comments on commit 19edc4f

Please sign in to comment.