Skip to content

Commit 017d16b

Browse files
SONARJAVA-5342 Update spotbugs rules (#5031)
1 parent 40fcf37 commit 017d16b

1 file changed

Lines changed: 44 additions & 2 deletions

File tree

external-reports/src/main/resources/org/sonar/l10n/java/rules/spotbugs/spotbugs-rules.json

Lines changed: 44 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,41 @@
3434
"severity": "MAJOR",
3535
"url": "https://spotbugs.readthedocs.io/en/latest/bugDescriptions.html#ase-assertion-with-side-effect-method"
3636
},
37+
{
38+
"key": "AT_NONATOMIC_64BIT_PRIMITIVE",
39+
"name": "Multi-threading - This write of this 64-bit primitive variable may not atomic",
40+
"type": "BUG",
41+
"severity": "MAJOR",
42+
"url": "https://spotbugs.readthedocs.io/en/latest/bugDescriptions.html#at-nonatomic-64bit-primitive"
43+
},
44+
{
45+
"key": "AT_NONATOMIC_OPERATIONS_ON_SHARED_VARIABLE",
46+
"name": "Multi-threading - Operation on shared variable is not atomic",
47+
"type": "BUG",
48+
"severity": "MAJOR",
49+
"url": "https://spotbugs.readthedocs.io/en/latest/bugDescriptions.html#at-nonatomic-operations-on-shared-variable"
50+
},
3751
{
3852
"key": "AT_OPERATION_SEQUENCE_ON_CONCURRENT_ABSTRACTION",
3953
"name": "Multi-threading - Sequence of calls to concurrent abstraction may not be atomic",
4054
"type": "BUG",
4155
"severity": "MAJOR",
4256
"url": "https://spotbugs.readthedocs.io/en/latest/bugDescriptions.html#at-operation-sequence-on-concurrent-abstraction"
4357
},
58+
{
59+
"key": "AT_STALE_THREAD_WRITE_OF_PRIMITIVE",
60+
"name": "Multi-threading - This write of this shared primitive variable may not be visible to other threads",
61+
"type": "BUG",
62+
"severity": "MAJOR",
63+
"url": "https://spotbugs.readthedocs.io/en/latest/bugDescriptions.html#at-stale-thread-write-of-primitive"
64+
},
65+
{
66+
"key": "AT_UNSAFE_RESOURCE_ACCESS_IN_THREAD",
67+
"name": "Multi-threading - Operation on resource is not safe in a multithreaded context",
68+
"type": "BUG",
69+
"severity": "MAJOR",
70+
"url": "https://spotbugs.readthedocs.io/en/latest/bugDescriptions.html#at-unsafe-resource-access-in-thread"
71+
},
4472
{
4573
"key": "BAC_BAD_APPLET_CONSTRUCTOR",
4674
"name": "Correctness - Bad Applet Constructor relies on uninitialized AppletStub",
@@ -1147,6 +1175,13 @@
11471175
"severity": "MAJOR",
11481176
"url": "https://spotbugs.readthedocs.io/en/latest/bugDescriptions.html#fl-math-using-float-precision"
11491177
},
1178+
{
1179+
"key": "FS_BAD_DATE_FORMAT_FLAG_COMBO",
1180+
"name": "Bad practice - Date-format strings may lead to unexpected behavior",
1181+
"type": "CODE_SMELL",
1182+
"severity": "MAJOR",
1183+
"url": "https://spotbugs.readthedocs.io/en/latest/bugDescriptions.html#fs-bad-date-format-flag-combo"
1184+
},
11501185
{
11511186
"key": "GC_UNCHECKED_TYPE_IN_GENERIC_CALL",
11521187
"name": "Bad practice - Unchecked type in generic call",
@@ -1231,6 +1266,13 @@
12311266
"severity": "MAJOR",
12321267
"url": "https://spotbugs.readthedocs.io/en/latest/bugDescriptions.html#hsc-huge-shared-string-constant"
12331268
},
1269+
{
1270+
"key": "HSM_HIDING_METHOD",
1271+
"name": "Correctness - Method hiding should be avoided.",
1272+
"type": "BUG",
1273+
"severity": "MAJOR",
1274+
"url": "https://spotbugs.readthedocs.io/en/latest/bugDescriptions.html#hsm-hiding-method"
1275+
},
12341276
{
12351277
"key": "IA_AMBIGUOUS_INVOCATION_OF_INHERITED_OR_OUTER_METHOD",
12361278
"name": "Style - Potentially ambiguous invocation of either an inherited or outer method",
@@ -3095,14 +3137,14 @@
30953137
},
30963138
{
30973139
"key": "THROWS_METHOD_THROWS_CLAUSE_BASIC_EXCEPTION",
3098-
"name": "Bad practice - Method lists Exception in its throws clause.",
3140+
"name": "Bad practice - Method lists Exception in its throws clause, but it could be more specific.",
30993141
"type": "CODE_SMELL",
31003142
"severity": "MAJOR",
31013143
"url": "https://spotbugs.readthedocs.io/en/latest/bugDescriptions.html#throws-method-throws-clause-basic-exception"
31023144
},
31033145
{
31043146
"key": "THROWS_METHOD_THROWS_CLAUSE_THROWABLE",
3105-
"name": "Bad practice - Method lists Throwable in its throws clause.",
3147+
"name": "Bad practice - Method lists Throwable in its throws clause, but it could be more specific.",
31063148
"type": "CODE_SMELL",
31073149
"severity": "MAJOR",
31083150
"url": "https://spotbugs.readthedocs.io/en/latest/bugDescriptions.html#throws-method-throws-clause-throwable"

0 commit comments

Comments
 (0)