You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A maven plugin that offers an integrated solution for enforcing code quality standards in your project.
It supports tools such as Checkstyle, Error Prone, NullAway, and SpotBugs, enabling automatic analysis of your codebase
to detect style violations and potential bugs early in the development process.
Supported code quality tools
Checkstyle – Analyzes Java code for style guideline violations, helping enforce consistent formatting and naming
conventions.
Error Prone – A static analysis tool from Google that catches common Java programming mistakes at compile time.
NullAway – Detects and prevents NullPointerExceptions by enforcing null-safety contracts in your code.
SpotBugs – Examines bytecode to identify a wide range of potential bugs, including performance issues, bad practices,
and security flaws.
Reports
The plugin supports reporting code quality violations to various outputs, such as the console or a JSON file. These
reports can help developers identify and address issues early in the build process or integrate with external systems.
Reporter
Description
ConsolePlainViolationReporter
Logs code quality violations to the Maven console using color-coded and linkable formatting for easy visibility during builds.
ConsoleTableViolationReporter
Logs code quality violations to the Maven console using tables for easy visibility during builds.
GitLabFileViolationReporter
Serializes violations into a JSON file formatted for GitLab's Code Quality widget, enabling inline feedback in merge requests.
Installation
You can use the Code Quality Maven Plugin in one of two ways: