-
Notifications
You must be signed in to change notification settings - Fork 2
Checkstyle setup
Thomas Lohnert edited this page Aug 11, 2021
·
20 revisions
Wiki > The GUI > Eclipse > Check Style setup
Check style is set up by:
- Install checkstyle plugin. You may need to install an older version to be compatible with our checkstyle config in case we have not updated our dependencies.
- Help --> Install New Software
- Add new site (Name: Checkstyle, Location: https://checkstyle.org/eclipse-cs-update-site)
- Uncheck "Show only latest versions of available software"
- Install the correct version of "Eclipse Checkstyle Plug-in"(at the moment this is v
8.41.0
)
- In eclipse click Windows->Preferences
- Select Checkstyle
- Go to
Window > Preferences > Checkstyle
- If you have an existing "IBEX Checks" entry using an internal configuration, remove it. If it complains about the configuration currently being used in projects, you may have to remove and re-import all projects before you remove this config.
- Add a new check configuration by clicking
New...
next to the table - Set the following
- File: External configuration file
- Name: IBEX Checks
- Location:
C:\Instrument\Dev\ibex_gui\base\uk.ac.stfc.isis.ibex.client.tycho.parent\checkstyle.xml
-
Additional Properties
button-
Add...
button - Set:
- Name: checkstyle.suppressions.file
- Value: C:\Instrument\Dev\ibex_gui\base\uk.ac.stfc.isis.ibex.client.tycho.parent\suppressions.xml
-
- Apply and close: you should now be setup