Skip to content

Commit

Permalink
Added rule to check that line length in Java files not exceeds 120 ch…
Browse files Browse the repository at this point in the history
…ars.
  • Loading branch information
Oliver-Loeffler committed Mar 28, 2024
1 parent 582a5a6 commit 0a9355b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions checkstyle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
<property name="severity" value="warning" />
<property name="fileExtensions" value="java, properties, xml, fxml" />

<module name="LineLength">
<property name="fileExtensions" value="java" />
<property name="max" value="120"/>
</module>

<!-- BeforeExecutionFileFilters is required for sources that are based on java9 -->
<module name="BeforeExecutionExclusionFileFilter">
<property name="fileNamePattern"
Expand All @@ -18,6 +23,11 @@
<property name="eachLine" value="false" />
</module>

<module name="LineLength">
<property name="fileExtensions" value="java" />
<property name="max" value="120"/>
</module>

<module name="TreeWalker">
<property name="tabWidth" value="4"/>

Expand Down

0 comments on commit 0a9355b

Please sign in to comment.