Optimization demos: minor fix
[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="DoubleCheckedLocking"/>
61             <module name="EmptyStatement"/>
62             <module name="EqualsHashCode"/>
63             <module name="HiddenField">
64                 <property name="tokens" value="VARIABLE_DEF"/>
65             </module>
66             <module name="IllegalInstantiation"/>
67             <module name="InnerAssignment"/>
68             <module name="MagicNumber"/>
69             <module name="MissingSwitchDefault"/>
70             <module name="RedundantThrows"/>
71             <module name="SimplifyBooleanExpression"/>
72             <module name="SimplifyBooleanReturn"/>
73             <module name="DesignForExtension">
74                 <property name="severity" value="ignore"/>
75             </module>
76             <module name="FinalClass"/>
77             <module name="HideUtilityClassConstructor"/>
78             <module name="InterfaceIsType"/>
79             <module name="VisibilityModifier"/>
80             <module name="ArrayTypeStyle"/>
81             <module name="TodoComment"/>
82             <module name="UpperEll"/>
83             <module name="OperatorWrap">
84                 <property name="severity" value="error"/>
85             </module>
86             <module name="DefaultComesLast"/>
87             <module name="DeclarationOrder"/>
88             <module name="ExplicitInitialization"/>
89             <module name="FallThrough"/>
90             <module name="IllegalCatch"/>
91             <module name="IllegalThrows"/>
92             <module name="IllegalType">
93                 <property name="tokens" value="METHOD_DEF,PARAMETER_DEF,VARIABLE_DEF"/>
94             </module>
95             <module name="MissingCtor"/>
96             <module name="ModifiedControlVariable"/>
97             <module name="MultipleStringLiterals"/>
98             <module name="MultipleVariableDeclarations"/>
99             <module name="NestedIfDepth">
100                 <property name="max" value="3"/>
101             </module>
102             <module name="NestedTryDepth">
103                 <property name="max" value="2"/>
104             </module>
105             <module name="PackageDeclaration"/>
106             <module name="ParameterAssignment"/>
107             <module name="ReturnCount">
108                 <property name="max" value="4"/>
109             </module>
110             <module name="StringLiteralEquality"/>
111             <module name="SuperClone"/>
112             <module name="SuperFinalize"/>
113             <module name="BooleanExpressionComplexity">
114                 <property name="max" value="4"/>
115             </module>
116             <module name="ClassDataAbstractionCoupling"/>
117             <module name="ClassFanOutComplexity"/>
118             <module name="CyclomaticComplexity"/>
119             <module name="JavaNCSS"/>
120             <module name="NPathComplexity"/>
121         </module>
122         <module name="FileLength"/>
123         <module name="JavadocPackage">
124             <property name="severity" value="ignore"/>
125             <metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/>
126         </module>
127         <module name="NewlineAtEndOfFile"/>
128         <module name="Translation"/>
129         <!--    
130 Commented because we do need it (copy and paste for create bridges)
131 <module name="StrictDuplicateCode">
132         <property name="severity" value="info"/>
133     </module>-->
134         <module name="SuppressionCommentFilter">
135             <property name="offCommentFormat" value="CSOFF\: ([\w\|]+)"/>
136             <property name="onCommentFormat" value="CSON\: ([\w\|]+)"/>
137             <property name="checkFormat" value="$1"/>
138         </module>
139         <module name="SuppressionCommentFilter" />
140     </module>