Skip to content

Commit 8e5059f

Browse files
authored
Merge pull request #58 from xiemaisi/js/demote-heterogeneous-comparison
Approved by asger-semmle
2 parents 105b6c9 + 303b0a0 commit 8e5059f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

change-notes/1.18/analysis-javascript.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@
8181
| **Query** | **Expected impact** | **Change** |
8282
|----------------------------|------------------------|------------------------------------------------------------------|
8383
| Arguments redefined | Fewer results | This rule previously also flagged redefinitions of `eval`. This was an oversight that is now fixed. |
84+
| Comparison between inconvertible types | Lower severity | The severity of this rule has been revised to "warning". |
8485
| CORS misconfiguration for credentials transfer | More true-positive results | This rule now treats header names case-insensitively. |
8586
| Hard-coded credentials | More true-positive results | This rule now recognizes secret cryptographic keys. |
8687
| Incomplete sanitization | More true-positive results | This rule now recognizes incomplete URL encoding and decoding. |

javascript/ql/src/Expressions/HeterogeneousComparison.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* the same type will always yield 'false', and an inequality comparison will always
55
* yield 'true'.
66
* @kind problem
7-
* @problem.severity error
7+
* @problem.severity warning
88
* @id js/comparison-between-incompatible-types
99
* @tags reliability
1010
* correctness

0 commit comments

Comments
 (0)