-
Notifications
You must be signed in to change notification settings - Fork 831
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tidy up Java #951
Tidy up Java #951
Conversation
/cc @axsaucedo @cliveseldon |
/cc @ryandawsonuk |
/uncc @jklaise |
Awesome! Nice one @adriangonz ! |
Are we going for 2 spaces? |
@axsaucedo I'm just going with whatever Google seems to like 2 spaces. |
Fair enough! I think on this one @gsunner and @cliveseldon wouuld be the main Java ones, so if they are happy then let's press the button! |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cliveseldon The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
failed to trigger Pull Request pipeline
|
Fixes #937.
Changes
tidy
onpom.xml
.checkstyle
linter tomvn validate
which will flag violations of Google's Java style guide.-Xlint:all
flag tomvn compile
, which will flag usage of features marked as deprecated.mvn dependency:analyze
.pre-commit
config to manage local Git hooks. There is currently a single hook configured which will rungoogle-java-format
on modified*.java
files on each commit.google-java-format
across all*.java
files to make style consistent.CONTRIBUTING.md
aboutpre-commit
and Google's Java style guide.Notes
pre-commit
is a cross-language tool to handle Git hooks. We can also use it to handlepython
orgo
formatters. Forpython
,black
already offers integration out of the box and therefore could also be interesting for #947.