RULEAPI-614: mark unpredictable remediation cost
This commit is contained in:
parent
f3384de644
commit
ebfa8932d1
@ -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)$"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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"
|
||||||
|
@ -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"
|
||||||
|
@ -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": [
|
||||||
|
|
||||||
|
@ -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": [
|
||||||
|
|
||||||
|
@ -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": [
|
||||||
|
|
||||||
|
@ -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": [
|
||||||
|
|
||||||
|
@ -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": [
|
||||||
|
|
||||||
|
@ -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": [
|
||||||
|
|
||||||
|
@ -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": [
|
||||||
|
|
||||||
|
@ -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": [
|
||||||
|
|
||||||
|
@ -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": [
|
||||||
|
|
||||||
|
@ -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": [
|
||||||
|
|
||||||
|
@ -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": [
|
||||||
|
|
||||||
|
@ -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"
|
||||||
|
@ -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": [
|
||||||
|
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
{
|
{
|
||||||
"remediation": {
|
"remediation": {
|
||||||
"func": "Constant\/Issue",
|
"func": "Unpredictable"
|
||||||
"constantCost": "0min"
|
|
||||||
},
|
},
|
||||||
"sqKey": "ParsingError"
|
"sqKey": "ParsingError"
|
||||||
}
|
}
|
||||||
|
@ -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"
|
||||||
|
@ -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"
|
||||||
|
@ -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",
|
||||||
|
@ -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": [
|
||||||
|
|
||||||
|
@ -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": [
|
||||||
|
|
||||||
|
@ -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": [
|
||||||
|
|
||||||
|
@ -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",
|
||||||
|
@ -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": [
|
||||||
|
|
||||||
|
@ -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"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user