Skip to content
This repository was archived by the owner on Dec 1, 2021. It is now read-only.

Commit e337b26

Browse files
authored
Merge pull request #7 from Java-Discord/andrew/code_style
Added more checkstyle settings.
2 parents 8d8f6b5 + f166065 commit e337b26

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

checkstyle/checkstyle.xml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
<!DOCTYPE module PUBLIC
33
"-//Checkstyle//DTD Checkstyle Configuration 1.3//EN"
44
"https://checkstyle.org/dtds/configuration_1_3.dtd">
5+
<!--
6+
This document defines the code style checks that are performed on source code
7+
in this repository. This ensures a uniform style and minimum code quality.
8+
See https://checkstyle.org/ for more information.
9+
-->
510
<module name="Checker">
611
<module name="TreeWalker">
712
<property name="fileExtensions" value="java"/>
@@ -80,5 +85,14 @@
8085
<module name="MethodLength">
8186
<property name="max" value="50"/>
8287
</module>
88+
<module name="MissingOverride"/>
89+
<module name="EmptyForInitializerPad"/>
90+
<module name="EmptyForIteratorPad"/>
91+
<module name="EmptyLineSeparator">
92+
<property name="allowNoEmptyLineBetweenFields" value="true"/>
93+
</module>
94+
<module name="GenericWhitespace"/>
95+
<module name="MethodParamPad"/>
96+
<module name="TypecastParenPad"/>
8397
</module>
8498
</module>

src/main/java/net/javadiscord/javabot2/config/ReflectionUtils.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
@Slf4j
1818
public class ReflectionUtils {
1919
private static final Map<Class<?>, Function<String, Object>> propertyTypeParsers = new HashMap<>();
20+
2021
static {
2122
propertyTypeParsers.put(Integer.class, Integer::parseInt);
2223
propertyTypeParsers.put(int.class, Integer::parseInt);

0 commit comments

Comments
 (0)