All contributions are welcome, we do ask however that you follow our coding standards. This is rather easy as we have checkstyle and code formatter configuration files ready to use.
For eclipse:
-
Install findbugs plugin
-
Install checkstyle plugin
-
Eclipse > Preferences > Checkstyle > New...
Type: External configuration file Name: Cubano Location: /cubano/config/checkstyle/checkstyle.xml
-
Eclipse > Preferences > Java > Code Style > Formatter > Import...
File: /cubano/config/formatter/formatter.xml
-
Eclipse > Preferences > Java > Editor > Save Actions
Perform the selected actions on save: Checked Format source code: Format edited lines Organise imports: Checked
-
Eclipse > Project > Properties > Checkstyle
Checkstyle active for this project: Checked Use the following check configuration for all files: Cubano - (Global)
-
To execute a Checkstyle/Findbugs build >
gradlew check -x test