Title: Checkstyle rules for Square's code style? · Issue #9 · square/java-code-styles · GitHub
Open Graph Title: Checkstyle rules for Square's code style? · Issue #9 · square/java-code-styles
X Title: Checkstyle rules for Square's code style? · Issue #9 · square/java-code-styles
Description: I like your code style. However, when reformatting my code using your style I am encountering various checkstyle violations for either Sun's or Google's default rules. It mostly complains about whitespaces before/after curly braces, line...
Open Graph Description: I like your code style. However, when reformatting my code using your style I am encountering various checkstyle violations for either Sun's or Google's default rules. It mostly complains about whi...
X Description: I like your code style. However, when reformatting my code using your style I am encountering various checkstyle violations for either Sun's or Google's default rules. It mostly complains a...
Opengraph URL: https://github.com/square/java-code-styles/issues/9
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Checkstyle rules for Square's code style?","articleBody":"I like your code style. However, when reformatting my code using your style I am encountering various checkstyle violations for either [Sun's](https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/sun_checks.xml) or [Google's](https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml) default rules. It mostly complains about whitespaces before/after curly braces, line length and such stuff.\n\nSo my question is, if there exists a particular checkstyle-rules.xml for this style? Maybe it's a good idea to have both in place, code style along with dedicated check.\n\nI've looked into the ones you are using in your projects, for instance [Dagger](https://github.com/square/dagger/blob/master/checkstyle.xml), but actually it just omits some rules.\n\nThanks in advance.\n","author":{"url":"https://github.com/a11n","@type":"Person","name":"a11n"},"datePublished":"2015-03-11T15:34:56.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":11},"url":"https://github.com/9/java-code-styles/issues/9"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:5c2c58c9-ff1f-bc25-ce7d-0a2898e20fd9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 88CE:375BA9:8B63FE:B7F763:69716963 |
| html-safe-nonce | 24bfb1a5a8640627cae486e40d28c7801fbfd42c05e89775241edb5c059d82fd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OENFOjM3NUJBOTo4QjYzRkU6QjdGNzYzOjY5NzE2OTYzIiwidmlzaXRvcl9pZCI6IjExOTA0ODAyMzUxNzAxOTU4MTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | e7b1cc7766df94babe781cf127bea417a12fe7c81ad228c62f2158e3c9e3f280 |
| hovercard-subject-tag | issue:60677503 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/square/java-code-styles/9/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c7feb6c12ae5a69abc5341f52863fbb7159a3ea0f14387aa034b02d5ce980149/square/java-code-styles/issues/9 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c7feb6c12ae5a69abc5341f52863fbb7159a3ea0f14387aa034b02d5ce980149/square/java-code-styles/issues/9 |
| og:image:alt | I like your code style. However, when reformatting my code using your style I am encountering various checkstyle violations for either Sun's or Google's default rules. It mostly complains about whi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | a11n |
| hostname | github.com |
| expected-hostname | github.com |
| None | 353479110ec1e87d687013548f216c852055ec907d09d2fb6a180cb5ed9d28e1 |
| turbo-cache-control | no-preview |
| go-import | github.com/square/java-code-styles git https://github.com/square/java-code-styles.git |
| octolytics-dimension-user_id | 82592 |
| octolytics-dimension-user_login | square |
| octolytics-dimension-repository_id | 9380996 |
| octolytics-dimension-repository_nwo | square/java-code-styles |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 9380996 |
| octolytics-dimension-repository_network_root_nwo | square/java-code-styles |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | a4c7e274c03a115b82dcef6c47ce3f7f903e88e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width