Skip to content

Conversation

@vivek-0509
Copy link
Contributor

Issue #6294:

Summary

Added test to kill surviving pitest mutations in SwitchHandler.java.

Changes

  • Added InputIndentationSwitchExprViolation.java - test input with switch expression on its own line at wrong indentation (column 0)
  • Added testSwitchExprViolation() test method in IndentationCheckTest.java
  • Removed 2 mutation suppressions from pitest-indentation-suppressions.xml
    • SwitchHandler.checkIndentation → checkSwitchExpr()) call
    • SwitchHandler.checkSwitchExprcheckExpressionSubtree() call

@vivek-0509 vivek-0509 force-pushed the resolvePitestSuppressionIndentation branch from 75909a2 to 0c415dd Compare December 17, 2025 22:16
@vivek-0509 vivek-0509 force-pushed the resolvePitestSuppressionIndentation branch from 0c415dd to 1f1786e Compare December 19, 2025 06:24
Copy link
Member

@romani romani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks a lot

@romani romani merged commit cda2f32 into checkstyle:master Dec 23, 2025
123 checks passed
@vivek-0509 vivek-0509 deleted the resolvePitestSuppressionIndentation branch December 26, 2025 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants