Skip to content

Reformat existing code using Google Style Guide #224

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

Closed
npathai opened this issue Aug 21, 2015 · 20 comments
Closed

Reformat existing code using Google Style Guide #224

npathai opened this issue Aug 21, 2015 · 20 comments

Comments

@npathai
Copy link
Contributor

npathai commented Aug 21, 2015

This issue is related to #221 . With this issue we will re-format existing implementation to confirm to Google Style guide.

@iluwatar
Copy link
Owner

@npathai
Copy link
Contributor Author

npathai commented Aug 28, 2015

@iluwatar I will take a look.

@iluwatar
Copy link
Owner

iluwatar commented Sep 8, 2015

It has been suggested that we take into use Maven checkstyle plugin.

@npathai
Copy link
Contributor Author

npathai commented Sep 8, 2015

@iluwatar Yes good point. It will reduce PR review effort.

iluwatar added a commit that referenced this issue Sep 12, 2015
@iluwatar
Copy link
Owner

Checkstyle was added in a033c07

@iluwatar
Copy link
Owner

@npathai
Copy link
Contributor Author

npathai commented Sep 14, 2015

@iluwatar The style guide worked for me in Eclipse Mars. To make sure this is how I imported it:
Java > Code Style > Formatter > Import

@iluwatar
Copy link
Owner

Are you importing this https://github.com/google/styleguide/blob/gh-pages/eclipse-java-google-style.xml?

I'm getting "Problems reading profiles from XML Attribute name "data-pjax-transient" associated with an element type "meta" must be followed by the ' = ' character."

@npathai
Copy link
Contributor Author

npathai commented Sep 15, 2015

Version: Mars (4.5)
Build no of eclipse: 20150621-1200
I get a version compatibility warning while importing but once I skip it, works fine.

@iluwatar
Copy link
Owner

Strange, I have the same version.

@Jahhein
Copy link

Jahhein commented Sep 20, 2015

I was able to import these settings into intellij ultimate edition using an eclipse preferences plugin and use the reformat whole project feature. I have yet to make sure I meet all standards with what I have added. Is this still an issue to be resolved?

@iluwatar
Copy link
Owner

@Jahhein That is great news. Would you create a pull request?

@npathai
Copy link
Contributor Author

npathai commented Sep 21, 2015

@Jahhein Yes its still unresolved. Awaiting your PR.

@Jahhein
Copy link

Jahhein commented Sep 21, 2015

Will do, double checking to ensure all is correct. Intellij has a problem with spacing after class headers, and brackets, even if it is in the settings.

@bernardosulzbach
Copy link
Contributor

@Jahhein I know it has been a while, but if you need help, I may be useful. I have configured Intellij IDEA to a fork of Google Java Style I made, and for what I saw, it can be almost 100% compliant to the original style guide.

ankurkaushal added a commit to ankurkaushal/java-design-patterns that referenced this issue Nov 1, 2015
iluwatar added a commit that referenced this issue Nov 1, 2015
Reformat Code According to Google Style Guide #224
ankurkaushal added a commit to ankurkaushal/java-design-patterns that referenced this issue Nov 1, 2015
ankurkaushal added a commit to ankurkaushal/java-design-patterns that referenced this issue Nov 1, 2015
ankurkaushal added a commit to ankurkaushal/java-design-patterns that referenced this issue Nov 1, 2015
ankurkaushal added a commit to ankurkaushal/java-design-patterns that referenced this issue Nov 1, 2015
ankurkaushal added a commit to ankurkaushal/java-design-patterns that referenced this issue Nov 1, 2015
ankurkaushal added a commit to ankurkaushal/java-design-patterns that referenced this issue Nov 2, 2015
@iluwatar iluwatar added this to the 1.8.0 milestone Nov 3, 2015
@iluwatar iluwatar closed this as completed Nov 3, 2015
@bernardosulzbach
Copy link
Contributor

@ankurkaushal Thanks for doing this.

@bernardosulzbach
Copy link
Contributor

BTW, are we there already? 100% compliance?

@ankurkaushal
Copy link
Contributor

Always a pleasure @mafagafogigante.

I guess we are :) Let me know if I could help with anything else :)

@Lonzak
Copy link

Lonzak commented Jan 17, 2017

@iluwatar I also got the exception (

Problems reading profiles from XML Attribute name "data-pjax-transient" associated with an element type "meta" must be followed by the ' = ' character.

But when I opened the file I realized that I tried to download the file from the github webpage thus the content is an HTML file and NOT the XML file! If you do a real download it works...

@iluwatar
Copy link
Owner

Thanks for sharing this @Lonzak

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

No branches or pull requests

6 participants