Customize inspections
Specific inspections provide configurable options, which lets you customize them for use with Qodana.
To discover configurable options, in IntelliJ IDEA configure the inspection and then export the profile. For example, the JvmCoverageInspection inspection offers the classThreshold, methodThreshold, and warnMissingCoverage options, which you can see from the profile configuration:
<component name="InspectionProjectProfileManager">
<profile version="1.0">
<option name="myName" value="Project Default" />
<inspection_tool class="JvmCoverageInspection" enabled="true" level="WARNING" enabled_by_default="true">
<option name="classThreshold" value="51" />
<option name="methodThreshold" value="51" />
<option name="warnMissingCoverage" value="true" />
</inspection_tool>
</profile>
</component>
You can use the option names in the YAML configuration of Qodana, for example:
name: "Customizing the JvmCoverageInspection inspection" # Profile name
baseProfile: qodana.recommended
inspections:
- inspection: JvmCoverageInspection
options:
classThreshold: 51
methodThreshold: 51
warnMissingCoverage: true
03 December 2025