Skip to content

Commit

Permalink
NET-1038 Add symbolic-execution tag to our rules (#4621)
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-meseldzija-sonarsource authored Jan 28, 2025
1 parent 4c6681e commit 2dc3a33
Show file tree
Hide file tree
Showing 25 changed files with 93 additions and 28 deletions.
5 changes: 4 additions & 1 deletion rules/S2053/csharp/metadata.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{

"tags": [
"cwe",
"symbolic-execution"
]
}
5 changes: 4 additions & 1 deletion rules/S2053/vbnet/metadata.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{

"tags": [
"cwe",
"symbolic-execution"
]
}
6 changes: 1 addition & 5 deletions rules/S2222/java/metadata.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
{
"tags": [
"cwe",
"multi-threading",
"symbolic-execution"
]

}
3 changes: 2 additions & 1 deletion rules/S2222/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
},
"tags": [
"cwe",
"multi-threading"
"multi-threading",
"symbolic-execution"
],
"extra": {
"replacementRules": [
Expand Down
6 changes: 5 additions & 1 deletion rules/S2259/csharp/metadata.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
{
"quickfix": "infeasible"
"quickfix": "infeasible",
"tags": [
"cwe",
"symbolic-execution"
]
}
6 changes: 5 additions & 1 deletion rules/S2259/vbnet/metadata.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
{
"quickfix": "infeasible"
"quickfix": "infeasible",
"tags": [
"cwe",
"symbolic-execution"
]
}
9 changes: 8 additions & 1 deletion rules/S2583/csharp/metadata.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
{
"quickfix": "targeted"
"quickfix": "targeted",
"tags": [
"cwe",
"unused",
"suspicious",
"pitfall",
"symbolic-execution"
]
}
9 changes: 8 additions & 1 deletion rules/S2583/vbnet/metadata.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
{
"quickfix": "targeted"
"quickfix": "targeted",
"tags": [
"cwe",
"unused",
"suspicious",
"pitfall",
"symbolic-execution"
]
}
7 changes: 6 additions & 1 deletion rules/S2589/csharp/metadata.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
{

"tags": [
"cwe",
"suspicious",
"redundant",
"symbolic-execution"
]
}
8 changes: 7 additions & 1 deletion rules/S2589/vbnet/metadata.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
{
"quickfix": "targeted"
"quickfix": "targeted" ,
"tags": [
"cwe",
"suspicious",
"redundant",
"symbolic-execution"
]
}
6 changes: 5 additions & 1 deletion rules/S3329/csharp/metadata.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
{
"quickfix": "targeted"
"quickfix": "targeted",
"tags": [
"cwe",
"symbolic-execution"
]
}
6 changes: 5 additions & 1 deletion rules/S3329/vbnet/metadata.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
{
"quickfix": "targeted"
"quickfix": "targeted",
"tags": [
"cwe",
"symbolic-execution"
]
}
6 changes: 1 addition & 5 deletions rules/S3655/java/metadata.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
{
"title": "Optional value should only be accessed after calling isPresent()",
"tags": [
"cwe",
"symbolic-execution"
]
"title": "Optional value should only be accessed after calling isPresent()"
}
3 changes: 2 additions & 1 deletion rules/S3655/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"constantCost": "10min"
},
"tags": [
"cwe"
"cwe",
"symbolic-execution"
],
"extra": {
"replacementRules": [
Expand Down
3 changes: 2 additions & 1 deletion rules/S3900/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"constantCost": "5min"
},
"tags": [
"convention"
"convention",
"symbolic-execution"
],
"extra": {
"replacementRules": [
Expand Down
3 changes: 2 additions & 1 deletion rules/S3949/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"constantCost": "5min"
},
"tags": [
"overflow"
"overflow",
"symbolic-execution"
],
"extra": {
"replacementRules": [
Expand Down
3 changes: 2 additions & 1 deletion rules/S3966/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
},
"tags": [
"confusing",
"pitfall"
"pitfall",
"symbolic-execution"
],
"extra": {
"replacementRules": [
Expand Down
5 changes: 4 additions & 1 deletion rules/S4158/csharp/metadata.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"quickfix": "infeasible"
"quickfix": "infeasible",
"tags": [
"symbolic-execution"
]
}
5 changes: 4 additions & 1 deletion rules/S4158/vbnet/metadata.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"quickfix": "infeasible"
"quickfix": "infeasible",
"tags": [
"symbolic-execution"
]
}
6 changes: 6 additions & 0 deletions rules/S4347/csharp/metadata.json
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
{
"tags":[
"cwe",
"cert",
"pitfall",
"symbolic-execution"
]
}
3 changes: 2 additions & 1 deletion rules/S5773/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"constantCost": "30min"
},
"tags": [
"cwe"
"cwe",
"symbolic-execution"
],
"extra": {
"replacementRules": [
Expand Down
5 changes: 5 additions & 0 deletions rules/S6781/csharp/metadata.json
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
{
"tags": [
"cwe",
"cert",
"symbolic-execution"
]
}
1 change: 1 addition & 0 deletions rules/S7130/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"constantCost": "1min"
},
"tags": [
"symbolic-execution"
],
"defaultSeverity": "Major",
"ruleSpecification": "RSPEC-7130",
Expand Down
1 change: 1 addition & 0 deletions rules/S7131/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"constantCost": "30min"
},
"tags": [
"symbolic-execution"
],
"defaultSeverity": "Major",
"ruleSpecification": "RSPEC-7131",
Expand Down
1 change: 1 addition & 0 deletions rules/S7133/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"constantCost": "5min"
},
"tags": [
"symbolic-execution"
],
"defaultSeverity": "Major",
"ruleSpecification": "RSPEC-7133",
Expand Down

0 comments on commit 2dc3a33

Please sign in to comment.