Package com.puppycrawl.tools.checkstyle.checks.blocks
Contains the Block checks that are
bundled with the main distribution.
-
Class Summary Class Description AvoidNestedBlocksCheck Finds nested blocks, i.e.EmptyBlockCheck Checks for empty blocks.EmptyCatchBlockCheck Checks for empty catch blocks.LeftCurlyCheck Checks for the placement of left curly braces ('{'
) for code blocks.NeedBracesCheck Checks for braces around code blocks.RightCurlyCheck Checks the placement of right curly braces ('}'
) for if-else, try-catch-finally blocks, while-loops, for-loops, method definitions, class definitions, constructor definitions, instance and static initialization blocks. -
Enum Summary Enum Description BlockOption Represents the policy for checking block statements.LeftCurlyOption Represents the options for placing the left curly brace'{'
.RightCurlyOption Represents the options for placing the right curly brace'}'
.