Page tree

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

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:

  1. Go to INSTALL_DIR/etc and open the configuration file.
  2. Find the set and add the following .jar file as the first entry: org.apache.felix.fileinstall-3.4.0.jar.

Downloading and Installing Checkstyle

  1. Download Checkstyle from the following website:
  2. Unpack Checkstyle to install.
  3. Copy the configs, plugins, and rules folders from the [INSTALL_DIR]/integration/checkstyle directory into the Checkstyle installation directory.
  4. Modify the file 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

Optional Customizations

You can customize your Checkstyle integration by configuring the following properties. 

# Custom limit for number of files to be tested in a single executed Checkstyle process. Default is 50.
# However, if subsequent files are placed in the same directory, they will be still scheduled to that
# process unless the "hard" limit is reached (twice the "regular" limit).

# Custom timeout (seconds) for the Checkstyle process to start. Default is 5 seconds.

# Custom timeout (seconds) for the Checkstyle process to complete. Default is 60 seconds.

# Custom launch file for Checkstyle process. Default is taken from the Checkstyle analyzer jar file. 
# If one cannot be found, attempts to use file 'checkstyle.ini' from current working directory.

The 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.

  • No labels