Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Commit

Permalink
[#304] emove deprecated no-duplicate-key rule
Browse files Browse the repository at this point in the history
closes #300
closes #304
  • Loading branch information
connor4312 authored and HamletDRC committed Oct 24, 2016
1 parent 4d3d66e commit 06c26a4
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 16 deletions.
3 changes: 2 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,8 @@ module.exports = function(grunt) {
'no-unexternalized-strings': true,
'object-literal-key-quotes': true,
'no-relative-imports': true,
'no-empty-line-after-opening-brace': true
'no-empty-line-after-opening-brace': true,
'no-duplicate-key': true
};
var errors = [];
getAllRuleNames().forEach(function(ruleName) {
Expand Down
10 changes: 1 addition & 9 deletions additional_rule_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -245,14 +245,6 @@
"group": "Clarity",
"commonWeaknessEnumeration": "710"
},
"no-duplicate-key": {
"issueClass": "SDL",
"issueType": "Error",
"severity": "Critical",
"level": "Mandatory",
"group": "Security",
"commonWeaknessEnumeration": "398, 694, 462"
},
"no-duplicate-variable": {
"issueClass": "Non-SDL",
"issueType": "Error",
Expand Down Expand Up @@ -614,4 +606,4 @@
"recommendation": "[true, \"check-branch\", \"check-decl\", \"check-operator\", \"check-separator\", \"check-type\"],",
"commonWeaknessEnumeration": "398, 710"
}
}
}
1 change: 0 additions & 1 deletion recommended_ruleset.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ module.exports = {
"no-disable-auto-sanitization": true,
"no-document-domain": true,
"no-document-write": true,
"no-duplicate-key": true,
"no-eval": true,
"no-exec-script": true,
"no-function-constructor-with-string-args": true,
Expand Down
4 changes: 1 addition & 3 deletions tslint-warnings.csv
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,7 @@ no-document-write,Do not use document.write,TSLINTMGIOVQ,tslint,SDL,Error,Critic
CWE 85 - Doubled Character XSS Manipulations"
no-duplicate-case,Do not use duplicate case labels in switch statements.,TSLINT3MSPFV,tslint,Non-SDL,Error,Critical,Opportunity for Excellence,See description on the tslint or tslint-microsoft-contrib website,TSLint Procedure,"398, 710","CWE 398 - Indicator of Poor Code Quality
CWE 710 - Coding Standards Violation"
no-duplicate-key,Disallows duplicate keys in object literals.,TSLINT8C37DG,tslint,SDL,Error,Critical,Mandatory,See description on the tslint or tslint-microsoft-contrib website,TSLint Procedure,"398, 694, 462","CWE 398 - Indicator of Poor Code Quality
CWE 694 - Use of Multiple Resources with Duplicate Identifier
CWE 462 - Duplicate Key in Associative List (Alist)"
no-duplicate-key,Disallows duplicate keys in object literals.,TSLINT8C37DG,tslint,,,,,See description on the tslint or tslint-microsoft-contrib website,TSLint Procedure,,
no-duplicate-variable,Disallows duplicate variable declarations in the same block scope.,TSLINT6TMGHL,tslint,Non-SDL,Error,Critical,Opportunity for Excellence,See description on the tslint or tslint-microsoft-contrib website,TSLint Procedure,398,"CWE 398 - Indicator of Poor Code Quality"
no-empty,Disallows empty blocks.,TSLINTJ99V50,tslint,Non-SDL,Warning,Moderate,Opportunity for Excellence,See description on the tslint or tslint-microsoft-contrib website,TSLint Procedure,398,"CWE 398 - Indicator of Poor Code Quality"
no-empty-interfaces,Do not use empty interfaces.,TSLINT1L2THN7,tslint,Non-SDL,Warning,Moderate,Opportunity for Excellence,See description on the tslint or tslint-microsoft-contrib website,TSLint Procedure,"398, 710","CWE 398 - Indicator of Poor Code Quality
Expand Down
3 changes: 1 addition & 2 deletions tslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@
"no-document-domain": true,
"no-document-write": true,
"no-duplicate-case": true,
"no-duplicate-key": true,
"no-duplicate-parameter-names": true,
"no-duplicate-variable": true,
"no-empty": true,
Expand Down Expand Up @@ -220,4 +219,4 @@
"insecure-random": true,
"possible-timing-attack": true
}
}
}

0 comments on commit 06c26a4

Please # to comment.