lsp4j
lsp4j copied to clipboard
Enforce coding standards with tooling
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
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).
We can have project-specific formatting options for Eclipse and do the "same" in VS Code, and format the code on save.