Skip to content

Commit

Permalink
Tag RSPECs of JS/TS rules relying on type information
Browse files Browse the repository at this point in the history
  • Loading branch information
yassin-kammoun-sonarsource committed Oct 24, 2023
1 parent 532e623 commit 25625ad
Show file tree
Hide file tree
Showing 74 changed files with 164 additions and 75 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
},
"tags": [
"es2015",
"unused"
"unused",
"type-dependent"
],
"defaultSeverity": "Minor",
"ruleSpecification": "RSPEC-1128",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
"func": "Constant\/Issue",
"constantCost": "20min"
},
"tags": [],
"tags": [
"type-dependent"
],
"defaultSeverity": "Major",
"ruleSpecification": "RSPEC-1154",
"sqKey": "S1154",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"constantCost": "5min"
},
"tags": [
"cwe"
"cwe",
"type-dependent"
],
"defaultSeverity": "Critical",
"ruleSpecification": "RSPEC-131",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
},
"tags": [
"cwe",
"obsolete"
"obsolete",
"type-dependent"
],
"defaultSeverity": "Minor",
"ruleSpecification": "RSPEC-1874",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
"func": "Constant\/Issue",
"constantCost": "5min"
},
"tags": [],
"tags": [
"type-dependent"
],
"defaultSeverity": "Major",
"ruleSpecification": "RSPEC-2201",
"sqKey": "S2201",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
"func": "Constant\/Issue",
"constantCost": "5min"
},
"tags": [],
"tags": [
"type-dependent"
],
"defaultSeverity": "Major",
"ruleSpecification": "RSPEC-2234",
"sqKey": "S2234",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"constantCost": "10min"
},
"tags": [
"cwe"
"cwe",
"type-dependent"
],
"defaultSeverity": "Major",
"ruleSpecification": "RSPEC-2259",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
"func": "Constant\/Issue",
"constantCost": "15min"
},
"tags": [],
"tags": [
"type-dependent"
],
"defaultSeverity": "Major",
"ruleSpecification": "RSPEC-2639",
"sqKey": "S2639",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"constantCost": "2min"
},
"tags": [
"suspicious"
"suspicious",
"type-dependent"
],
"defaultSeverity": "Major",
"ruleSpecification": "RSPEC-2692",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
"func": "Constant\/Issue",
"constantCost": "2h"
},
"tags": [],
"tags": [
"type-dependent"
],
"defaultSeverity": "Blocker",
"ruleSpecification": "RSPEC-2817",
"sqKey": "S2817",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
},
"tags": [
"cwe",
"html5"
"html5",
"type-dependent"
],
"defaultSeverity": "Critical",
"ruleSpecification": "RSPEC-2819",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
"func": "Constant\/Issue",
"constantCost": "5min"
},
"tags": [],
"tags": [
"type-dependent"
],
"defaultSeverity": "Major",
"ruleSpecification": "RSPEC-2870",
"sqKey": "S2870",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"constantCost": "10min"
},
"tags": [
"bad-practice"
"bad-practice",
"type-dependent"
],
"defaultSeverity": "Critical",
"ruleSpecification": "RSPEC-2871",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"constantCost": "2min"
},
"tags": [
"confusing"
"confusing",
"type-dependent"
],
"defaultSeverity": "Major",
"ruleSpecification": "RSPEC-2933",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
"func": "Constant\/Issue",
"constantCost": "10min"
},
"tags": [],
"tags": [
"type-dependent"
],
"defaultSeverity": "Major",
"ruleSpecification": "RSPEC-2999",
"sqKey": "S2999",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
"func": "Constant\/Issue",
"constantCost": "5min"
},
"tags": [],
"tags": [
"type-dependent"
],
"defaultSeverity": "Major",
"ruleSpecification": "RSPEC-3003",
"sqKey": "S3003",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"constantCost": "15min"
},
"tags": [
"confusing"
"confusing",
"type-dependent"
],
"defaultSeverity": "Minor",
"ruleSpecification": "RSPEC-3402",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
"func": "Constant\/Issue",
"constantCost": "5min"
},
"tags": [],
"tags": [
"type-dependent"
],
"defaultSeverity": "Major",
"ruleSpecification": "RSPEC-3403",
"sqKey": "S3403",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"constantCost": "5min"
},
"tags": [
"es2015"
"es2015",
"type-dependent"
],
"defaultSeverity": "Critical",
"ruleSpecification": "RSPEC-3525",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"tags": [
"convention",
"es2015",
"obsolete"
"obsolete",
"type-dependent"
],
"defaultSeverity": "Minor",
"ruleSpecification": "RSPEC-3533",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"constantCost": "10min"
},
"tags": [
"bad-practice"
"bad-practice",
"type-dependent"
],
"defaultSeverity": "Major",
"ruleSpecification": "RSPEC-3579",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
},
"tags": [
"error-handling",
"api-design"
"api-design",
"type-dependent"
],
"defaultSeverity": "Major",
"ruleSpecification": "RSPEC-3696",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"constantCost": "5min"
},
"tags": [
"confusing"
"confusing",
"type-dependent"
],
"defaultSeverity": "Critical",
"ruleSpecification": "RSPEC-3735",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
"func": "Constant\/Issue",
"constantCost": "10min"
},
"tags": [],
"tags": [
"type-dependent"
],
"defaultSeverity": "Major",
"ruleSpecification": "RSPEC-3757",
"sqKey": "S3757",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
"func": "Constant\/Issue",
"constantCost": "10min"
},
"tags": [],
"tags": [
"type-dependent"
],
"defaultSeverity": "Major",
"ruleSpecification": "RSPEC-3758",
"sqKey": "S3758",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"constantCost": "2min"
},
"tags": [
"confusing"
"confusing",
"type-dependent"
],
"defaultSeverity": "Major",
"ruleSpecification": "RSPEC-3760",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"ruleSpecification": "RSPEC-3776",
"sqKey": "S3776",
"scope": "Main",
"quickfix": "unknown",
"quickfix": "infeasible",
"compatibleLanguages": [
"JAVASCRIPT",
"TYPESCRIPT"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
"func": "Constant\/Issue",
"constantCost": "5min"
},
"tags": [],
"tags": [
"type-dependent"
],
"defaultSeverity": "Major",
"ruleSpecification": "RSPEC-3782",
"sqKey": "S3782",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
"func": "Constant\/Issue",
"constantCost": "5min"
},
"tags": [],
"tags": [
"type-dependent"
],
"defaultSeverity": "Critical",
"ruleSpecification": "RSPEC-3785",
"sqKey": "S3785",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
"func": "Constant\/Issue",
"constantCost": "5min"
},
"tags": [],
"tags": [
"type-dependent"
],
"defaultSeverity": "Blocker",
"ruleSpecification": "RSPEC-3796",
"sqKey": "S3796",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"constantCost": "20min"
},
"tags": [
"confusing"
"confusing",
"type-dependent"
],
"defaultSeverity": "Major",
"ruleSpecification": "RSPEC-3800",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
"func": "Constant\/Issue",
"constantCost": "2min"
},
"tags": [],
"tags": [
"type-dependent"
],
"defaultSeverity": "Major",
"ruleSpecification": "RSPEC-3981",
"sqKey": "S3981",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
"func": "Constant\/Issue",
"constantCost": "5min"
},
"tags": [],
"tags": [
"type-dependent"
],
"defaultSeverity": "Major",
"ruleSpecification": "RSPEC-4043",
"sqKey": "S4043",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"constantCost": "1min"
},
"tags": [
"confusing"
"confusing",
"type-dependent"
],
"defaultSeverity": "Critical",
"ruleSpecification": "RSPEC-4123",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
"func": "Constant\/Issue",
"constantCost": "5min"
},
"tags": [],
"tags": [
"type-dependent"
],
"defaultSeverity": "Major",
"ruleSpecification": "RSPEC-4139",
"sqKey": "S4139",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"constantCost": "2min"
},
"tags": [
"clumsy"
"clumsy",
"type-dependent"
],
"defaultSeverity": "Minor",
"ruleSpecification": "RSPEC-4157",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"constantCost": "2min"
},
"tags": [
"proficiency"
"proficiency",
"type-dependent"
],
"defaultSeverity": "Minor",
"ruleSpecification": "RSPEC-4324",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"constantCost": "1min"
},
"tags": [
"redundant"
"redundant",
"type-dependent"
],
"defaultSeverity": "Minor",
"ruleSpecification": "RSPEC-4325",
Expand Down
Loading

0 comments on commit 25625ad

Please sign in to comment.