Skip to content

Commit

Permalink
Format Java source files automatically (#46745)
Browse files Browse the repository at this point in the history
This commit adds a Java source formatter and checker into the build process.
This is not yet enabled for any sub-projects - to format and check a
sub-project, add its Gradle path into `build.gradle` and run:

    ./gradlew spotlessApply

to format, and:

    ./gradlew spotlessJavaCheck
    # or:
    ./gradlew precommit

to verify formatting.
  • Loading branch information
pugnascotia authored and alpar-t committed Sep 30, 2019
1 parent d229e15 commit 1c7dc3a
Show file tree
Hide file tree
Showing 4 changed files with 450 additions and 10 deletions.
Loading

0 comments on commit 1c7dc3a

Please sign in to comment.