-
Notifications
You must be signed in to change notification settings - Fork 45
/
checkstyle-additional-config.xml
35 lines (35 loc) · 1.55 KB
/
checkstyle-additional-config.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<module name="RegexpSingleline">
<property name="severity" value="error" />
<property name="format" value="Math\s*\.\s*random\s*\(\s*\)" />
<property name="fileExtensions" value="java,xtend,scala,kt" />
<property name="message"
value="Don't use Math.random() inside Alchemist. Breaks stuff." />
</module>
<module name="RegexpSingleline">
<property name="severity" value="error" />
<property name="format" value="class\s*\.\s*forName\s*\(" />
<property name="fileExtensions" value="java,xtend,scala,kt" />
<property name="message"
value="Use the library to load classes and resources. Breaks grid otherwise." />
</module>
<module name="RegexpSingleline">
<property name="severity" value="error" />
<property name="format" value="class\s*\.\s*getResource" />
<property name="fileExtensions" value="java,xtend,scala,kt" />
<property name="message"
value="Use the library to load classes and resources. Breaks grid otherwise." />
</module>
<module name="RegexpSingleline">
<property name="severity" value="error" />
<property name="format" value="class\s*\.\s*getClassLoader" />
<property name="fileExtensions" value="java,xtend,scala,kt" />
<property name="message"
value="Use the library to load classes and resources. Breaks grid otherwise." />
</module>
<module name="RegexpSingleline">
<property name="severity" value="warning" />
<property name="format" value="@author" />
<property name="fileExtensions" value="java,xtend,scala,kt" />
<property name="message"
value="Do not use @author. Changes and authors are tracked by the content manager." />
</module>