In this section:
Jtest supports static analysis with Checkstyle 5.5, 5.6, 5.7, and 6.5.
To enable Checkstyle rules and to use plugins dropped into this folder:
- Go to
INSTALL_DIR/etcand open the
- Find the
felix.auto.start.4set and add the following .jar file as the first entry:
Downloading and Installing Checkstyle
- Download Checkstyle from the following website: http://sourceforge.net/projects/checkstyle/files.
- Unpack Checkstyle to install.
- Copy the configs, plugins, and rules folders from the
[INSTALL_DIR]/integration/checkstyledirectory into the Checkstyle installation directory.
jtestcli.propertiesfile to include the following properties:
Analyzing Code with Checkstyle
Specify the Checkstyle user test configurations to perform analysis with Checkstyle:
user://Checkstyle- Enables every rule
user://Checkstyle Recommended- Enables Checkstyle recommended rules
You can customize your Checkstyle integration by configuring the following properties.
rulemap.txt file located in the
[INSTALL_DIR]/integration/checkstyle directory contains information about how rule IDs used in test configuration are mapped to Checkstyle rule types.