Skip to content

build: setup pre commit hook to check java format#28

Open
ChristianMurphy wants to merge 1 commit intoopenequella:masterfrom
ChristianMurphy:build/add-git-hooks
Open

build: setup pre commit hook to check java format#28
ChristianMurphy wants to merge 1 commit intoopenequella:masterfrom
ChristianMurphy:build/add-git-hooks

Conversation

@ChristianMurphy
Copy link
Copy Markdown
Member

  • updates gradle wrapper to latest version to enable ghooks to be used.
  • enables ghooks plugin for gradle
  • adds google java format pre commit hook
  • adds test check file output to gitignore

resolves #25

* updates gradle wrapper to latest version to enable ghooks to be used.
* enables ghooks plugin for gradle
* adds google java format pre commit hook
* adds test check file output to gitignore

resolves openequella#25
@ChristianMurphy ChristianMurphy requested a review from cbeach47 June 10, 2020 00:07
@ChristianMurphy
Copy link
Copy Markdown
Member Author

ChristianMurphy commented Jun 10, 2020

Also be aware, it appears some of the test suite is failing:
Screenshot_2020-06-09 Test results - Test Summary

edit probably related to the Gradle version update

@edalex-ian
Copy link
Copy Markdown
Member

May want to consider bringing in Checkstyle too for some static code analysis: https://docs.gradle.org/current/userguide/checkstyle_plugin.html

@ChristianMurphy
Copy link
Copy Markdown
Member Author

Thanks for the suggestion!
I added spotbugs over in #30, I'll make a note to look into checkstyle as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Setup pre-commit hook for google-java-format

2 participants