forked from jeremycrosbie/barcode4j
-
Notifications
You must be signed in to change notification settings - Fork 0
/
checkstyle.cfg
91 lines (91 loc) · 3.29 KB
/
checkstyle.cfg
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
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.0//EN"
"http://www.puppycrawl.com/dtds/configuration_1_0.dtd">
<module name="Checker">
<module name="TreeWalker">
<property name="tabWidth" value="4"/>
<!-- code conventions -->
<!-- license header -->
<module name="RegexpHeader">
<property name="headerFile" value="checkstyle.header"/>
</module>
<!-- naming conventions -->
<module name="ConstantName"/>
<module name="MethodName"/>
<module name="LocalFinalVariableName"/>
<module name="LocalVariableName"/>
<module name="MemberName"/>
<module name="ParameterName"/>
<module name="TypeName"/>
<module name="StaticVariableName"/>
<module name="PackageName"/>
<!-- code layout -->
<module name="RightCurly"/>
<module name="LeftCurly"/>
<module name="NeedBraces">
<property name="tokens" value="LITERAL_DO, LITERAL_FOR, LITERAL_WHILE"/>
</module>
<module name="OperatorWrap"/>
<!-- standard whitespace settings -->
<module name="ParenPad"/>
<module name="NoWhitespaceAfter"/>
<module name="NoWhitespaceBefore"/>
<module name="WhitespaceAfter">
<property name="tokens" value="COMMA, SEMI"/>
</module>
<module name="WhitespaceAround"/>
<!-- JavaDoc guidelines -->
<module name="JavadocMethod">
<property name="scope" value="protected"/>
</module>
<module name="JavadocType">
<property name="authorFormat" value="\S"/>
</module>
<module name="JavadocVariable">
<property name="scope" value="protected"/>
</module>
<!-- JLS -->
<module name="RedundantModifier"/>
<module name="ModifierOrder"/>
<module name="UpperEll"/>
<!-- Api Doc -->
<!-- override hashCode whenever you override equals() -->
<module name="EqualsHashCode"/>
<!-- don't create new instances of Boolean,
use Boolean.TRUE/FALSE or Boolean.valueOf() instead -->
<module name="IllegalInstantiation">
<property name="classes" value="java.lang.Boolean"/>
</module>
<!-- best practices -->
<!-- don't allow empty blocks (in particular catch blocks) -->
<module name="EmptyBlock">
<property name="option" value="text"/>
</module>
<!-- avoid inner assignments -->
<module name="InnerAssignment"/>
<!-- don't allow imports from the sun.* package hierarchy -->
<module name="IllegalImport"/>
<!-- don't allow public members -->
<module name="VisibilityModifier">
<property name="protectedAllowed" value="true"/>
</module>
<!-- simplify your code -->
<module name="AvoidStarImport"/>
<module name="RedundantImport"/>
<module name="UnusedImports"/>
<module name="SimplifyBooleanExpression"/>
<module name="SimplifyBooleanReturn"/>
<!-- flag reminder comments -->
<module name="TodoComment"/>
<!-- enforce default length limits -->
<module name="LineLength">
<property name="max" value="100"/>
</module>
<module name="MethodLength"/>
<module name="FileLength"/>
<!-- don't allow tabs -->
<module name="TabCharacter"/>
</module>
<!-- enforce package documentation -->
<module name="PackageHtml"/>
</module>