xref: /aosp_15_r20/external/okhttp/okio/checkstyle.xml (revision ab625e417e7950f52094c019474d2a9e9f14a68c)
1*ab625e41SAndroid Build Coastguard Worker<?xml version="1.0"?>
2*ab625e41SAndroid Build Coastguard Worker<!DOCTYPE module PUBLIC
3*ab625e41SAndroid Build Coastguard Worker    "-//Puppy Crawl//DTD Check Configuration 1.2//EN"
4*ab625e41SAndroid Build Coastguard Worker    "http://www.puppycrawl.com/dtds/configuration_1_2.dtd">
5*ab625e41SAndroid Build Coastguard Worker
6*ab625e41SAndroid Build Coastguard Worker<module name="Checker">
7*ab625e41SAndroid Build Coastguard Worker  <module name="NewlineAtEndOfFile"/>
8*ab625e41SAndroid Build Coastguard Worker  <module name="FileLength"/>
9*ab625e41SAndroid Build Coastguard Worker  <module name="FileTabCharacter"/>
10*ab625e41SAndroid Build Coastguard Worker
11*ab625e41SAndroid Build Coastguard Worker  <!-- Trailing spaces -->
12*ab625e41SAndroid Build Coastguard Worker  <module name="RegexpSingleline">
13*ab625e41SAndroid Build Coastguard Worker    <property name="format" value="\s+$"/>
14*ab625e41SAndroid Build Coastguard Worker    <property name="message" value="Line has trailing spaces."/>
15*ab625e41SAndroid Build Coastguard Worker  </module>
16*ab625e41SAndroid Build Coastguard Worker
17*ab625e41SAndroid Build Coastguard Worker  <!-- Space after 'for' and 'if' -->
18*ab625e41SAndroid Build Coastguard Worker  <module name="RegexpSingleline">
19*ab625e41SAndroid Build Coastguard Worker    <property name="format" value="^\s*(for|if)\b[^ ]"/>
20*ab625e41SAndroid Build Coastguard Worker    <property name="message" value="Space needed before opening parenthesis."/>
21*ab625e41SAndroid Build Coastguard Worker  </module>
22*ab625e41SAndroid Build Coastguard Worker
23*ab625e41SAndroid Build Coastguard Worker  <!-- For each spacing -->
24*ab625e41SAndroid Build Coastguard Worker  <module name="RegexpSingleline">
25*ab625e41SAndroid Build Coastguard Worker    <property name="format" value="^\s*for \(.*?([^ ]:|:[^ ])"/>
26*ab625e41SAndroid Build Coastguard Worker    <property name="message" value="Space needed around ':' character."/>
27*ab625e41SAndroid Build Coastguard Worker  </module>
28*ab625e41SAndroid Build Coastguard Worker
29*ab625e41SAndroid Build Coastguard Worker  <module name="TreeWalker">
30*ab625e41SAndroid Build Coastguard Worker    <property name="cacheFile" value="${checkstyle.cache.file}"/>
31*ab625e41SAndroid Build Coastguard Worker
32*ab625e41SAndroid Build Coastguard Worker    <!-- Checks for Javadoc comments.                     -->
33*ab625e41SAndroid Build Coastguard Worker    <!-- See http://checkstyle.sf.net/config_javadoc.html -->
34*ab625e41SAndroid Build Coastguard Worker    <!--module name="JavadocMethod"/-->
35*ab625e41SAndroid Build Coastguard Worker    <!--module name="JavadocType"/-->
36*ab625e41SAndroid Build Coastguard Worker    <!--module name="JavadocVariable"/-->
37*ab625e41SAndroid Build Coastguard Worker    <module name="JavadocStyle"/>
38*ab625e41SAndroid Build Coastguard Worker
39*ab625e41SAndroid Build Coastguard Worker
40*ab625e41SAndroid Build Coastguard Worker    <!-- Checks for Naming Conventions.                  -->
41*ab625e41SAndroid Build Coastguard Worker    <!-- See http://checkstyle.sf.net/config_naming.html -->
42*ab625e41SAndroid Build Coastguard Worker    <!--<module name="ConstantName"/>-->
43*ab625e41SAndroid Build Coastguard Worker    <module name="LocalFinalVariableName"/>
44*ab625e41SAndroid Build Coastguard Worker    <module name="LocalVariableName"/>
45*ab625e41SAndroid Build Coastguard Worker    <module name="MemberName"/>
46*ab625e41SAndroid Build Coastguard Worker    <module name="MethodName"/>
47*ab625e41SAndroid Build Coastguard Worker    <module name="PackageName"/>
48*ab625e41SAndroid Build Coastguard Worker    <module name="ParameterName"/>
49*ab625e41SAndroid Build Coastguard Worker    <module name="StaticVariableName"/>
50*ab625e41SAndroid Build Coastguard Worker    <module name="TypeName"/>
51*ab625e41SAndroid Build Coastguard Worker
52*ab625e41SAndroid Build Coastguard Worker
53*ab625e41SAndroid Build Coastguard Worker    <!-- Checks for imports                              -->
54*ab625e41SAndroid Build Coastguard Worker    <!-- See http://checkstyle.sf.net/config_import.html -->
55*ab625e41SAndroid Build Coastguard Worker    <module name="AvoidStarImport"/>
56*ab625e41SAndroid Build Coastguard Worker    <module name="IllegalImport"/>
57*ab625e41SAndroid Build Coastguard Worker    <!-- defaults to sun.* packages -->
58*ab625e41SAndroid Build Coastguard Worker    <module name="RedundantImport"/>
59*ab625e41SAndroid Build Coastguard Worker    <module name="UnusedImports"/>
60*ab625e41SAndroid Build Coastguard Worker
61*ab625e41SAndroid Build Coastguard Worker
62*ab625e41SAndroid Build Coastguard Worker    <!-- Checks for Size Violations.                    -->
63*ab625e41SAndroid Build Coastguard Worker    <!-- See http://checkstyle.sf.net/config_sizes.html -->
64*ab625e41SAndroid Build Coastguard Worker    <module name="LineLength">
65*ab625e41SAndroid Build Coastguard Worker      <property name="max" value="100"/>
66*ab625e41SAndroid Build Coastguard Worker    </module>
67*ab625e41SAndroid Build Coastguard Worker    <module name="MethodLength"/>
68*ab625e41SAndroid Build Coastguard Worker
69*ab625e41SAndroid Build Coastguard Worker
70*ab625e41SAndroid Build Coastguard Worker    <!-- Checks for whitespace                               -->
71*ab625e41SAndroid Build Coastguard Worker    <!-- See http://checkstyle.sf.net/config_whitespace.html -->
72*ab625e41SAndroid Build Coastguard Worker    <module name="GenericWhitespace"/>
73*ab625e41SAndroid Build Coastguard Worker    <!--<module name="EmptyForIteratorPad"/>-->
74*ab625e41SAndroid Build Coastguard Worker    <module name="MethodParamPad"/>
75*ab625e41SAndroid Build Coastguard Worker    <!--<module name="NoWhitespaceAfter"/>-->
76*ab625e41SAndroid Build Coastguard Worker    <!--<module name="NoWhitespaceBefore"/>-->
77*ab625e41SAndroid Build Coastguard Worker    <module name="OperatorWrap"/>
78*ab625e41SAndroid Build Coastguard Worker    <module name="ParenPad"/>
79*ab625e41SAndroid Build Coastguard Worker    <module name="TypecastParenPad"/>
80*ab625e41SAndroid Build Coastguard Worker    <module name="WhitespaceAfter"/>
81*ab625e41SAndroid Build Coastguard Worker    <module name="WhitespaceAround"/>
82*ab625e41SAndroid Build Coastguard Worker
83*ab625e41SAndroid Build Coastguard Worker
84*ab625e41SAndroid Build Coastguard Worker    <!-- Modifier Checks                                    -->
85*ab625e41SAndroid Build Coastguard Worker    <!-- See http://checkstyle.sf.net/config_modifiers.html -->
86*ab625e41SAndroid Build Coastguard Worker    <module name="ModifierOrder"/>
87*ab625e41SAndroid Build Coastguard Worker    <module name="RedundantModifier"/>
88*ab625e41SAndroid Build Coastguard Worker
89*ab625e41SAndroid Build Coastguard Worker
90*ab625e41SAndroid Build Coastguard Worker    <!-- Checks for blocks. You know, those {}'s         -->
91*ab625e41SAndroid Build Coastguard Worker    <!-- See http://checkstyle.sf.net/config_blocks.html -->
92*ab625e41SAndroid Build Coastguard Worker    <module name="AvoidNestedBlocks"/>
93*ab625e41SAndroid Build Coastguard Worker    <!--module name="EmptyBlock"/-->
94*ab625e41SAndroid Build Coastguard Worker    <module name="LeftCurly"/>
95*ab625e41SAndroid Build Coastguard Worker    <!--<module name="NeedBraces"/>-->
96*ab625e41SAndroid Build Coastguard Worker    <module name="RightCurly"/>
97*ab625e41SAndroid Build Coastguard Worker
98*ab625e41SAndroid Build Coastguard Worker
99*ab625e41SAndroid Build Coastguard Worker    <!-- Checks for common coding problems               -->
100*ab625e41SAndroid Build Coastguard Worker    <!-- See http://checkstyle.sf.net/config_coding.html -->
101*ab625e41SAndroid Build Coastguard Worker    <!--module name="AvoidInlineConditionals"/-->
102*ab625e41SAndroid Build Coastguard Worker    <module name="CovariantEquals"/>
103*ab625e41SAndroid Build Coastguard Worker    <module name="EmptyStatement"/>
104*ab625e41SAndroid Build Coastguard Worker    <!--<module name="EqualsAvoidNull"/>-->
105*ab625e41SAndroid Build Coastguard Worker    <module name="EqualsHashCode"/>
106*ab625e41SAndroid Build Coastguard Worker    <!--module name="HiddenField"/-->
107*ab625e41SAndroid Build Coastguard Worker    <module name="IllegalInstantiation"/>
108*ab625e41SAndroid Build Coastguard Worker    <!--module name="InnerAssignment"/-->
109*ab625e41SAndroid Build Coastguard Worker    <!--module name="MagicNumber"/-->
110*ab625e41SAndroid Build Coastguard Worker    <!--module name="MissingSwitchDefault"/-->
111*ab625e41SAndroid Build Coastguard Worker    <module name="RedundantThrows"/>
112*ab625e41SAndroid Build Coastguard Worker    <module name="SimplifyBooleanExpression"/>
113*ab625e41SAndroid Build Coastguard Worker    <module name="SimplifyBooleanReturn"/>
114*ab625e41SAndroid Build Coastguard Worker
115*ab625e41SAndroid Build Coastguard Worker    <!-- Checks for class design                         -->
116*ab625e41SAndroid Build Coastguard Worker    <!-- See http://checkstyle.sf.net/config_design.html -->
117*ab625e41SAndroid Build Coastguard Worker    <!--module name="DesignForExtension"/-->
118*ab625e41SAndroid Build Coastguard Worker    <!--<module name="FinalClass"/>-->
119*ab625e41SAndroid Build Coastguard Worker    <module name="HideUtilityClassConstructor"/>
120*ab625e41SAndroid Build Coastguard Worker    <module name="InterfaceIsType"/>
121*ab625e41SAndroid Build Coastguard Worker    <!--module name="VisibilityModifier"/-->
122*ab625e41SAndroid Build Coastguard Worker
123*ab625e41SAndroid Build Coastguard Worker
124*ab625e41SAndroid Build Coastguard Worker    <!-- Miscellaneous other checks.                   -->
125*ab625e41SAndroid Build Coastguard Worker    <!-- See http://checkstyle.sf.net/config_misc.html -->
126*ab625e41SAndroid Build Coastguard Worker    <module name="ArrayTypeStyle"/>
127*ab625e41SAndroid Build Coastguard Worker    <!--module name="FinalParameters"/-->
128*ab625e41SAndroid Build Coastguard Worker    <!--module name="TodoComment"/-->
129*ab625e41SAndroid Build Coastguard Worker    <module name="UpperEll"/>
130*ab625e41SAndroid Build Coastguard Worker  </module>
131*ab625e41SAndroid Build Coastguard Worker</module>
132