Code Style
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.
IntelliJ Setup
On IntelliJ follow these steps to configure CheckStyle:
- Install the CheckStyle plugin
- Open
Preferences/Settings
and go toEditor > Code Style
. - Select
Project
asScheme
and click the settings icon next to it. - Select
Import Scheme > CheckStyle Configuration
and locate thecheckstyle.xml
file 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.