Skip to content

Commit

Permalink
more rules
Browse files Browse the repository at this point in the history
  • Loading branch information
fabianmakila committed Sep 27, 2024
1 parent 64f39ec commit 4eca9de
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
public abstract class AbstractListener<B extends EventBuilder> {
protected final WebhookLogger webhookLogger;
private final Map<Pattern, String> replacements;
List<WebhookClient> clients = new ArrayList<>();
private final List<WebhookClient> clients = new ArrayList<>();

public AbstractListener(WebhookLogger webhookLogger) {
this.webhookLogger = webhookLogger;
Expand Down
9 changes: 9 additions & 0 deletions config/checkstyle/checkstyle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,15 @@

<!-- Class Design -->
<module name="FinalClass"/>
<module name="HideUtilityClassConstructor"/>
<module name="InnerTypeLast"/>
<module name="InterfaceIsType"/>
<module name="MutableException"/>
<module name="OneTopLevelClass"/>
<module name="ThrowsCount"/>
<module name="VisibilityModifier">
<property name="protectedAllowed" value="true"/>
</module>

<module name="RegexpSinglelineJava">
<property name="format" value="^\t* "/>
Expand Down

0 comments on commit 4eca9de

Please sign in to comment.