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
{{ message }}
Repository navigation
java dead_code: commented-out statements that don't start with a keyword go uncounted #4171
It misses commented-out statements, calls, assignments and declarations. Example: IBM WCA4Z's published Lgacdb01.java (sandeephans/validation-c2j @ 967d00b) has 11 such lines, and they hold the dropped behaviour:
The file scans with state_graveyard = 0 and risk_dead_code = 0, although risk_tech_debt reads 84.
Why it matters
In machine-translated code, commented-out lines are often exactly where the translator gave up. A scanner that reports them would point reviewers straight at the dropped behaviour.
Suggested direction
Match commented lines that parse as a Java statement: assignment, call, declaration, or a statement ending in ;. Use negative cases so prose comments don't count. Then check the other C-family dead_code rules for the same gap.
Activity
dead_code: commented-out statements count in the ;-terminated C-famil…