Skip to content

Files

Latest commit

 

History

History
30 lines (17 loc) · 613 Bytes

MethodCount.md

File metadata and controls

30 lines (17 loc) · 613 Bytes

Pattern: Too many methods

Issue: -

Description

Checks the number of methods declared in each type. This includes the number of each scope (private, package, protected and public) as well as an overall total.

Examples

To configure the check with defaults:

<module name="MethodCount"/>

To configure the check to allow at most 30 methods per type:

<module name="MethodCount">
      <property name="maxTotal" value="30"/>
</module>

Further Reading