Skip to content

Commit e68f958

Browse files
committed
added Eclipse workspace
1 parent 484c742 commit e68f958

3 files changed

Lines changed: 462 additions & 0 deletions

File tree

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,7 @@
2020

2121
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
2222
hs_err_pid*
23+
24+
# Eclipse workspace
25+
.metadata
26+
.recommenders

Checkstyle.xml

Lines changed: 140 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,140 @@
1+
<?xml version="1.0"?>
2+
<!DOCTYPE module PUBLIC
3+
"-//Puppy Crawl//DTD Check Configuration 1.3//EN"
4+
"http://www.puppycrawl.com/dtds/configuration_1_3.dtd">
5+
6+
<!--
7+
Checkstyle configuration for Think Java, 2nd Edition.
8+
-->
9+
<module name="Checker">
10+
11+
<!-- See http://checkstyle.sf.net/config.html#TreeWalker -->
12+
<module name="TreeWalker">
13+
14+
<!-- See http://checkstyle.sf.net/config_annotation.html -->
15+
<module name="AnnotationLocation"/>
16+
<module name="AnnotationUseStyle"/>
17+
18+
<!-- See http://checkstyle.sf.net/config_blocks.html -->
19+
<module name="AvoidNestedBlocks"/>
20+
<module name="EmptyBlock"/>
21+
<module name="LeftCurly"/>
22+
<module name="NeedBraces"/>
23+
<module name="RightCurly"/>
24+
25+
<!-- See http://checkstyle.sf.net/config_design.html -->
26+
<module name="VisibilityModifier"/>
27+
28+
<!-- See http://checkstyle.sf.net/config_coding.html -->
29+
<module name="AvoidInlineConditionals"/>
30+
<module name="DeclarationOrder"/>
31+
<module name="EmptyStatement"/>
32+
<module name="FallThrough"/>
33+
<module name="InnerAssignment"/>
34+
<module name="ModifiedControlVariable"/>
35+
<module name="MultipleVariableDeclarations"/>
36+
<module name="OneStatementPerLine"/>
37+
<module name="ParameterAssignment"/>
38+
<module name="RequireThis">
39+
<!--
40+
<property name="checkMethods" value="false"/>
41+
<property name="validateOnlyOverlapping" value="false"/>
42+
-->
43+
</module>
44+
<module name="ReturnCount"/>
45+
<module name="SimplifyBooleanExpression"/>
46+
<module name="SimplifyBooleanReturn"/>
47+
<module name="StringLiteralEquality"/>
48+
<module name="UnnecessaryParentheses"/>
49+
50+
<!-- See http://checkstyle.sf.net/config_imports.html -->
51+
<module name="AvoidStarImport">
52+
<property name="excludes" value="org.junit.Assert"/>
53+
</module>
54+
<module name="AvoidStaticImport">
55+
<property name="excludes" value="org.junit.Assert.*"/>
56+
</module>
57+
<module name="IllegalImport"/>
58+
<module name="RedundantImport"/>
59+
<module name="UnusedImports"/>
60+
61+
<!-- See http://checkstyle.sf.net/config_javadoc.html -->
62+
<module name="AtclauseOrder"/>
63+
<module name="JavadocMethod"/>
64+
<module name="JavadocStyle"/>
65+
<module name="JavadocType">
66+
<!--
67+
<property name="authorFormat" value="\S"/>
68+
<property name="versionFormat" value="\S"/>
69+
-->
70+
</module>
71+
<module name="NonEmptyAtclauseDescription"/>
72+
73+
<!-- See http://checkstyle.sf.net/config_misc.html -->
74+
<module name="ArrayTypeStyle"/>
75+
<module name="CommentsIndentation"/>
76+
<module name="Indentation">
77+
<property name="basicOffset" value="4"/>
78+
<property name="braceAdjustment" value="0"/>
79+
<property name="caseIndent" value="4"/>
80+
<property name="arrayInitIndent" value="8"/>
81+
</module>
82+
<property name="tabWidth" value="4"/>
83+
<module name="UpperEll"/>
84+
85+
<!-- See http://checkstyle.sf.net/config_modifiers.html -->
86+
<module name="ModifierOrder"/>
87+
<module name="RedundantModifier"/>
88+
89+
<!-- See http://checkstyle.sf.net/config_naming.html -->
90+
<module name="ConstantName"/>
91+
<module name="LocalFinalVariableName">
92+
<property name="format" value="^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$"/>
93+
</module>
94+
<module name="LocalVariableName"/>
95+
<module name="MemberName"/>
96+
<module name="MethodName"/>
97+
<module name="PackageName"/>
98+
<module name="ParameterName"/>
99+
<module name="StaticVariableName"/>
100+
<module name="TypeName"/>
101+
102+
<!-- See http://checkstyle.sf.net/config_regexp.html -->
103+
<module name="Regexp">
104+
<property name="format" value=" //[^ ]"/>
105+
<property name="illegalPattern" value="true"/>
106+
<message key="illegal.regexp" value="missing space after ''//'' in comment."/>
107+
</module>
108+
109+
<!-- See http://checkstyle.sf.net/config_sizes.html -->
110+
<module name="LineLength"/>
111+
<module name="MethodLength"/>
112+
113+
<!-- See http://checkstyle.sf.net/config_whitespace.html -->
114+
<module name="EmptyLineSeparator">
115+
<property name="allowNoEmptyLineBetweenFields" value="true"/>
116+
</module>
117+
<module name="MethodParamPad"/>
118+
<module name="NoWhitespaceAfter"/>
119+
<module name="NoWhitespaceBefore"/>
120+
<module name="OperatorWrap"/>
121+
<module name="ParenPad"/>
122+
<module name="TypecastParenPad"/>
123+
<module name="WhitespaceAfter"/>
124+
<module name="WhitespaceAround"/>
125+
126+
</module>
127+
128+
<!-- See http://checkstyle.sf.net/config_misc.html -->
129+
<!--
130+
<module name="NewlineAtEndOfFile">
131+
<property name="lineSeparator" value="lf_cr_crlf"/>
132+
</module>
133+
-->
134+
<!-- See http://checkstyle.sf.net/config_sizes.html -->
135+
<module name="FileLength"/>
136+
137+
<!-- See http://checkstyle.sf.net/config_whitespace.html -->
138+
<module name="FileTabCharacter"/>
139+
140+
</module>

0 commit comments

Comments
 (0)