Skip to content

Missing test for InputIndentationInvalidArrayInitIndent.java with forceStrictCondition=false #16869

@Praveen7294

Description

@Praveen7294

The test method testInvalidArrayInitWithTrueStrictCondition() in IndentationCheckTest.java uses the input file InputIndentationInvalidArrayInitIndent.java to verify behavior with forceStrictCondition=true.

InputIndentaionCheckTest.java
https://github.com/checkstyle/checkstyle/blob/master/src/test/java/com/puppycrawl/tools/checkstyle/checks/indentation/IndentationCheckTest.java

However, the same input is not tested with forceStrictCondition=false, which leads to incomplete test coverage for this configuration.

A new test method (e.g., testInvalidArrayInitWithFalseStrictCondition()) should be added to verify behavior when forceStrictCondition is false.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions