checkstyle - removing DoubleCheckedLocking
[scilab.git] / scilab / checkstyle / scilab_checkstyle_convention.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2     <!--
3         This configuration file was written by the eclipse-cs plugin configuration editor
4 -->
5     <!--
6 Checkstyle-Configuration: scilab checkstyle
7 Description:
8
9 -->
10     <!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.2//EN" "http://www.puppycrawl.com/dtds/configuration_1_2.dtd">
11     <module name="Checker">
12         <property name="severity" value="warning"/>
13         <module name="TreeWalker">
14             <module name="FileContentsHolder"/>
15             <module name="JavadocMethod"/>
16             <module name="JavadocType"/>
17             <module name="JavadocVariable">
18                 <property name="severity" value="info"/>
19                 <property name="scope" value="package"/>
20             </module>
21             <module name="JavadocStyle">
22                 <property name="checkFirstSentence" value="false"/>
23             </module>
24             <module name="ConstantName"/>
25             <module name="LocalFinalVariableName"/>
26             <module name="LocalVariableName"/>
27             <module name="MemberName"/>
28             <module name="MethodName"/>
29             <module name="PackageName"/>
30             <module name="ParameterName"/>
31             <module name="StaticVariableName"/>
32             <module name="TypeName"/>
33             <module name="AvoidStarImport"/>
34             <module name="IllegalImport"/>
35             <module name="RedundantImport"/>
36             <module name="UnusedImports"/>
37             <module name="LineLength">
38                 <property name="max" value="150"/>
39             </module>
40             <module name="MethodLength"/>
41             <module name="ParameterNumber"/>
42             <module name="EmptyForIteratorPad"/>
43             <module name="MethodParamPad"/>
44             <module name="NoWhitespaceAfter"/>
45             <module name="NoWhitespaceBefore"/>
46             <module name="ParenPad"/>
47             <module name="TypecastParenPad"/>
48             <module name="WhitespaceAfter"/>
49             <module name="WhitespaceAround">
50                 <property name="tokens" value="ASSIGN,BAND,BAND_ASSIGN,BOR,BOR_ASSIGN,BSR,BSR_ASSIGN,BXOR,BXOR_ASSIGN,COLON,DIV,DIV_ASSIGN,EQUAL,GE,GT,LAND,LCURLY,LE,LITERAL_ASSERT,LITERAL_CATCH,LITERAL_DO,LITERAL_ELSE,LITERAL_FINALLY,LITERAL_FOR,LITERAL_IF,LITERAL_RETURN,LITERAL_SYNCHRONIZED,LITERAL_TRY,LITERAL_WHILE,LOR,LT,MINUS,MINUS_ASSIGN,MOD,MOD_ASSIGN,NOT_EQUAL,PLUS,PLUS_ASSIGN,QUESTION,RCURLY,SL,SLIST,SL_ASSIGN,SR,SR_ASSIGN,STAR,STAR_ASSIGN,LITERAL_ASSERT,TYPE_EXTENSION_AND,WILDCARD_TYPE"/>
51             </module>
52             <module name="ModifierOrder"/>
53             <module name="RedundantModifier"/>
54             <module name="AvoidNestedBlocks"/>
55             <module name="EmptyBlock"/>
56             <module name="LeftCurly"/>
57             <module name="NeedBraces"/>
58             <module name="RightCurly"/>
59             <module name="AvoidInlineConditionals"/>
60             <module name="EmptyStatement"/>
61             <module name="EqualsHashCode"/>
62             <module name="HiddenField">
63                 <property name="tokens" value="VARIABLE_DEF"/>
64             </module>
65             <module name="IllegalInstantiation"/>
66             <module name="InnerAssignment"/>
67             <module name="MagicNumber"/>
68             <module name="MissingSwitchDefault"/>
69             <module name="RedundantThrows"/>
70             <module name="SimplifyBooleanExpression"/>
71             <module name="SimplifyBooleanReturn"/>
72             <module name="DesignForExtension">
73                 <property name="severity" value="ignore"/>
74             </module>
75             <module name="FinalClass"/>
76             <module name="HideUtilityClassConstructor"/>
77             <module name="InterfaceIsType"/>
78             <module name="VisibilityModifier"/>
79             <module name="ArrayTypeStyle"/>
80             <module name="TodoComment"/>
81             <module name="UpperEll"/>
82             <module name="OperatorWrap">
83                 <property name="severity" value="error"/>
84             </module>
85             <module name="DefaultComesLast"/>
86             <module name="DeclarationOrder"/>
87             <module name="ExplicitInitialization"/>
88             <module name="FallThrough"/>
89             <module name="IllegalCatch"/>
90             <module name="IllegalThrows"/>
91             <module name="IllegalType">
92                 <property name="tokens" value="METHOD_DEF,PARAMETER_DEF,VARIABLE_DEF"/>
93             </module>
94             <module name="MissingCtor"/>
95             <module name="ModifiedControlVariable"/>
96             <module name="MultipleStringLiterals"/>
97             <module name="MultipleVariableDeclarations"/>
98             <module name="NestedIfDepth">
99                 <property name="max" value="3"/>
100             </module>
101             <module name="NestedTryDepth">
102                 <property name="max" value="2"/>
103             </module>
104             <module name="PackageDeclaration"/>
105             <module name="ParameterAssignment"/>
106             <module name="ReturnCount">
107                 <property name="max" value="4"/>
108             </module>
109             <module name="StringLiteralEquality"/>
110             <module name="SuperClone"/>
111             <module name="SuperFinalize"/>
112             <module name="BooleanExpressionComplexity">
113                 <property name="max" value="4"/>
114             </module>
115             <module name="ClassDataAbstractionCoupling"/>
116             <module name="ClassFanOutComplexity"/>
117             <module name="CyclomaticComplexity"/>
118             <module name="JavaNCSS"/>
119             <module name="NPathComplexity"/>
120         </module>
121         <module name="FileLength"/>
122         <module name="JavadocPackage">
123             <property name="severity" value="ignore"/>
124             <metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/>
125         </module>
126         <module name="NewlineAtEndOfFile"/>
127         <module name="Translation"/>
128         <!--    
129 Commented because we do need it (copy and paste for create bridges)
130 <module name="StrictDuplicateCode">
131         <property name="severity" value="info"/>
132     </module>-->
133         <module name="SuppressionCommentFilter">
134             <property name="offCommentFormat" value="CSOFF\: ([\w\|]+)"/>
135             <property name="onCommentFormat" value="CSON\: ([\w\|]+)"/>
136             <property name="checkFormat" value="$1"/>
137         </module>
138         <module name="SuppressionCommentFilter" />
139     </module>