Skip to content

Commit

Permalink
enable spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
chikamura committed Oct 15, 2024
1 parent 189ec0b commit ce3dd22
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ jobs:
uses: actions/setup-java@v1
with:
java-version: 1.8
# - name: lint
# run: ./gradlew spotlessCheck
- name: lint
run: ./gradlew spotlessCheck
- name: Test
run: ./gradlew test --stacktrace --info
build:
Expand Down
9 changes: 9 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,12 @@ sourceSets.all {
attributes.attribute(Attribute.of("org.gradle.jvm.environment", String), "standard-jvm")
}
}

spotless {
java {
importOrder()
removeUnusedImports()
// googleJavaFormat()
toggleOffOn()
}
}

0 comments on commit ce3dd22

Please sign in to comment.