Skip to content

Commit

Permalink
Ensure issue severities are consistent between old model and CCT (#4428)
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaume-dequenne-sonarsource authored Oct 22, 2024
1 parent 3837a17 commit cfcc2e6
Show file tree
Hide file tree
Showing 30 changed files with 30 additions and 30 deletions.
2 changes: 1 addition & 1 deletion rules/S6709/python/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"quickfix": "unknown",
"code": {
"impacts": {
"MAINTAINABILITY": "HIGH",
"MAINTAINABILITY": "MEDIUM",
"RELIABILITY": "MEDIUM",
"SECURITY": "LOW"
},
Expand Down
2 changes: 1 addition & 1 deletion rules/S6727/python/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"tags": [
],
"defaultSeverity": "Major",
"defaultSeverity": "Critical",
"ruleSpecification": "RSPEC-6727",
"sqKey": "S6727",
"scope": "All",
Expand Down
2 changes: 1 addition & 1 deletion rules/S6729/python/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"numpy",
"data-science"
],
"defaultSeverity": "Major",
"defaultSeverity": "Critical",
"ruleSpecification": "RSPEC-6729",
"sqKey": "S6729",
"scope": "All",
Expand Down
2 changes: 1 addition & 1 deletion rules/S6734/python/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"pandas",
"data-science"
],
"defaultSeverity": "Major",
"defaultSeverity": "Critical",
"ruleSpecification": "RSPEC-6734",
"sqKey": "S6734",
"scope": "All",
Expand Down
2 changes: 1 addition & 1 deletion rules/S6735/python/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"quickfix": "covered",
"code": {
"impacts": {
"MAINTAINABILITY": "HIGH"
"MAINTAINABILITY": "MEDIUM"
},
"attribute": "CLEAR"
}
Expand Down
2 changes: 1 addition & 1 deletion rules/S6740/python/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"quickfix": "unknown",
"code": {
"impacts": {
"MAINTAINABILITY": "HIGH",
"MAINTAINABILITY": "MEDIUM",
"RELIABILITY": "MEDIUM"
},
"attribute": "CLEAR"
Expand Down
2 changes: 1 addition & 1 deletion rules/S6882/python/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"tags": [
],
"defaultSeverity": "Major",
"defaultSeverity": "Critical",
"ruleSpecification": "RSPEC-6882",
"sqKey": "S6882",
"scope": "All",
Expand Down
2 changes: 1 addition & 1 deletion rules/S6883/python/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"tags": [
],
"defaultSeverity": "Major",
"defaultSeverity": "Critical",
"ruleSpecification": "RSPEC-6883",
"sqKey": "S6883",
"scope": "All",
Expand Down
2 changes: 1 addition & 1 deletion rules/S6886/python/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"tags": [
],
"defaultSeverity": "Major",
"defaultSeverity": "Critical",
"ruleSpecification": "RSPEC-6886",
"sqKey": "S6886",
"scope": "All",
Expand Down
2 changes: 1 addition & 1 deletion rules/S6887/python/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"tags": [
],
"defaultSeverity": "Major",
"defaultSeverity": "Critical",
"ruleSpecification": "RSPEC-6887",
"sqKey": "S6887",
"scope": "All",
Expand Down
2 changes: 1 addition & 1 deletion rules/S6890/python/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"tags": [
],
"defaultSeverity": "Major",
"defaultSeverity": "Critical",
"ruleSpecification": "RSPEC-6890",
"sqKey": "S6890",
"scope": "All",
Expand Down
2 changes: 1 addition & 1 deletion rules/S6894/python/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"tags": [
],
"defaultSeverity": "Major",
"defaultSeverity": "Critical",
"ruleSpecification": "RSPEC-6894",
"sqKey": "S6894",
"scope": "All",
Expand Down
2 changes: 1 addition & 1 deletion rules/S6899/python/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"tags": [
],
"defaultSeverity": "Major",
"defaultSeverity": "Critical",
"ruleSpecification": "RSPEC-6899",
"sqKey": "S6899",
"scope": "All",
Expand Down
2 changes: 1 addition & 1 deletion rules/S6900/python/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"tags": [
],
"defaultSeverity": "Major",
"defaultSeverity": "Critical",
"ruleSpecification": "RSPEC-6900",
"sqKey": "S6900",
"scope": "All",
Expand Down
2 changes: 1 addition & 1 deletion rules/S6903/python/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"tags": [
],
"defaultSeverity": "Major",
"defaultSeverity": "Critical",
"ruleSpecification": "RSPEC-6903",
"sqKey": "S6903",
"scope": "All",
Expand Down
2 changes: 1 addition & 1 deletion rules/S6908/python/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"quickfix": "unknown",
"code": {
"impacts": {
"RELIABILITY": "HIGH"
"RELIABILITY": "MEDIUM"
},
"attribute": "CONVENTIONAL"
}
Expand Down
2 changes: 1 addition & 1 deletion rules/S6911/python/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"quickfix": "unknown",
"code": {
"impacts": {
"RELIABILITY": "HIGH"
"RELIABILITY": "MEDIUM"
},
"attribute": "CONVENTIONAL"
}
Expand Down
2 changes: 1 addition & 1 deletion rules/S6918/python/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"quickfix": "unknown",
"code": {
"impacts": {
"RELIABILITY": "HIGH"
"RELIABILITY": "MEDIUM"
},
"attribute": "CONVENTIONAL"
}
Expand Down
2 changes: 1 addition & 1 deletion rules/S6919/python/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"quickfix": "unknown",
"code": {
"impacts": {
"MAINTAINABILITY": "HIGH",
"MAINTAINABILITY": "MEDIUM",
"RELIABILITY": "MEDIUM"
},
"attribute": "CONVENTIONAL"
Expand Down
2 changes: 1 addition & 1 deletion rules/S6925/python/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"quickfix": "unknown",
"code": {
"impacts": {
"MAINTAINABILITY": "HIGH",
"MAINTAINABILITY": "MEDIUM",
"RELIABILITY": "MEDIUM"
},
"attribute": "CONVENTIONAL"
Expand Down
2 changes: 1 addition & 1 deletion rules/S6928/python/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"tags": [
],
"defaultSeverity": "Major",
"defaultSeverity": "Critical",
"ruleSpecification": "RSPEC-6928",
"sqKey": "S6928",
"scope": "All",
Expand Down
2 changes: 1 addition & 1 deletion rules/S6929/python/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"code": {
"impacts": {
"MAINTAINABILITY": "MEDIUM",
"RELIABILITY": "HIGH"
"RELIABILITY": "MEDIUM"
},
"attribute": "CLEAR"
}
Expand Down
2 changes: 1 addition & 1 deletion rules/S6969/python/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"tags": [
],
"defaultSeverity": "Major",
"defaultSeverity": "Minor",
"ruleSpecification": "RSPEC-6969",
"sqKey": "S6969",
"scope": "All",
Expand Down
2 changes: 1 addition & 1 deletion rules/S6971/python/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"tags": [
],
"defaultSeverity": "Major",
"defaultSeverity": "Critical",
"ruleSpecification": "RSPEC-6971",
"sqKey": "S6971",
"scope": "All",
Expand Down
2 changes: 1 addition & 1 deletion rules/S6972/python/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"quickfix": "infeasible",
"code": {
"impacts": {
"RELIABILITY": "HIGH"
"RELIABILITY": "MEDIUM"
},
"attribute": "CONVENTIONAL"
}
Expand Down
2 changes: 1 addition & 1 deletion rules/S6973/python/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"quickfix": "unknown",
"code": {
"impacts": {
"MAINTAINABILITY": "HIGH",
"MAINTAINABILITY": "MEDIUM",
"RELIABILITY": "LOW"
},
"attribute": "CONVENTIONAL"
Expand Down
2 changes: 1 addition & 1 deletion rules/S6974/python/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"tags": [
],
"defaultSeverity": "Major",
"defaultSeverity": "Critical",
"ruleSpecification": "RSPEC-6974",
"sqKey": "S6974",
"scope": "All",
Expand Down
2 changes: 1 addition & 1 deletion rules/S6978/python/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"quickfix": "targeted",
"code": {
"impacts": {
"RELIABILITY": "HIGH"
"RELIABILITY": "MEDIUM"
},
"attribute": "LOGICAL"
}
Expand Down
2 changes: 1 addition & 1 deletion rules/S6984/python/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"tags": [
],
"defaultSeverity": "Major",
"defaultSeverity": "Critical",
"ruleSpecification": "RSPEC-6984",
"sqKey": "S6984",
"scope": "All",
Expand Down
2 changes: 1 addition & 1 deletion rules/S6985/python/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"pytorch",
"machine-learning"
],
"defaultSeverity": "Major",
"defaultSeverity": "Critical",
"ruleSpecification": "RSPEC-6985",
"sqKey": "S6985",
"scope": "All",
Expand Down

0 comments on commit cfcc2e6

Please sign in to comment.