-
Notifications
You must be signed in to change notification settings - Fork 41
Expand file tree
/
Copy pathcheckstyle.xml
More file actions
75 lines (66 loc) · 3.45 KB
/
checkstyle.xml
File metadata and controls
75 lines (66 loc) · 3.45 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<?xml version="1.0"?>
<!DOCTYPE module PUBLIC "-//Checkstyle//DTD Checkstyle Configuration 1.3//EN" "https://checkstyle.org/dtds/configuration_1_3.dtd">
<!--
Derived Checkstyle configuration that checks the Google naming conventions from Google Java Style
that can be found at https://google.github.io/styleguide/javaguide.html Formatting conventions are
enforced by the spotless plugin.
This configuration is based on the Google Checks that can be found at:
https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
-->
<module name="Checker">
<property name="charset" value="UTF-8" />
<property name="fileExtensions" value="java, properties, xml" />
<module name="SuppressWarningsFilter" />
<!-- Excludes all 'module-info.java' files -->
<!-- See https://checkstyle.org/filefilters/index.html -->
<module name="BeforeExecutionExclusionFileFilter">
<property name="fileNamePattern" value="module\-info\.java$" />
</module>
<!-- for suppression of rules; to use, surround code to exclude with comments: -->
<!-- CHECKSTYLE.OFF: RuleToDisable AND CHECKSTYLE.ON: RuleToDisable -->
<module name="SuppressWithPlainTextCommentFilter">
<property name="offCommentFormat" value="CHECKSTYLE.OFF\: ([\w\|]+)" />
<property name="onCommentFormat" value="CHECKSTYLE.ON\: ([\w\|]+)" />
</module>
<!-- for default checks, see https://checkstyle.sourceforge.io/checks.html -->
<module name="TreeWalker">
<!-- Make the @SuppressWarnings annotations available to Checkstyle -->
<module name="SuppressWarningsHolder" />
<module name="AbstractClassName">
<property name="format" value="^(Base|Abstract).+$" />
</module>
<module name="MemberName">
<property name="format"
value="^(?!((m|s|my|our|the)[A-Z])[a-zA-Z0-9]*)([a-z][a-zA-Z0-9]*)$" />
<message key="name.invalidPattern"
value="Member ''{0}'' should be named with camelCase and without prefixes." />
</module>
<module name="ParameterName">
<property name="format"
value="^(?!((m|s|my|our|the)[A-Z])[a-zA-Z0-9]*)([a-z][a-zA-Z0-9]*)$" />
<message key="name.invalidPattern"
value="Member ''{0}'' should be named with camelCase and without prefixes." />
</module>
<module name="MethodName">
<property name="format"
value="^(?!((m|s|my|our|the)[A-Z])[a-zA-Z0-9]*)([a-z][a-zA-Z0-9]*)$" />
<message key="name.invalidPattern"
value="Member ''{0}'' should be named with camelCase and without prefixes." />
</module>
<module name="StaticVariableName">
<property name="format"
value="^(?!((m|s|my|our|the)[A-Z])[a-zA-Z0-9]*)([a-z][a-zA-Z0-9]*)$" />
<message key="name.invalidPattern"
value="Member ''{0}'' should be named with camelCase and without prefixes." />
</module>
<module name="NoFinalizer" />
<!-- no dangling ; -->
<module name="EmptyStatement"/>
<!-- util and constant classes have no public constructors -->
<module name="HideUtilityClassConstructor"/>
<!-- do not allow imports from some packages -->
<module name="IllegalImport">
<property name="illegalPkgs" value="org.jetbrains.annotations" />
</module>
</module>
</module>