Skip to content

Commit 5b28a40

Browse files
committed
initial move from google code
0 parents  commit 5b28a40

File tree

78 files changed

+17038
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+17038
-0
lines changed

COPYING

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
// Copyright (c) 2012 Jeff Ichnowski
2+
// All rights reserved.
3+
//
4+
// Redistribution and use in source and binary forms, with or without
5+
// modification, are permitted provided that the following conditions
6+
// are met:
7+
//
8+
// * Redistributions of source code must retain the above
9+
// copyright notice, this list of conditions and the following
10+
// disclaimer.
11+
//
12+
// * Redistributions in binary form must reproduce the above
13+
// copyright notice, this list of conditions and the following
14+
// disclaimer in the documentation and/or other materials
15+
// provided with the distribution.
16+
//
17+
// * Neither the name of the OWASP nor the names of its
18+
// contributors may be used to endorse or promote products
19+
// derived from this software without specific prior written
20+
// permission.
21+
//
22+
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
23+
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
24+
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
25+
// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
26+
// COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
27+
// INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
28+
// (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
29+
// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30+
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
31+
// STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
32+
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
33+
// OF THE POSSIBILITY OF SUCH DAMAGE.

checkstyle.xml

Lines changed: 202 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,202 @@
1+
<?xml version="1.0" encoding="US-ASCII"?>
2+
<!DOCTYPE module PUBLIC
3+
"-//Puppy Crawl//DTD Check Configuration 1.2//EN"
4+
"http://www.puppycrawl.com/dtds/configuration_1_2.dtd">
5+
<module name="Checker">
6+
7+
<!--<module name="SuppressionFilter">-->
8+
<!--<property name="file" value="${basedir}/suppressions.xml"/>-->
9+
<!--</module>-->
10+
11+
<!-- <module name="NewlineAtEndOfFile"/> doesn't work... -->
12+
<module name="Translation"/>
13+
<module name="FileLength"/>
14+
<module name="FileTabCharacter"/>
15+
16+
<module name="RegexpSingleline">
17+
<property name="format" value="\s+$"/>
18+
<property name="minimum" value="0"/>
19+
<property name="maximum" value="0"/>
20+
<property name="message" value="Line has trailing spaces."/>
21+
</module>
22+
23+
<module name="Header">
24+
<property name="headerFile" value="${basedir}/COPYING"/>
25+
<property name="charset" value="US-ASCII"/>
26+
</module>
27+
28+
<module name="TreeWalker">
29+
30+
<module name="JavadocMethod"/>
31+
<module name="JavadocType"/>
32+
<module name="JavadocVariable"/>
33+
<module name="JavadocStyle"/>
34+
35+
<!-- Checks for Naming Conventions. -->
36+
<!-- See http://checkstyle.sf.net/config_naming.html -->
37+
<module name="ConstantName">
38+
<property name="format" value="^(?:[A-Z][A-Z0-9]*(?:_[A-Z0-9]+)*)|(?:_log)$"/>
39+
</module>
40+
<module name="LocalFinalVariableName"/>
41+
<module name="LocalVariableName"/>
42+
<module name="MemberName">
43+
<property name="applyToPrivate" value="false"/>
44+
<property name="applyToProtected" value="false"/>
45+
<property name="applyToPackage" value="false"/>
46+
</module>
47+
<module name="MemberName">
48+
<property name="applyToPublic" value="false"/>
49+
<property name="format" value="^_[a-zA-Z][a-zA-Z0-9]*$"/>
50+
</module>
51+
<module name="MethodName"/>
52+
<module name="PackageName"/>
53+
<module name="ParameterName"/>
54+
<module name="StaticVariableName">
55+
<property name="applyToPrivate" value="false"/>
56+
<property name="applyToProtected" value="false"/>
57+
<property name="applyToPackage" value="false"/>
58+
</module>
59+
<module name="StaticVariableName">
60+
<property name="applyToPublic" value="false"/>
61+
<property name="format" value="^_[a-zA-Z][a-zA-Z0-9]*$"/>
62+
</module>
63+
<module name="TypeName"/>
64+
65+
66+
<!-- Checks for imports -->
67+
<!-- See http://checkstyle.sf.net/config_import.html -->
68+
<module name="AvoidStarImport"/>
69+
<module name="IllegalImport"/> <!-- defaults to sun.* packages -->
70+
<module name="RedundantImport"/>
71+
<module name="UnusedImports"/>
72+
<module name="ImportOrder">
73+
<property name="groups" value="java,javax"/>
74+
<property name="option" value="bottom"/>
75+
</module>
76+
77+
78+
<!-- Checks for Size Violations. -->
79+
<!-- See http://checkstyle.sf.net/config_sizes.html -->
80+
<module name="LineLength">
81+
<property name="max" value="120"/>
82+
</module>
83+
<module name="MethodLength"/>
84+
<module name="ParameterNumber"/>
85+
86+
87+
<!-- Checks for whitespace -->
88+
<!-- See http://checkstyle.sf.net/config_whitespace.html -->
89+
<module name="EmptyForIteratorPad"/>
90+
<module name="GenericWhitespace"/>
91+
<module name="MethodParamPad"/>
92+
<!-- <module name="NoWhitespaceAfter"/> -->
93+
<!-- <module name="NoWhitespaceBefore"/> -->
94+
<module name="OperatorWrap">
95+
<property name="option" value="eol"/>
96+
</module>
97+
<module name="ParenPad"/>
98+
<module name="TypecastParenPad"/>
99+
<!-- <module name="WhitespaceAfter"/> -->
100+
<!-- <module name="WhitespaceAround"/> -->
101+
102+
<!-- Modifier Checks -->
103+
<!-- See http://checkstyle.sf.net/config_modifiers.html -->
104+
<module name="ModifierOrder"/>
105+
<module name="RedundantModifier"/>
106+
107+
108+
<!-- Checks for blocks. You know, those {}'s -->
109+
<!-- See http://checkstyle.sf.net/config_blocks.html -->
110+
<module name="AvoidNestedBlocks"/>
111+
<module name="EmptyBlock">
112+
<property name="option" value="text"/>
113+
</module>
114+
<module name="LeftCurly">
115+
<property name="option" value="nlow"/>
116+
</module>
117+
<module name="NeedBraces"/>
118+
<module name="RightCurly"/>
119+
120+
121+
<!-- Checks for common coding problems -->
122+
<!-- See http://checkstyle.sf.net/config_coding.html -->
123+
<!-- <module name="AvoidInlineConditionals"/> -->
124+
<module name="CovariantEquals"/>
125+
<module name="DoubleCheckedLocking"/>
126+
<module name="EmptyStatement"/>
127+
<module name="EqualsAvoidNull"/>
128+
<module name="EqualsHashCode"/>
129+
<module name="HiddenField"/>
130+
<module name="IllegalInstantiation">
131+
<property name="classes" value="java.lang.Boolean"/>
132+
</module>
133+
<module name="InnerAssignment"/>
134+
<!-- <module name="MagicNumber"/> -->
135+
<module name="MissingSwitchDefault"/>
136+
<module name="RedundantThrows">
137+
<property name="allowUnchecked" value="true"/>
138+
</module>
139+
<module name="SimplifyBooleanExpression"/>
140+
<module name="SimplifyBooleanReturn"/>
141+
<module name="NoFinalizer"/>
142+
<module name="SuperClone"/>
143+
<module name="IllegalCatch"/>
144+
<module name="IllegalThrows"/>
145+
<module name="PackageDeclaration"/>
146+
<module name="IllegalType">
147+
<property name="illegalClassNames"
148+
value="java.util.GregorianCalendar,
149+
java.util.Hashtable,
150+
java.util.HashSet,
151+
java.util.HashMap,
152+
java.util.ArrayList,
153+
java.util.LinkedHashMap,
154+
java.util.LinkedHashSet,
155+
java.util.TreeSet,
156+
java.util.TreeMap,
157+
java.util.Vector"/>
158+
159+
<!-- java.util.LinkedList is allowed, since the Deque interface
160+
exposing useful methods like "removeLast" isn't available
161+
until 1.6 -->
162+
</module>
163+
<module name="ExplicitInitialization"/>
164+
<module name="FallThrough"/>
165+
166+
<!-- Checks for class design -->
167+
<!-- See http://checkstyle.sf.net/config_design.html -->
168+
<!-- <module name="DesignForExtension"/> -->
169+
<module name="FinalClass"/>
170+
<module name="HideUtilityClassConstructor"/>
171+
<module name="InterfaceIsType"/>
172+
<!-- <module name="VisibilityModifier"/> -->
173+
174+
<!-- Miscellaneous other checks. -->
175+
<!-- See http://checkstyle.sf.net/config_misc.html -->
176+
<module name="ArrayTypeStyle"/>
177+
<!-- module name="FinalParameters"/ -->
178+
<module name="Regexp">
179+
<!-- Do not allow System.out calls, use loggers instead -->
180+
<property name="format" value="System\s*\.\s*(out|err)"/>
181+
<property name="illegalPattern" value="true"/>
182+
<property name="ignoreComments" value="true"/>
183+
<property name="message" value="System.out or System.err (use Logger instead)"/>
184+
</module>
185+
<module name="Regexp">
186+
<!-- Do not allow printStackTrace, use loggers or rethrow -->
187+
<property name="format" value="\.\s*printStackTrace\s*\(\s*\)"/>
188+
<property name="illegalPattern" value="true"/>
189+
<property name="ignoreComments" value="true"/>
190+
<property name="message" value="printStackTrace() (use Logger or rethrow)"/>
191+
</module>
192+
193+
<!-- TODO: add this back: <module name="TodoComment"/> -->
194+
<module name="UpperEll"/>
195+
<module name="Indentation">
196+
<property name="caseIndent" value="0"/>
197+
</module>
198+
199+
</module>
200+
201+
</module>
202+

0 commit comments

Comments
 (0)