Skip to content

Files

Latest commit

 

History

History
29 lines (21 loc) · 837 Bytes

FileLength.md

File metadata and controls

29 lines (21 loc) · 837 Bytes

Pattern: Too many lines in file

Issue: -

Description

Limiting the number of lines allowed in a file allows files to remain small, single purpose, and maintainable.

Parameters

NameDescriptionTypeDefault Value
maxFileLength Maximum file length integer 1500

Example configuration

<check enabled="true" class="org.scalastyle.file.FileLengthChecker" level="warning">
 <parameters>
  <parameter name="maxFileLength">800</parameter>
 </parameters>
</check>