Skip to content
Critiq Docs

Search docs

Search documentation pages and rules

quality.testing

JUnit @Disabled should cite a ticket

Disabled tests without a reason string or nearby tracker note are hard to triage.

#Metadata

Rule ID
java.testing.disabled-without-ticket-reference
Severity
medium
Confidence
0.64
Languages
java
Presets
recommended, strict
Stability
experimental
Applies to
block
Tags
java, rules-catalog, testing

#Why it matters

Disabled tests should carry reviewable intent.

#Remediation

Add `@Disabled("JIRA-123 ...")` or a nearby suppression comment with an issue id.

#Repository path

The generated metadata points to critiq-rules/libs/rules/catalog/rules/java/java.testing.disabled-without-ticket-reference.rule.yaml.