Skip to content
Thomas Lohnert edited this page Aug 11, 2021 · 19 revisions

Wiki > The GUI > Eclipse > Check Style setup

Check style is set up by:

  1. Install checkstyle plugin. You may need to install an older version to be compatible with our checkstyle config in case our dependencies are not up to date.
    1. Help --> Install New Software
    2. Add new site (Name: Checkstyle, Location: https://checkstyle.org/eclipse-cs-update-site)
    3. Uncheck "Show only latest versions of available software"
    4. Install the correct version of "Eclipse Checkstyle Plug-in"(at the moment this is v8.41.0)
  2. In eclipse click Windows->Preferences
  3. Select Checkstyle
  4. Go to Window > Preferences > Checkstyle
  5. 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.
  6. Add a new check configuration by clicking New... next to the table
  7. Set the following
    1. File: External configuration file
    2. Name: IBEX Checks
    3. Location: C:\Instrument\Dev\ibex_gui\base\uk.ac.stfc.isis.ibex.client.tycho.parent\checkstyle.xml
    4. Additional Properties button
      1. Add... button
      2. Set:
        • Name: checkstyle.suppressions.file
        • Value: C:\Instrument\Dev\ibex_gui\base\uk.ac.stfc.isis.ibex.client.tycho.parent\suppressions.xml
  8. Apply and close: you should now be setup
Clone this wiki locally