Skip to content

Commit 4ad20ab

Browse files
SONARJAVA-5544 Deprecate rule S6291
1 parent 5d4cf0a commit 4ad20ab

5 files changed

Lines changed: 3 additions & 18 deletions

File tree

its/autoscan/src/test/resources/autoscan/autoscan-diff-by-rules.json

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2735,12 +2735,6 @@
27352735
"falseNegatives": 0,
27362736
"falsePositives": 0
27372737
},
2738-
{
2739-
"ruleKey": "S6291",
2740-
"hasTruePositives": true,
2741-
"falseNegatives": 0,
2742-
"falsePositives": 0
2743-
},
27442738
{
27452739
"ruleKey": "S6293",
27462740
"hasTruePositives": true,

its/autoscan/src/test/resources/autoscan/diffs/diff_S6291.json

Lines changed: 0 additions & 6 deletions
This file was deleted.

sonar-java-plugin/src/main/resources/org/sonar/l10n/java/rules/java/S6291.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<p>This rule is deprecated, and will eventually be removed.</p>
12
<p>Storing data locally is a common task for mobile applications. Such data includes preferences or authentication tokens for external services, among
23
other things. There are many convenient solutions that allow storing data persistently, for example SQLiteDatabase, SharedPreferences, and Realm. By
34
default these systems store the data unencrypted, thus an attacker with physical access to the device can read them out easily. Access to sensitive

sonar-java-plugin/src/main/resources/org/sonar/l10n/java/rules/java/S6291.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,12 @@
77
},
88
"attribute": "TRUSTWORTHY"
99
},
10-
"status": "ready",
10+
"status": "deprecated",
1111
"remediation": {
1212
"func": "Constant\/Issue",
1313
"constantCost": "10min"
1414
},
15-
"tags": [
16-
"cwe",
17-
"android"
18-
],
15+
"tags": [],
1916
"defaultSeverity": "Major",
2017
"ruleSpecification": "RSPEC-6291",
2118
"sqKey": "S6291",

sonar-java-plugin/src/main/resources/org/sonar/l10n/java/rules/java/Sonar_way_profile.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,6 @@
437437
"S6262",
438438
"S6263",
439439
"S6288",
440-
"S6291",
441440
"S6293",
442441
"S6300",
443442
"S6301",

0 commit comments

Comments
 (0)