lsp4j icon indicating copy to clipboard operation
lsp4j copied to clipboard

Enforce coding standards with tooling

Open jonahgraham opened this issue 6 years ago • 2 comments

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

jonahgraham avatar Sep 13 '18 23:09 jonahgraham

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).

thraidh avatar Sep 16 '18 14:09 thraidh

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

kittaakos avatar Oct 09 '18 07:10 kittaakos