-
-
Notifications
You must be signed in to change notification settings - Fork 27k
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
Comments
https://github.com/google/styleguide/blob/gh-pages/eclipse-java-google-style.xml does not seem to work in Eclipse Mars. |
@iluwatar I will take a look. |
It has been suggested that we take into use Maven checkstyle plugin. |
@iluwatar Yes good point. It will reduce PR review effort. |
Checkstyle was added in a033c07 |
I updated the instructions at https://github.com/iluwatar/java-design-patterns/wiki/3.-Coding-conventions |
@iluwatar The style guide worked for me in Eclipse Mars. To make sure this is how I imported it: |
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." |
Version: Mars (4.5) |
Strange, I have the same version. |
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? |
@Jahhein That is great news. Would you create a pull request? |
@Jahhein Yes its still unresolved. Awaiting your PR. |
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. |
@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. |
Reformat Code According to Google Style Guide #224
@ankurkaushal Thanks for doing this. |
BTW, are we there already? 100% compliance? |
Always a pleasure @mafagafogigante. I guess we are :) Let me know if I could help with anything else :) |
@iluwatar I also got the exception (
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... |
Thanks for sharing this @Lonzak |
This issue is related to #221 . With this issue we will re-format existing implementation to confirm to Google Style guide.
The text was updated successfully, but these errors were encountered: