blob: 503f6e0207eba6813beecf77d3e7acc4301ad6f1 [file] [log] [blame]
Alexander Afanasyevcbc41012016-02-19 20:10:57 -08001<?xml version="1.0"?>
Andrew Brownfe6c21c2016-08-24 16:28:54 -07002<!--
3 ~ jndn-mock
4 ~ Copyright (c) 2016, Intel Corporation.
5 ~
6 ~ This program is free software; you can redistribute it and/or modify it
7 ~ under the terms and conditions of the GNU Lesser General Public License,
8 ~ version 3, as published by the Free Software Foundation.
9 ~
10 ~ This program is distributed in the hope it will be useful, but WITHOUT ANY
11 ~ WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12 ~ FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for
13 ~ more details.
14 -->
15
Alexander Afanasyevcbc41012016-02-19 20:10:57 -080016<!DOCTYPE module PUBLIC
17 "-//Puppy Crawl//DTD Check Configuration 1.3//EN"
18 "http://www.puppycrawl.com/dtds/configuration_1_3.dtd">
19
20<!--
21
22 Based on http://checkstyle.sourceforge.net/sun_style.html, the
23 Checkstyle configuration that checks the sun coding conventions from:
24
25 - the Java Language Specification at
26 http://java.sun.com/docs/books/jls/second_edition/html/index.html
27
28 - the Sun Code Conventions at http://java.sun.com/docs/codeconv/
29
30 - the Javadoc guidelines at
31 http://java.sun.com/j2se/javadoc/writingdoccomments/index.html
32
33 - the JDK Api documentation http://java.sun.com/j2se/docs/api/index.html
34
35 - some best practices
36
37 Checkstyle is very configurable. Be sure to read the documentation at
38 http://checkstyle.sourceforge.net (or in your downloaded distribution).
39
40 Most Checks are configurable, be sure to consult the documentation.
41
42 To completely disable a check, just comment it out or delete it from the file.
43
44 Finally, it is worth reading the documentation.
45
46-->
47
48<module name="Checker">
49 <!--
50 If you set the basedir property below, then all reported file
51 names will be relative to the specified directory. See
52 http://checkstyle.sourceforge.net/5.x/config.html#Checker
53
54 <property name="basedir" value="${basedir}"/>
55 -->
56
57 <property name="fileExtensions" value="java, properties, xml"/>
58
59 <!-- Checks that a package-info.java file exists for each package. -->
60 <!-- See http://checkstyle.sourceforge.net/config_javadoc.html#JavadocPackage -->
61 <!--<module name="JavadocPackage"/>-->
62
63 <!-- Checks whether files end with a new line. -->
64 <!-- See http://checkstyle.sourceforge.net/config_misc.html#NewlineAtEndOfFile -->
65 <module name="NewlineAtEndOfFile"/>
66
67 <!-- Checks that property files contain the same keys. -->
68 <!-- See http://checkstyle.sourceforge.net/config_misc.html#Translation -->
69 <module name="Translation"/>
70
71 <!-- Checks for Size Violations. -->
72 <!-- See http://checkstyle.sourceforge.net/config_sizes.html -->
73 <module name="FileLength"/>
74
75 <!-- Checks for whitespace -->
76 <!-- See http://checkstyle.sourceforge.net/config_whitespace.html -->
77 <module name="FileTabCharacter"/>
78
79 <!-- Miscellaneous other checks. -->
80 <!-- See http://checkstyle.sourceforge.net/config_misc.html -->
81 <module name="RegexpSingleline">
82 <property name="format" value="\s+$"/>
83 <property name="minimum" value="0"/>
84 <property name="maximum" value="0"/>
85 <property name="message" value="Line has trailing spaces."/>
86 </module>
87
88 <!-- Checks for Headers -->
89 <!-- See http://checkstyle.sourceforge.net/config_header.html -->
90 <!-- <module name="Header"> -->
91 <!-- <property name="headerFile" value="${checkstyle.header.file}"/> -->
92 <!-- <property name="fileExtensions" value="java"/> -->
93 <!-- </module> -->
94
95 <module name="TreeWalker">
96
97 <!-- Checks for Javadoc comments. -->
98 <!-- See http://checkstyle.sourceforge.net/config_javadoc.html -->
99 <!--<module name="JavadocMethod">-->
100 <!--<property name="excludeScope" value="private"/>-->
101 <!--</module>-->
102 <module name="JavadocType">
103 <property name="excludeScope" value="private"/>
104 </module>
105 <module name="JavadocVariable">
106 <property name="excludeScope" value="private"/>
107 </module>
108 <module name="JavadocStyle"/>
109
110 <!-- Checks for Naming Conventions. -->
111 <!-- See http://checkstyle.sourceforge.net/config_naming.html -->
112 <module name="ConstantName"/>
113 <module name="LocalFinalVariableName"/>
114 <module name="LocalVariableName"/>
115 <module name="MemberName"/>
116 <module name="MethodName"/>
117 <module name="PackageName"/>
118 <module name="ParameterName"/>
119 <module name="StaticVariableName"/>
120 <module name="TypeName"/>
121
122 <!-- Checks for imports -->
123 <!-- See http://checkstyle.sourceforge.net/config_import.html -->
124 <module name="AvoidStarImport"/>
125 <module name="IllegalImport"/> <!-- defaults to sun.* packages -->
126 <module name="RedundantImport"/>
127 <module name="UnusedImports">
128 <property name="processJavadoc" value="false"/>
129 </module>
130
131 <!-- Checks for Size Violations. -->
132 <!-- See http://checkstyle.sourceforge.net/config_sizes.html -->
133 <module name="LineLength">
134 <property name="max" value="120"/>
135 </module>
136 <module name="MethodLength"/>
137 <module name="ParameterNumber"/>
138
139 <!-- Checks for whitespace -->
140 <!-- See http://checkstyle.sourceforge.net/config_whitespace.html -->
141 <module name="EmptyForIteratorPad"/>
142 <module name="GenericWhitespace"/>
143 <module name="MethodParamPad"/>
144 <module name="NoWhitespaceAfter"/>
145 <module name="NoWhitespaceBefore"/>
146 <module name="OperatorWrap">
147 <property name="option" value="eol"/>
148 </module>
149 <module name="ParenPad"/>
150 <module name="TypecastParenPad"/>
151 <module name="WhitespaceAfter"/>
152 <module name="WhitespaceAround"/>
153
154 <!-- Modifier Checks -->
155 <!-- See http://checkstyle.sourceforge.net/config_modifiers.html -->
156 <module name="ModifierOrder"/>
157 <module name="RedundantModifier"/>
158
159 <!-- Checks for blocks. You know, those {}'s -->
160 <!-- See http://checkstyle.sourceforge.net/config_blocks.html -->
161 <module name="AvoidNestedBlocks"/>
162 <module name="EmptyBlock"/>
163 <module name="LeftCurly"/>
164 <module name="NeedBraces"/>
165 <module name="RightCurly"/>
166
167 <!-- Checks for common coding problems -->
168 <!-- See http://checkstyle.sourceforge.net/config_coding.html -->
169 <module name="AvoidInlineConditionals"/>
170 <module name="EmptyStatement"/>
171 <module name="EqualsHashCode"/>
172 <!-- <module name="HiddenField"/> -->
173 <module name="IllegalInstantiation"/>
174 <module name="InnerAssignment"/>
175 <!--<module name="MagicNumber"/>-->
176 <module name="MissingSwitchDefault"/>
177 <module name="SimplifyBooleanExpression"/>
178 <module name="SimplifyBooleanReturn"/>
179
180 <!-- Checks for class design -->
181 <!-- See http://checkstyle.sourceforge.net/config_design.html -->
182 <!--<module name="DesignForExtension"/>-->
183 <module name="FinalClass"/>
184 <module name="HideUtilityClassConstructor"/>
185 <module name="InterfaceIsType"/>
186 <!--<module name="VisibilityModifier"/>-->
187
188 <!-- Miscellaneous other checks. -->
189 <!-- See http://checkstyle.sourceforge.net/config_misc.html -->
190 <module name="ArrayTypeStyle"/>
191 <module name="FinalParameters"/>
192 <!--<module name="TodoComment"/>-->
193 <module name="UpperEll"/>
194
195 </module>
196
197</module>