Skip to content

Files

Latest commit

 

History

History
24 lines (14 loc) · 566 Bytes

FileLength.md

File metadata and controls

24 lines (14 loc) · 566 Bytes

Pattern: Long source file

Issue: -

Description

Checks for long source files.

Rationale: If a source file becomes very long it is hard to understand. Therefore long classes should usually be refactored into several individual classes that focus on a specific task.

Examples

To configure the check to accept files with up to 1500 lines:

<module name="FileLength">
      <property name="max" value="1500"/>
</module>

Further Reading