Skip to content

Files

Latest commit

 

History

History
31 lines (18 loc) · 653 Bytes

ExecutableStatementCount.md

File metadata and controls

31 lines (18 loc) · 653 Bytes

Pattern: Too many executable statements

Issue: -

Description

Restricts the number of executable statements to a specified limit.

Examples

To configure the check:

<module name="ExecutableStatementCount"/>

To configure the check with a threshold of 20 for constructor and method definitions:

<module name="ExecutableStatementCount">
    <property name="max" value="20"/>
    <property name="tokens" value="CTOR_DEF,METHOD_DEF"/>
</module>

Further Reading