Skip to content
This repository has been archived by the owner on Jul 7, 2022. It is now read-only.

Checkstyle plugin with google style #13

Merged
merged 3 commits into from
Sep 7, 2018
Merged

Conversation

PepperJo
Copy link
Contributor

Add checkstyle plugin but do not check on compilation yet.
Checkstyle can be run with 'mvn checkstyle:check'

https://issues.apache.org/jira/projects/CRAIL/issues/CRAIL-19

Signed-off-by: Jonas Pfefferle pepperjo@apache.org

Copy link
Member

@asqasq asqasq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@animeshtrivedi
Copy link
Contributor

Lets merge this. Also I think, having something like this would be useful for DaRPC and DiSNI as well?

@patrickstuedi
Copy link
Contributor

Why not add the checkstyle plugin to the top level pom?

@PepperJo
Copy link
Contributor Author

PepperJo commented Sep 7, 2018

Let me try again last time I checked it did not work as expected.

Add checkstyle plugin but do not check on compilation yet.
Checkstyle can be run with 'mvn checkstyle:check'

https://issues.apache.org/jira/projects/CRAIL/issues/CRAIL-19

Signed-off-by: Jonas Pfefferle <pepperjo@apache.org>
Move checkstyle plugin to parent pom.

Signed-off-by: Jonas Pfefferle <pepperjo@apache.org>
@PepperJo
Copy link
Contributor Author

PepperJo commented Sep 7, 2018

Moved plugin to parent pom. Note that I do not yet enforce style check on compilation but you can manually run checkstyle with 'mvn checkstyle:check'. I propose whenever someone changes a file to make two commits one that fixes the style and one for the issue. Otherwise solving all the errors would probably take a few hours...

@PepperJo
Copy link
Contributor Author

PepperJo commented Sep 7, 2018

Also if someone is not happy with the suggestions of the style checker please make a pull request to change the google style derived xml file.

@patrickstuedi
Copy link
Contributor

Looks good. Can we just rename google_check.xml to checkstyle.xml?

@PepperJo
Copy link
Contributor Author

PepperJo commented Sep 7, 2018

sure

Rename file style.

Signed-off-by: Jonas Pfefferle <pepperjo@apache.org>
@PepperJo
Copy link
Contributor Author

PepperJo commented Sep 7, 2018

Renamed file.

@asfgit asfgit merged commit 5a85923 into apache:master Sep 7, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
5 participants