Skip to main content

Checkstyle

Updated May 13, 2020 ·

Overview

Checkstyle is a code static analysis tool to help developers write Java code that adheres to a coding standard such as:

  • Avoiding multiple blank lines
  • Removing unused variables
  • Enforcing correct indentations

To use this, we must first install the checkstyle plugin in Jenkins. Click Manage Jenkins > Manage Plugins.

Search for checkstyle. Unfortunately, it seems that this plugin has been removed totally so we may have to utilize a different one. A quick search online shows that some features have been deprecated and is replaced with Warnings Next Generation.

We'll select the Warnings Next Generation for now and hit Install without Restart.