Skip to content

Commit

Permalink
style: add design checkstyle rules
Browse files Browse the repository at this point in the history
  • Loading branch information
skylot committed May 4, 2019
1 parent 52ba33c commit c0a0bba
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions config/checkstyle/checkstyle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,14 @@
<module name="PackageDeclaration"/>
<module name="StringLiteralEquality"/>

<!-- design -->
<module name="OneTopLevelClass"/>
<module name="MutableException"/>
<module name="InterfaceIsType"/>
<module name="ThrowsCount">
<property name="max" value="2"/>
</module>

<!-- misc -->
<module name="ArrayTypeStyle"/>
<module name="OuterTypeFilename"/>
Expand Down

0 comments on commit c0a0bba

Please sign in to comment.