Merge pull request #486 from xiemaisi/js/lower-severities

Approved by asger-semmle
This commit is contained in:
semmle-qlci
2018-11-20 06:39:23 +00:00
committed by GitHub
6 changed files with 18 additions and 13 deletions

View File

@@ -4,7 +4,7 @@
* same id attribute, it may be interpreted differently
* by different browsers.
* @kind problem
* @problem.severity error
* @problem.severity warning
* @id js/duplicate-html-id
* @tags maintainability
* correctness

View File

@@ -3,7 +3,7 @@
* @description If an HTML element has two attributes with the same name
* but different values, its behavior may be browser-dependent.
* @kind problem
* @problem.severity error
* @problem.severity warning
* @id js/conflicting-html-attribute
* @tags maintainability
* correctness

View File

@@ -3,7 +3,7 @@
* @description If a variable is not declared as a local variable, it becomes a global variable
* by default, which may be unintentional and could lead to unexpected behavior.
* @kind problem
* @problem.severity error
* @problem.severity warning
* @id js/missing-variable-declaration
* @tags reliability
* maintainability

View File

@@ -3,7 +3,7 @@
* @description If two conditions in an 'if'-'else if' chain are identical, the
* second condition will never hold.
* @kind problem
* @problem.severity error
* @problem.severity warning
* @id js/duplicate-condition
* @tags maintainability
* correctness

View File

@@ -3,7 +3,7 @@
* @description If two cases in a switch statement have the same label, the second case
* will never be executed.
* @kind problem
* @problem.severity error
* @problem.severity warning
* @id js/duplicate-switch-case
* @tags maintainability
* correctness