hms-networks/sc-java-maven-starter-project

Update IDE code style configurations

Closed this issue · 1 comments

Update the code style configurations of applicable IDEs to handle the latest Google Java Format settings.

The base IntelliJ XML from Google Code Style is at https://github.com/google/styleguide/blob/gh-pages/intellij-java-google-style.xml.

At a minimum, the line length and wrapping styles must be updated to include the following:

    <codeStyleSettings language="JAVA">
      <option name="RIGHT_MARGIN" value="100" />
      <option name="WRAP_LONG_LINES" value="true" />
      <option name="WRAP_ON_TYPING" value="1" />
      <option name="SOFT_MARGINS" value="100" />
    </codeStyleSettings>

Fixed in #35

The changes are not exactly what I outlined above. I adhered to Google Java Format as best as possible, but I had to leave a few options out as they could be too aggressive/more aggressive than Google Java Format jar itself, which causes its own issues.