Skip to content
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

Enforce coding standards with tooling #256

Open
jonahgraham opened this issue Sep 13, 2018 · 2 comments
Open

Enforce coding standards with tooling #256

jonahgraham opened this issue Sep 13, 2018 · 2 comments

Comments

@jonahgraham
Copy link
Contributor

jonahgraham commented Sep 13, 2018

We should enforce coding standards with tooling, including a way to format the code. I assume gradle has such capabilities readily accessible.

This is to prevent future contributors to have to go through the pain @thraidh did in #254

@thraidh
Copy link
Contributor

thraidh commented Sep 16, 2018

There is https://github.com/sherter/google-java-format-gradle-plugin, which does not seem to be configurable. The generated Java files seem to adhere at least the indentation style, though.

Alternatively you could adopt https://editorconfig.org/, which is supported by a lot of editors either natively or via plugin (including Eclipse, IntelliJ and Netbeans).

@kittaakos
Copy link
Contributor

We can have project-specific formatting options for Eclipse and do the "same" in VS Code, and format the code on save.

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

3 participants