We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06736e3 commit 682bf6dCopy full SHA for 682bf6d
javascript/ql/src/AlertSuppression.ql
@@ -6,15 +6,15 @@
6
*/
7
8
private import codeql.suppression.AlertSuppression as AS
9
-private import semmle.javascript.Locations as L
+private import javascript as JS
10
11
class SingleLineComment extends L::Locatable {
12
private string text;
13
14
SingleLineComment() {
15
(
16
- text = this.(L::Comment).getText() or
17
- text = this.(L::HTML::CommentNode).getText()
+ text = this.(JS::Comment).getText() or
+ text = this.(JS::HTML::CommentNode).getText()
18
) and
19
// suppression comments must be single-line
20
not text.matches("%\n%")
0 commit comments