The source code uses the CheckStyle tool to keep the code style consistent.
In addition, we check for code style when building the project using the Maven CheckStyle Plugin. A pull request without proper code style would fail to build.
On IntelliJ follow these steps to configure CheckStyle:
- Install the CheckStyle plugin
Preferences/Settingsand go to
Editor > Code Style.
Schemeand click the settings icon next to it.
Import Scheme > CheckStyle Configurationand locate the
checkstyle.xmlfile at the root of Gephi's repository.
You're done. You can now use the built-in Code > Reformat Code tool. The resulting code style will match what is on the Gephi repository.