|
104 | 104 | "severity": "MAJOR", |
105 | 105 | "url": "https://spotbugs.readthedocs.io/en/latest/bugDescriptions.html#bc-impossible-cast" |
106 | 106 | }, |
| 107 | + { |
| 108 | + "key": "BC_NULL_INSTANCEOF", |
| 109 | + "name": "Correctness - A known null value is checked to see if it is an instance of a type", |
| 110 | + "type": "BUG", |
| 111 | + "severity": "MAJOR", |
| 112 | + "url": "https://spotbugs.readthedocs.io/en/latest/bugDescriptions.html#bc-null-instanceof", |
| 113 | + "comment": "LEGACY RULE, do not remove" |
| 114 | + }, |
107 | 115 | { |
108 | 116 | "key": "BC_IMPOSSIBLE_CAST_PRIMITIVE_ARRAY", |
109 | 117 | "name": "Correctness - Impossible cast involving primitive array", |
|
132 | 140 | "severity": "MAJOR", |
133 | 141 | "url": "https://spotbugs.readthedocs.io/en/latest/bugDescriptions.html#bc-impossible-instanceof" |
134 | 142 | }, |
135 | | - { |
136 | | - "key": "BC_NULL_INSTANCEOF", |
137 | | - "name": "Correctness - A known null value is checked to see if it is an instance of a type", |
138 | | - "type": "BUG", |
139 | | - "severity": "MAJOR", |
140 | | - "url": "https://spotbugs.readthedocs.io/en/latest/bugDescriptions.html#bc-null-instanceof" |
141 | | - }, |
142 | 143 | { |
143 | 144 | "key": "BC_UNCONFIRMED_CAST", |
144 | 145 | "name": "Style - Unchecked/unconfirmed cast", |
|
195 | 196 | "severity": "MAJOR", |
196 | 197 | "url": "https://spotbugs.readthedocs.io/en/latest/bugDescriptions.html#bit-ior-of-signed-byte" |
197 | 198 | }, |
| 199 | + { |
| 200 | + "key": "BRSA_BAD_RESULTSET_ACCESS", |
| 201 | + "name": "Correctness - Method attempts to access a result set field with index 0", |
| 202 | + "type": "BUG", |
| 203 | + "severity": "MAJOR", |
| 204 | + "url": "https://spotbugs.readthedocs.io/en/latest/bugDescriptions.html#brsa-bad-resultset-access", |
| 205 | + "comment": "LEGACY RULE, do not remove" |
| 206 | + }, |
198 | 207 | { |
199 | 208 | "key": "BIT_SIGNED_CHECK", |
200 | 209 | "name": "Bad practice - Check for sign of bitwise operation", |
|
216 | 225 | "severity": "MAJOR", |
217 | 226 | "url": "https://spotbugs.readthedocs.io/en/latest/bugDescriptions.html#boa-badly-overridden-adapter" |
218 | 227 | }, |
219 | | - { |
220 | | - "key": "BRSA_BAD_RESULTSET_ACCESS", |
221 | | - "name": "Correctness - Method attempts to access a result set field with index 0", |
222 | | - "type": "BUG", |
223 | | - "severity": "MAJOR", |
224 | | - "url": "https://spotbugs.readthedocs.io/en/latest/bugDescriptions.html#brsa-bad-resultset-access" |
225 | | - }, |
226 | 228 | { |
227 | 229 | "key": "BSHIFT_WRONG_ADD_PRIORITY", |
228 | 230 | "name": "Correctness - Possible bad parsing of shift operation", |
|
1595 | 1597 | "severity": "MAJOR", |
1596 | 1598 | "url": "https://spotbugs.readthedocs.io/en/latest/bugDescriptions.html#jcip-field-isnt-final-in-immutable-class" |
1597 | 1599 | }, |
| 1600 | + { |
| 1601 | + "key": "LI_LAZY_INIT_INSTANCE", |
| 1602 | + "name": "Multi-threading - Incorrect lazy initialization of instance field", |
| 1603 | + "type": "BUG", |
| 1604 | + "severity": "MAJOR", |
| 1605 | + "url": "https://spotbugs.readthedocs.io/en/latest/bugDescriptions.html#li-lazy-init-instance", |
| 1606 | + "comment": "LEGACY RULE, do not remove" |
| 1607 | + }, |
1598 | 1608 | { |
1599 | 1609 | "key": "JLM_JSR166_LOCK_MONITORENTER", |
1600 | 1610 | "name": "Multi-threading - Synchronization performed on Lock", |
|
1630 | 1640 | "severity": "MAJOR", |
1631 | 1641 | "url": "https://spotbugs.readthedocs.io/en/latest/bugDescriptions.html#lg-lost-logger-due-to-weak-reference" |
1632 | 1642 | }, |
1633 | | - { |
1634 | | - "key": "LI_LAZY_INIT_INSTANCE", |
1635 | | - "name": "Multi-threading - Incorrect lazy initialization of instance field", |
1636 | | - "type": "BUG", |
1637 | | - "severity": "MAJOR", |
1638 | | - "url": "https://spotbugs.readthedocs.io/en/latest/bugDescriptions.html#li-lazy-init-instance" |
1639 | | - }, |
1640 | 1643 | { |
1641 | 1644 | "key": "LI_LAZY_INIT_STATIC", |
1642 | 1645 | "name": "Multi-threading - Incorrect lazy initialization of static field", |
|
2295 | 2298 | "severity": "MAJOR", |
2296 | 2299 | "url": "https://spotbugs.readthedocs.io/en/latest/bugDescriptions.html#pa-public-array-attribute" |
2297 | 2300 | }, |
| 2301 | + { |
| 2302 | + "key": "PI_DO_NOT_REUSE_PUBLIC_IDENTIFIERS_INNER_CLASS_NAMES", |
| 2303 | + "name": "Bad practice - Do not reuse public identifiers from JSL as inner name", |
| 2304 | + "type": "CODE_SMELL", |
| 2305 | + "severity": "MAJOR", |
| 2306 | + "url": "https://spotbugs.readthedocs.io/en/latest/bugDescriptions.html#pi-do-not-reuse-public-identifiers-inner-class-names", |
| 2307 | + "comment": "LEGACY RULE, do not remove" |
| 2308 | + }, |
2298 | 2309 | { |
2299 | 2310 | "key": "PA_PUBLIC_MUTABLE_OBJECT_ATTRIBUTE", |
2300 | 2311 | "name": "Bad practice - Mutable object-type field is public", |
|
2393 | 2404 | "severity": "MAJOR", |
2394 | 2405 | "url": "https://spotbugs.readthedocs.io/en/latest/bugDescriptions.html#qf-questionable-for-loop" |
2395 | 2406 | }, |
| 2407 | + { |
| 2408 | + "key": "RCN_REDUNDANT_CHECKED_NULL_COMPARISON", |
| 2409 | + "name": "Style - Redundant comparison to null of previously checked value", |
| 2410 | + "type": "CODE_SMELL", |
| 2411 | + "severity": "MAJOR", |
| 2412 | + "url": "https://spotbugs.readthedocs.io/en/latest/bugDescriptions.html#rcn-redundant-checked-null-comparison", |
| 2413 | + "comment": "LEGACY RULE, do not remove" |
| 2414 | + }, |
2396 | 2415 | { |
2397 | 2416 | "key": "RANGE_ARRAY_INDEX", |
2398 | 2417 | "name": "Correctness - Array index is out of bounds", |
|
2421 | 2440 | "severity": "MAJOR", |
2422 | 2441 | "url": "https://spotbugs.readthedocs.io/en/latest/bugDescriptions.html#range-string-index" |
2423 | 2442 | }, |
2424 | | - { |
2425 | | - "key": "RCN_REDUNDANT_CHECKED_NULL_COMPARISON", |
2426 | | - "name": "Style - Redundant comparison to null of previously checked value", |
2427 | | - "type": "CODE_SMELL", |
2428 | | - "severity": "MAJOR", |
2429 | | - "url": "https://spotbugs.readthedocs.io/en/latest/bugDescriptions.html#rcn-redundant-checked-null-comparison" |
2430 | | - }, |
2431 | 2443 | { |
2432 | 2444 | "key": "RCN_REDUNDANT_COMPARISON_OF_NULL_AND_NONNULL_VALUE", |
2433 | 2445 | "name": "Style - Redundant comparison of non-null value to null", |
|
3093 | 3105 | "severity": "MAJOR", |
3094 | 3106 | "url": "https://spotbugs.readthedocs.io/en/latest/bugDescriptions.html#st-write-to-static-from-instance-method" |
3095 | 3107 | }, |
| 3108 | + { |
| 3109 | + "key": "TLW_TWO_LOCK_NOTIFY", |
| 3110 | + "name": "Multi-threading - Notify with two locks held", |
| 3111 | + "type": "BUG", |
| 3112 | + "severity": "MAJOR", |
| 3113 | + "url": "https://spotbugs.readthedocs.io/en/latest/bugDescriptions.html#tlw-two-lock-notify", |
| 3114 | + "comment": "LEGACY RULE, do not remove" |
| 3115 | + }, |
3096 | 3116 | { |
3097 | 3117 | "key": "SWL_SLEEP_WITH_LOCK_HELD", |
3098 | 3118 | "name": "Multi-threading - Method calls Thread.sleep() with a lock held", |
|
3156 | 3176 | "severity": "MAJOR", |
3157 | 3177 | "url": "https://spotbugs.readthedocs.io/en/latest/bugDescriptions.html#throws-method-throws-runtimeexception" |
3158 | 3178 | }, |
3159 | | - { |
3160 | | - "key": "TLW_TWO_LOCK_NOTIFY", |
3161 | | - "name": "Multi-threading - Notify with two locks held", |
3162 | | - "type": "BUG", |
3163 | | - "severity": "MAJOR", |
3164 | | - "url": "https://spotbugs.readthedocs.io/en/latest/bugDescriptions.html#tlw-two-lock-notify" |
3165 | | - }, |
3166 | 3179 | { |
3167 | 3180 | "key": "TLW_TWO_LOCK_WAIT", |
3168 | 3181 | "name": "Multi-threading - Wait with two locks held", |
|
3380 | 3393 | "severity": "MAJOR", |
3381 | 3394 | "url": "https://spotbugs.readthedocs.io/en/latest/bugDescriptions.html#usm-useless-subclass-method" |
3382 | 3395 | }, |
| 3396 | + { |
| 3397 | + "key": "US_USELESS_SUPPRESSION_ON_CLASS", |
| 3398 | + "name": "Style - Useless suppression on a class", |
| 3399 | + "type": "CODE_SMELL", |
| 3400 | + "severity": "MAJOR", |
| 3401 | + "url": "https://spotbugs.readthedocs.io/en/latest/bugDescriptions.html#us-useless-suppression-on-class" |
| 3402 | + }, |
| 3403 | + { |
| 3404 | + "key": "US_USELESS_SUPPRESSION_ON_FIELD", |
| 3405 | + "name": "Style - Useless suppression on a field", |
| 3406 | + "type": "CODE_SMELL", |
| 3407 | + "severity": "MAJOR", |
| 3408 | + "url": "https://spotbugs.readthedocs.io/en/latest/bugDescriptions.html#us-useless-suppression-on-field" |
| 3409 | + }, |
| 3410 | + { |
| 3411 | + "key": "US_USELESS_SUPPRESSION_ON_METHOD", |
| 3412 | + "name": "Style - Useless suppression on a method", |
| 3413 | + "type": "CODE_SMELL", |
| 3414 | + "severity": "MAJOR", |
| 3415 | + "url": "https://spotbugs.readthedocs.io/en/latest/bugDescriptions.html#us-useless-suppression-on-method" |
| 3416 | + }, |
| 3417 | + { |
| 3418 | + "key": "US_USELESS_SUPPRESSION_ON_METHOD_PARAMETER", |
| 3419 | + "name": "Style - Useless suppression on a method parameter", |
| 3420 | + "type": "CODE_SMELL", |
| 3421 | + "severity": "MAJOR", |
| 3422 | + "url": "https://spotbugs.readthedocs.io/en/latest/bugDescriptions.html#us-useless-suppression-on-method-parameter" |
| 3423 | + }, |
| 3424 | + { |
| 3425 | + "key": "US_USELESS_SUPPRESSION_ON_PACKAGE", |
| 3426 | + "name": "Style - Useless suppression on a package", |
| 3427 | + "type": "CODE_SMELL", |
| 3428 | + "severity": "MAJOR", |
| 3429 | + "url": "https://spotbugs.readthedocs.io/en/latest/bugDescriptions.html#us-useless-suppression-on-package" |
| 3430 | + }, |
3383 | 3431 | { |
3384 | 3432 | "key": "UUF_UNUSED_FIELD", |
3385 | 3433 | "name": "Performance - Unused field", |
|
0 commit comments