Skip to content

checkstyle.xml: trailing space in AvoidNestedBlocks property name allowInSwitchCase #612

Description

@bertysentry

checkstyle.xml line 92 configures AvoidNestedBlocks with a trailing space in the property name:

<module name="AvoidNestedBlocks">
	<property name="allowInSwitchCase " value="true" />
</module>

It should be name="allowInSwitchCase". Checkstyle 9.3 (maven-checkstyle-plugin 3.6.0) does not fail on it, so the build is unaffected today, but the typo should not depend on that tolerance, and the setting may not be applied as intended.

Found while copying this file to ipmi-java (MetricsHub/ipmi-java#117), which ships the corrected line in MetricsHub/ipmi-java#119. Fixing it here keeps the two files byte-identical; the other MetricsHub projects that copy jawk's checkstyle.xml should pick up the fix too.

🤖 Generated with Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions