Skip to content

[candidate-miner] Checkstyle suppresses Target_ClassFinder, a class no longer in the tree #6

Description

@github-actions

What is wrong

The Checkstyle suppression file contains a <suppress> entry that targets a
source file named Target_ClassFinder, but no such file exists anywhere in the
repository. The class this line was written to exempt from the
HideUtilityClassConstructor check has been removed, so the suppression now
matches nothing. A maintainer reading the file cannot tell what it protects,
and it will never be exercised by a Checkstyle run.

Where

  • File: src/checkstyle/checkstyle-suppressions.xml
  • Line (advisory): 46
  • Occurrence: <suppress files="Target_ClassFinder" checks="HideUtilityClassConstructor"/>

Evidence

config_kind:             checkstyle_suppression
pattern:                 Target_ClassFinder
raw_line:                <suppress files="Target_ClassFinder" checks="HideUtilityClassConstructor"/>
matches_nothing_in_tree: true
names_a_literal:         true
removed_in.commit:       59a9d0fcb9be6c3d4843bf512802b1fd4a3635b5
removed_in.date:         2026-02-04
extractor (miner):       config_dead_entry v1.0.0
score:                   75 (config_kind_prior=40, names_a_literal=25, single_line_fix=10, staleness_years=0)

Suggested fix

Delete the single suppression line for Target_ClassFinder. The file it
referred to no longer exists, so removing the line is the whole change; nothing
else depends on it.

How to verify the fix

From tools/candidate-miner/, run the miner and confirm this fingerprint is no
longer emitted:

./miner.py run --miner config_dead_entry --dry-run

Provenance

Mined at commit 008199fe0fa0e93ec85a458bf0585445bb97532e.

candidate-miner:fingerprint sha256:1707e89e6458258065cad57563706317bd59efa1aea5a7ed5968c40cf7af5a23

Generated by Candidate scan: file mined candidates as issues · opus48 · 86.5 AIC · ⌖ 30.3 AIC · ⊞ 4.7K ·

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions