mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
Merge pull request #486 from xiemaisi/js/lower-severities
Approved by asger-semmle
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user