-
Notifications
You must be signed in to change notification settings - Fork 0
/
tynamo-checkstyle.xml
106 lines (105 loc) · 4.46 KB
/
tynamo-checkstyle.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
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<?xml version="1.0" encoding="UTF-8"?>
<!--
This configuration file was written by the eclipse-cs plugin configuration editor
-->
<!--
Checkstyle-Configuration: Trails
Description:
-->
<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.2//EN" "http://www.puppycrawl.com/dtds/configuration_1_2.dtd">
<module name="Checker">
<property name="severity" value="warning"/>
<module name="TreeWalker">
<module name="FileContentsHolder"/>
<module name="JavadocStyle"/>
<module name="ConstantName">
<property name="format" value="^[A-Z][A-Z0-9]|[a-z][a-z0-9]*(_[A-Z0-9]|[a-z0-9]+)*$"/>
</module>
<module name="LocalFinalVariableName"/>
<module name="LocalVariableName"/>
<module name="MemberName">
<metadata name="com.atlassw.tools.eclipse.checkstyle.comment" value="Normal naming, but allow either "m_" or "_" as a prefix."/>
<property name="format" value="^(m_|_)?[a-z][a-zA-Z0-9]*$"/>
</module>
<module name="MethodName"/>
<module name="PackageName">
<property name="format" value="^[a-z]+(\.[a-z][a-z0-9]*)*$"/>
</module>
<module name="ParameterName">
<metadata name="com.atlassw.tools.eclipse.checkstyle.comment" value="Either a normal name (w/o underscores) or an all uppercase acronym (rarely used)"/>
<property name="format" value="^([a-z][a-zA-Z0-9]*|[A-Z]+)$"/>
</module>
<module name="StaticVariableName">
<property name="format" value="^_?[a-z][a-zA-Z0-9]*$"/>
</module>
<module name="TypeName"/>
<module name="AvoidStarImport"/>
<module name="ImportOrder"/>
<module name="RedundantImport"/>
<module name="UnusedImports"/>
<module name="ModifierOrder"/>
<module name="RedundantModifier"/>
<module name="DefaultComesLast"/>
<module name="DeclarationOrder"/>
<module name="DoubleCheckedLocking">
<property name="severity" value="error"/>
</module>
<module name="EmptyStatement"/>
<module name="HiddenField"/>
<module name="JUnitTestCase"/>
<module name="MissingSwitchDefault">
<metadata name="com.atlassw.tools.eclipse.checkstyle.lastEnabledSeverity" value="error"/>
<property name="severity" value="ignore"/>
</module>
<module name="PackageDeclaration">
<property name="severity" value="error"/>
</module>
<module name="ParameterAssignment">
<property name="severity" value="info"/>
</module>
<module name="RedundantThrows"/>
<module name="SimplifyBooleanExpression">
<property name="severity" value="info"/>
</module>
<module name="SimplifyBooleanReturn">
<property name="severity" value="info"/>
</module>
<module name="StringLiteralEquality">
<property name="severity" value="error"/>
</module>
<module name="SuperClone">
<property name="severity" value="info"/>
</module>
<module name="SuperFinalize"/>
<module name="FinalClass"/>
<module name="HideUtilityClassConstructor"/>
<module name="InterfaceIsType"/>
<module name="MutableException"/>
<module name="ArrayTypeStyle"/>
<module name="UpperEll"/>
<module name="JavadocType">
<property name="excludeScope" value="private"/>
<property name="scope" value="public"/>
</module>
<module name="JavadocStyle"/>
<module name="GenericIllegalRegexp">
<metadata name="com.atlassw.tools.eclipse.checkstyle.comment" value="Line has trailing spaces."/>
<property name="format" value="\s+$"/>
<property name="message" value="Line has trailing spaces."/>
</module>
<module name="LineLength">
<property name="max" value="120"/>
</module>
<module name="LeftCurly">
<property name="option" value="nl"/>
<property name="maxLineLength" value="120"/>
</module>
</module>
<module name="PackageHtml"/>
<module name="NewlineAtEndOfFile">
<property name="lineSeparator" value="lf"/>
</module>
<module name="SuppressionCommentFilter">
<metadata name="com.atlassw.tools.eclipse.checkstyle.comment" value="Enables ignoring checkstyle errors in sepecific blocks"/>
</module>
</module>