Skip to content

Commit 64330d8

Browse files
Update rules metadata (#931)
1 parent d7fe1d8 commit 64330d8

31 files changed

+121
-1
lines changed

python-checks/src/main/resources/org/sonar/l10n/py/rules/python/CommentRegularExpression.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
"title": "Track comments matching a regular expression",
33
"type": "CODE_SMELL",
44
"status": "ready",
5+
"remediation": {
6+
"func": "Constant\/Issue",
7+
"constantCost": "0min"
8+
},
59
"tags": [
610

711
],

python-checks/src/main/resources/org/sonar/l10n/py/rules/python/S1134.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
"title": "Track uses of \"FIXME\" tags",
33
"type": "CODE_SMELL",
44
"status": "ready",
5+
"remediation": {
6+
"func": "Constant\/Issue",
7+
"constantCost": "1h"
8+
},
59
"tags": [
610
"cwe"
711
],

python-checks/src/main/resources/org/sonar/l10n/py/rules/python/S1707.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
"title": "Track \"TODO\" and \"FIXME\" comments that do not contain a reference to a person",
33
"type": "CODE_SMELL",
44
"status": "ready",
5+
"remediation": {
6+
"func": "Constant\/Issue",
7+
"constantCost": "2min"
8+
},
59
"tags": [
610
"convention"
711
],

python-checks/src/main/resources/org/sonar/l10n/py/rules/python/S3862.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
"title": "Iterable unpacking, \"for-in\" loops and \"yield from\" should use an Iterable object",
33
"type": "BUG",
44
"status": "ready",
5+
"remediation": {
6+
"func": "Constant\/Issue",
7+
"constantCost": "5min"
8+
},
59
"tags": [
610

711
],

python-checks/src/main/resources/org/sonar/l10n/py/rules/python/S5439.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
"title": "HTML autoescape mechanism should not be globally disabled",
33
"type": "VULNERABILITY",
44
"status": "deprecated",
5+
"remediation": {
6+
"func": "Constant\/Issue",
7+
"constantCost": "5min"
8+
},
59
"tags": [
610

711
],

python-checks/src/main/resources/org/sonar/l10n/py/rules/python/S5445.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
"title": "Insecure temporary file creation methods should not be used",
33
"type": "VULNERABILITY",
44
"status": "ready",
5+
"remediation": {
6+
"func": "Constant\/Issue",
7+
"constantCost": "10min"
8+
},
59
"tags": [
610
"cwe",
711
"owasp-a9"

python-checks/src/main/resources/org/sonar/l10n/py/rules/python/S5542.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
"title": "Encryption algorithms should be used with secure mode and padding scheme",
33
"type": "VULNERABILITY",
44
"status": "ready",
5+
"remediation": {
6+
"func": "Constant\/Issue",
7+
"constantCost": "20min"
8+
},
59
"tags": [
610
"cwe",
711
"privacy",

python-checks/src/main/resources/org/sonar/l10n/py/rules/python/S5547.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
"title": "Cipher algorithms should be robust",
33
"type": "VULNERABILITY",
44
"status": "ready",
5+
"remediation": {
6+
"func": "Constant\/Issue",
7+
"constantCost": "15min"
8+
},
59
"tags": [
610
"cwe",
711
"privacy",

python-checks/src/main/resources/org/sonar/l10n/py/rules/python/S5603.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
"title": "Unused scope-limited definitions should be removed",
33
"type": "CODE_SMELL",
44
"status": "ready",
5+
"remediation": {
6+
"func": "Constant\/Issue",
7+
"constantCost": "5min"
8+
},
59
"tags": [
610
"unused"
711
],

python-checks/src/main/resources/org/sonar/l10n/py/rules/python/S5607.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
"title": "Operators should be used on compatible types",
33
"type": "BUG",
44
"status": "ready",
5+
"remediation": {
6+
"func": "Constant\/Issue",
7+
"constantCost": "20min"
8+
},
59
"tags": [
610

711
],

0 commit comments

Comments
 (0)