]> source.dussan.org Git - sonarqube.git/blob
10a7f93fb6f3b5f82da9325f66fe6a51e9f59738
[sonarqube.git] /
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- generated by Sonar -->
3 <ruleset>
4   <description>Sonar way</description>
5   <rule ref="rulesets/unusedcode.xml/UnusedLocalVariable">
6     <priority>3</priority>
7   </rule>
8   <rule ref="rulesets/finalizers.xml/AvoidCallingFinalize">
9     <priority>3</priority>
10   </rule>
11   <rule ref="rulesets/unusedcode.xml/UnusedPrivateField">
12     <priority>3</priority>
13   </rule>
14   <rule ref="rulesets/finalizers.xml/FinalizeOverloaded">
15     <priority>3</priority>
16   </rule>
17   <rule ref="rulesets/finalizers.xml/FinalizeDoesNotCallSuperFinalize">
18     <priority>3</priority>
19   </rule>
20   <rule ref="rulesets/finalizers.xml/EmptyFinalizer">
21     <priority>3</priority>
22   </rule>
23   <rule ref="rulesets/unusedcode.xml/UnusedPrivateMethod">
24     <priority>3</priority>
25   </rule>
26   <rule ref="rulesets/unusedcode.xml/UnusedFormalParameter">
27     <priority>3</priority>
28   </rule>
29   <rule ref="rulesets/controversial.xml/UnusedModifier">
30     <priority>5</priority>
31   </rule>
32   <rule ref="rulesets/controversial.xml/DontImportSun">
33     <priority>4</priority>
34   </rule>
35   <rule ref="rulesets/design.xml/SingularField">
36     <priority>4</priority>
37   </rule>
38   <rule ref="rulesets/coupling.xml/LooseCoupling">
39     <priority>3</priority>
40   </rule>
41   <rule ref="rulesets/optimizations.xml/UseArrayListInsteadOfVector">
42     <priority>3</priority>
43   </rule>
44   <rule ref="rulesets/optimizations.xml/UseArraysAsList">
45     <priority>3</priority>
46   </rule>
47   <rule ref="rulesets/optimizations.xml/AvoidArrayLoops">
48     <priority>3</priority>
49   </rule>
50   <rule ref="rulesets/basic.xml/EmptyIfStmt">
51     <priority>2</priority>
52   </rule>
53   <rule ref="rulesets/basic.xml/EmptyWhileStmt">
54     <priority>2</priority>
55   </rule>
56   <rule ref="rulesets/basic.xml/EmptyTryBlock">
57     <priority>3</priority>
58   </rule>
59   <rule ref="rulesets/basic.xml/EmptyFinallyBlock">
60     <priority>2</priority>
61   </rule>
62   <rule ref="rulesets/basic.xml/EmptySwitchStatements">
63     <priority>3</priority>
64   </rule>
65   <rule ref="rulesets/basic.xml/EmptySynchronizedBlock">
66     <priority>2</priority>
67   </rule>
68   <rule ref="rulesets/basic.xml/EmptyStaticInitializer">
69     <priority>3</priority>
70   </rule>
71   <rule ref="rulesets/basic.xml/UnconditionalIfStatement">
72     <priority>2</priority>
73   </rule>
74   <rule ref="rulesets/basic.xml/BooleanInstantiation">
75     <priority>3</priority>
76   </rule>
77   <rule ref="rulesets/basic.xml/CollapsibleIfStatements">
78     <priority>4</priority>
79   </rule>
80   <rule ref="rulesets/basic.xml/UselessOverridingMethod">
81     <priority>3</priority>
82   </rule>
83   <rule ref="rulesets/basic.xml/ClassCastExceptionWithToArray">
84     <priority>3</priority>
85   </rule>
86   <rule ref="rulesets/basic.xml/AvoidDecimalLiteralsInBigDecimalConstructor">
87     <priority>3</priority>
88   </rule>
89   <rule ref="rulesets/basic.xml/UselessOperationOnImmutable">
90     <priority>2</priority>
91   </rule>
92   <rule ref="rulesets/basic.xml/UnusedNullCheckInEquals">
93     <priority>3</priority>
94   </rule>
95   <rule ref="rulesets/basic.xml/BrokenNullCheck">
96     <priority>2</priority>
97   </rule>
98   <rule ref="rulesets/basic.xml/BigIntegerInstantiation">
99     <priority>3</priority>
100   </rule>
101   <rule ref="rulesets/design.xml/ConstructorCallsOverridableMethod">
102     <priority>3</priority>
103   </rule>
104   <rule ref="rulesets/design.xml/FinalFieldCouldBeStatic">
105     <priority>4</priority>
106   </rule>
107   <rule ref="rulesets/design.xml/CloseResource">
108     <priority>3</priority>
109   </rule>
110   <rule ref="rulesets/design.xml/EqualsNull">
111     <priority>2</priority>
112   </rule>
113   <rule ref="rulesets/design.xml/InstantiationToGetClass">
114     <priority>3</priority>
115   </rule>
116   <rule ref="rulesets/design.xml/IdempotentOperations">
117     <priority>3</priority>
118   </rule>
119   <rule ref="rulesets/design.xml/MissingStaticMethodInNonInstantiatableClass">
120     <priority>3</priority>
121   </rule>
122   <rule ref="rulesets/design.xml/AvoidInstanceofChecksInCatchClause">
123     <priority>4</priority>
124   </rule>
125   <rule ref="rulesets/design.xml/SimplifyConditional">
126     <priority>3</priority>
127   </rule>
128   <rule ref="rulesets/design.xml/CompareObjectsWithEquals">
129     <priority>3</priority>
130   </rule>
131   <rule ref="rulesets/design.xml/UnnecessaryLocalBeforeReturn">
132     <priority>3</priority>
133   </rule>
134   <rule ref="rulesets/design.xml/PreserveStackTrace">
135     <priority>3</priority>
136   </rule>
137   <rule ref="rulesets/sunsecure.xml/ArrayIsStoredDirectly">
138     <priority>2</priority>
139   </rule>
140   <rule ref="rulesets/strictexception.xml/AvoidCatchingThrowable">
141     <priority>2</priority>
142   </rule>
143   <rule ref="rulesets/strictexception.xml/SignatureDeclareThrowsException">
144     <priority>3</priority>
145   </rule>
146   <rule ref="rulesets/strictexception.xml/ExceptionAsFlowControl">
147     <priority>3</priority>
148   </rule>
149   <rule ref="rulesets/strictexception.xml/AvoidCatchingNPE">
150     <priority>3</priority>
151   </rule>
152   <rule ref="rulesets/strictexception.xml/AvoidThrowingRawExceptionTypes">
153     <priority>3</priority>
154   </rule>
155   <rule ref="rulesets/strictexception.xml/AvoidThrowingNullPointerException">
156     <priority>3</priority>
157   </rule>
158   <rule ref="rulesets/strictexception.xml/AvoidRethrowingException">
159     <priority>3</priority>
160   </rule>
161   <rule ref="rulesets/strings.xml/AvoidDuplicateLiterals">
162     <priority>3</priority>
163   </rule>
164   <rule ref="rulesets/strings.xml/StringInstantiation">
165     <priority>3</priority>
166   </rule>
167   <rule ref="rulesets/strings.xml/StringToString">
168     <priority>3</priority>
169   </rule>
170   <rule ref="rulesets/strings.xml/InefficientStringBuffering">
171     <priority>3</priority>
172   </rule>
173   <rule ref="rulesets/strings.xml/UnnecessaryCaseChange">
174     <priority>4</priority>
175   </rule>
176   <rule ref="rulesets/strings.xml/UseStringBufferLength">
177     <priority>4</priority>
178   </rule>
179   <rule ref="rulesets/strings.xml/UseIndexOfChar">
180     <priority>3</priority>
181   </rule>
182   <rule ref="rulesets/strings.xml/UselessStringValueOf">
183     <priority>4</priority>
184   </rule>
185   <rule ref="rulesets/strings.xml/StringBufferInstantiationWithChar">
186     <priority>3</priority>
187   </rule>
188   <rule ref="rulesets/codesize.xml/NcssMethodCount">
189     <priority>3</priority>
190     <properties>
191       <property name="minimum" value="50"/>
192     </properties>
193   </rule>
194   <rule ref="rulesets/codesize.xml/NcssTypeCount">
195     <priority>3</priority>
196     <properties>
197       <property name="minimum" value="800"/>
198     </properties>
199   </rule>
200   <rule ref="rulesets/imports.xml/DontImportJavaLang">
201     <priority>4</priority>
202   </rule>
203   <rule ref="rulesets/clone.xml/CloneThrowsCloneNotSupportedException">
204     <priority>3</priority>
205   </rule>
206   <rule ref="rulesets/logging-jakarta-commons.xml/UseCorrectExceptionLogging">
207     <priority>3</priority>
208   </rule>
209   <rule ref="rulesets/naming.xml/ClassNamingConventions">
210     <priority>3</priority>
211   </rule>
212   <rule ref="rulesets/naming.xml/AvoidDollarSigns">
213     <priority>4</priority>
214   </rule>
215   <rule ref="rulesets/naming.xml/MethodWithSameNameAsEnclosingClass">
216     <priority>3</priority>
217   </rule>
218   <rule ref="rulesets/naming.xml/SuspiciousHashcodeMethodName">
219     <priority>3</priority>
220   </rule>
221   <rule ref="rulesets/naming.xml/SuspiciousConstantFieldName">
222     <priority>3</priority>
223   </rule>
224   <rule ref="rulesets/naming.xml/SuspiciousEqualsMethodName">
225     <priority>2</priority>
226   </rule>
227   <rule ref="rulesets/migrating.xml/ReplaceVectorWithList">
228     <priority>3</priority>
229   </rule>
230   <rule ref="rulesets/migrating.xml/ReplaceHashtableWithMap">
231     <priority>3</priority>
232   </rule>
233   <rule ref="rulesets/migrating.xml/ReplaceEnumerationWithIterator">
234     <priority>3</priority>
235   </rule>
236   <rule ref="rulesets/migrating.xml/AvoidEnumAsIdentifier">
237     <priority>3</priority>
238   </rule>
239   <rule ref="rulesets/migrating.xml/AvoidAssertAsIdentifier">
240     <priority>3</priority>
241   </rule>
242   <rule ref="rulesets/migrating.xml/IntegerInstantiation">
243     <priority>3</priority>
244   </rule>
245   <rule ref="rulesets/logging-java.xml/SystemPrintln">
246     <priority>3</priority>
247   </rule>
248   <rule ref="rulesets/logging-java.xml/AvoidPrintStackTrace">
249     <priority>3</priority>
250   </rule>
251   <rule ref="rulesets/braces.xml/IfStmtsMustUseBraces">
252     <priority>3</priority>
253   </rule>
254   <rule ref="rulesets/braces.xml/WhileLoopsMustUseBraces">
255     <priority>3</priority>
256   </rule>
257   <rule ref="rulesets/braces.xml/IfElseStmtsMustUseBraces">
258     <priority>3</priority>
259   </rule>
260   <rule ref="rulesets/braces.xml/ForLoopsMustUseBraces">
261     <priority>3</priority>
262   </rule>
263 </ruleset>