RULEAPI-614: mark unpredictable remediation cost

This commit is contained in:
Fred Tingaud 2022-01-19 16:39:02 +01:00 committed by GitHub
parent f3384de644
commit ebfa8932d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
26 changed files with 33 additions and 51 deletions

View File

@ -77,6 +77,13 @@
"$ref": "#/definitions/time" "$ref": "#/definitions/time"
} }
} }
}, {
"additionalProperties": false,
"properties": {
"func": {
"const": "Unpredictable"
}
}
} }
] ]
}, },
@ -231,7 +238,7 @@
"definitions": { "definitions": {
"time": { "time": {
"type": "string", "type": "string",
"pattern": "^[ ]*[0-9]+[ ]*(mn|min|h|d)$" "pattern": "^[ ]*[1-9][0-9]*[ ]*(mn|min|h|d)$"
} }
} }
} }

View File

@ -3,8 +3,7 @@
"type": "CODE_SMELL", "type": "CODE_SMELL",
"status": "ready", "status": "ready",
"remediation": { "remediation": {
"func": "Constant\/Issue", "func": "Unpredictable"
"constantCost": "0min"
}, },
"tags": [ "tags": [
"cwe" "cwe"

View File

@ -3,8 +3,7 @@
"type": "CODE_SMELL", "type": "CODE_SMELL",
"status": "ready", "status": "ready",
"remediation": { "remediation": {
"func": "Constant\/Issue", "func": "Unpredictable"
"constantCost": "0min"
}, },
"tags": [ "tags": [
"cwe" "cwe"

View File

@ -3,8 +3,7 @@
"type": "CODE_SMELL", "type": "CODE_SMELL",
"status": "closed", "status": "closed",
"remediation": { "remediation": {
"func": "Constant\/Issue", "func": "Unpredictable"
"constantCost": "0min"
}, },
"tags": [ "tags": [

View File

@ -3,8 +3,7 @@
"type": "CODE_SMELL", "type": "CODE_SMELL",
"status": "ready", "status": "ready",
"remediation": { "remediation": {
"func": "Constant\/Issue", "func": "Unpredictable"
"constantCost": "0min"
}, },
"tags": [ "tags": [

View File

@ -3,8 +3,7 @@
"type": "CODE_SMELL", "type": "CODE_SMELL",
"status": "closed", "status": "closed",
"remediation": { "remediation": {
"func": "Constant\/Issue", "func": "Unpredictable"
"constantCost": "0min"
}, },
"tags": [ "tags": [

View File

@ -3,8 +3,7 @@
"type": "CODE_SMELL", "type": "CODE_SMELL",
"status": "closed", "status": "closed",
"remediation": { "remediation": {
"func": "Constant\/Issue", "func": "Unpredictable"
"constantCost": "0min"
}, },
"tags": [ "tags": [

View File

@ -3,8 +3,7 @@
"type": "CODE_SMELL", "type": "CODE_SMELL",
"status": "closed", "status": "closed",
"remediation": { "remediation": {
"func": "Constant\/Issue", "func": "Unpredictable"
"constantCost": "0min"
}, },
"tags": [ "tags": [

View File

@ -3,8 +3,7 @@
"type": "CODE_SMELL", "type": "CODE_SMELL",
"status": "closed", "status": "closed",
"remediation": { "remediation": {
"func": "Constant\/Issue", "func": "Unpredictable"
"constantCost": "0min"
}, },
"tags": [ "tags": [

View File

@ -3,8 +3,7 @@
"type": "CODE_SMELL", "type": "CODE_SMELL",
"status": "closed", "status": "closed",
"remediation": { "remediation": {
"func": "Constant\/Issue", "func": "Unpredictable"
"constantCost": "0min"
}, },
"tags": [ "tags": [

View File

@ -3,8 +3,7 @@
"type": "CODE_SMELL", "type": "CODE_SMELL",
"status": "closed", "status": "closed",
"remediation": { "remediation": {
"func": "Constant\/Issue", "func": "Unpredictable"
"constantCost": "0min"
}, },
"tags": [ "tags": [

View File

@ -3,8 +3,7 @@
"type": "CODE_SMELL", "type": "CODE_SMELL",
"status": "closed", "status": "closed",
"remediation": { "remediation": {
"func": "Constant\/Issue", "func": "Unpredictable"
"constantCost": "0min"
}, },
"tags": [ "tags": [

View File

@ -3,8 +3,7 @@
"type": "CODE_SMELL", "type": "CODE_SMELL",
"status": "closed", "status": "closed",
"remediation": { "remediation": {
"func": "Constant\/Issue", "func": "Unpredictable"
"constantCost": "0min"
}, },
"tags": [ "tags": [

View File

@ -3,8 +3,7 @@
"type": "CODE_SMELL", "type": "CODE_SMELL",
"status": "ready", "status": "ready",
"remediation": { "remediation": {
"func": "Constant\/Issue", "func": "Unpredictable"
"constantCost": "0min"
}, },
"tags": [ "tags": [

View File

@ -3,8 +3,7 @@
"type": "CODE_SMELL", "type": "CODE_SMELL",
"status": "closed", "status": "closed",
"remediation": { "remediation": {
"func": "Constant\/Issue", "func": "Unpredictable"
"constantCost": "0min"
}, },
"tags": [ "tags": [
"bug" "bug"

View File

@ -3,8 +3,7 @@
"type": "CODE_SMELL", "type": "CODE_SMELL",
"status": "ready", "status": "ready",
"remediation": { "remediation": {
"func": "Constant\/Issue", "func": "Unpredictable"
"constantCost": "0min"
}, },
"tags": [ "tags": [

View File

@ -1,7 +1,6 @@
{ {
"remediation": { "remediation": {
"func": "Constant\/Issue", "func": "Unpredictable"
"constantCost": "0min"
}, },
"sqKey": "ParsingError" "sqKey": "ParsingError"
} }

View File

@ -3,8 +3,7 @@
"type": "CODE_SMELL", "type": "CODE_SMELL",
"status": "ready", "status": "ready",
"remediation": { "remediation": {
"func": "Constant\/Issue", "func": "Unpredictable"
"constantCost": "0min"
}, },
"tags": [ "tags": [
"maven" "maven"

View File

@ -3,8 +3,7 @@
"type": "BUG", "type": "BUG",
"status": "ready", "status": "ready",
"remediation": { "remediation": {
"func": "Constant\/Issue", "func": "Unpredictable"
"constantCost": "0min"
}, },
"tags": [ "tags": [
"denial-of-service" "denial-of-service"

View File

@ -3,8 +3,7 @@
"type": "CODE_SMELL", "type": "CODE_SMELL",
"status": "closed", "status": "closed",
"remediation": { "remediation": {
"func": "Constant\/Issue", "func": "Unpredictable"
"constantCost": "0min"
}, },
"tags": [ "tags": [
"finding", "finding",

View File

@ -3,8 +3,7 @@
"type": "CODE_SMELL", "type": "CODE_SMELL",
"status": "ready", "status": "ready",
"remediation": { "remediation": {
"func": "Constant\/Issue", "func": "Unpredictable"
"constantCost": "0min"
}, },
"tags": [ "tags": [

View File

@ -3,8 +3,7 @@
"type": "CODE_SMELL", "type": "CODE_SMELL",
"status": "ready", "status": "ready",
"remediation": { "remediation": {
"func": "Constant\/Issue", "func": "Unpredictable"
"constantCost": "0min"
}, },
"tags": [ "tags": [

View File

@ -3,8 +3,7 @@
"type": "CODE_SMELL", "type": "CODE_SMELL",
"status": "ready", "status": "ready",
"remediation": { "remediation": {
"func": "Constant\/Issue", "func": "Unpredictable"
"constantCost": "0min"
}, },
"tags": [ "tags": [

View File

@ -3,8 +3,7 @@
"type": "BUG", "type": "BUG",
"status": "closed", "status": "closed",
"remediation": { "remediation": {
"func": "Constant\/Issue", "func": "Unpredictable"
"constantCost": "0min"
}, },
"tags": [ "tags": [
"antipattern", "antipattern",

View File

@ -3,8 +3,7 @@
"type": "CODE_SMELL", "type": "CODE_SMELL",
"status": "ready", "status": "ready",
"remediation": { "remediation": {
"func": "Constant\/Issue", "func": "Unpredictable"
"constantCost": "0min"
}, },
"tags": [ "tags": [

View File

@ -3,8 +3,7 @@
"type": "CODE_SMELL", "type": "CODE_SMELL",
"status": "ready", "status": "ready",
"remediation": { "remediation": {
"func": "Constant\/Issue", "func": "Unpredictable"
"constantCost": "0min"
}, },
"tags": [ "tags": [
"java10" "java10"