Skip to content

Commit 0d76c71

Browse files
authored
Merge pull request github#2981 from asger-semmle/js/lower-syntax-error-severity
Approved by max-schaefer
2 parents 98cee5c + c2f7cdc commit 0d76c71

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

change-notes/1.24/analysis-javascript.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
| Missing CSRF middleware (`js/missing-token-validation`) | Fewer false positive results | The query reports fewer duplicates and only flags handlers that explicitly access cookie data. |
6363
| Uncontrolled data used in path expression (`js/path-injection`) | More results | This query now recognizes additional ways dangerous paths can be constructed and used. |
6464
| Uncontrolled command line (`js/command-line-injection`) | More results | This query now recognizes additional ways of constructing arguments to `cmd.exe` and `/bin/sh`. |
65+
| Syntax error (`js/syntax-error`) | Lower severity | This results of this query are now displayed with lower severity. |
6566

6667
## Changes to libraries
6768

javascript/ql/src/LanguageFeatures/SyntaxError.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
* @name Syntax error
33
* @description A piece of code could not be parsed due to syntax errors.
44
* @kind problem
5-
* @problem.severity error
5+
* @problem.severity recommendation
66
* @id js/syntax-error
77
* @tags reliability
88
* correctness
99
* language-features
10-
* @precision high
10+
* @precision very-high
1111
*/
1212

1313
import javascript

0 commit comments

Comments
 (0)