Skip to content

Commit 3ad5af7

Browse files
author
Max Schaefer
committed
JavaScript: Move --extract-program-text extractor options into options files.
1 parent 6b81720 commit 3ad5af7

File tree

15 files changed

+43
-46
lines changed

15 files changed

+43
-46
lines changed
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
| tst1.js:1:1:1:55 | abc // semmle-extractor-options: --extract-program-text | abc // semmle-extractor-options: --extract-program-text | \n |
1+
| tst1.js:1:1:1:3 | abc | abc | \n |
22
| tst1.js:2:1:2:3 | def | def | \r |
33
| tst1.js:3:1:3:3 | ghi | ghi | \r\n |
44
| tst1.js:4:1:4:3 | jkl | jkl | \n |
55
| tst1.js:5:1:5:0 | | | \r |
66
| tst1.js:6:1:6:3 | mno | mno | \u2028 |
77
| tst1.js:7:1:7:0 | | | \n |
88
| tst1.js:8:1:8:3 | pqr | pqr | \u2029 |
9-
| tst1.js:9:1:9:3 | stu | stu | |
10-
| tst2.js:1:1:1:63 | first_line // semmle-extractor-options: --extract-program-text | first_line // semmle-extractor-options: --extract-program-text | \n |
11-
| tst3.js:1:1:1:56 | 42; // semmle-extractor-options: --extract-program-text | 42; // semmle-extractor-options: --extract-program-text | \n |
9+
| tst1.js:9:1:9:3 | stu | stu | \n |
10+
| tst2.js:1:1:1:10 | first_line | first_line | \n |
11+
| tst3.js:1:1:1:3 | 42; | 42; | \n |
1212
| tst3.js:2:1:2:4 | \t42; | \t42; | \n |
1313
| tst3.js:3:1:3:5 | \t\t42; | \t\t42; | \n |
1414
| tst3.js:4:1:4:6 | \t\t\t42; | \t\t\t42; | \n |
1515
| tst3.js:5:1:5:6 | \t\t 42; | \t\t 42; | \n |
1616
| tst3.js:6:1:6:6 | \t \t42; | \t \t42; | \n |
1717
| tst3.js:7:1:7:7 | 42; | 42; | \n |
18-
| tst3.js:8:1:8:5 | 42; | 42; | |
18+
| tst3.js:8:1:8:5 | 42; | 42; | \n |
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
semmle-extractor-options: --extract-program-text

javascript/ql/test/library-tests/Lines/tst1.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
abc // semmle-extractor-options: --extract-program-text
1+
abc
22
defghi
33
jkl
44
mno
5-
pqrstu
5+
pqrstu
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
first_line // semmle-extractor-options: --extract-program-text
1+
first_line
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
42; // semmle-extractor-options: --extract-program-text
1+
42;
22
42;
33
42;
44
42;
55
42;
66
42;
77
42;
8-
42;
8+
42;
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
semmle-extractor-options: --extract-program-text

javascript/ql/test/library-tests/TypeScript/Modifiers/tst.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,5 +113,3 @@ interface InterfaceFields {
113113
z?: number;
114114
readonly w?: number;
115115
}
116-
117-
// semmle-extractor-options: --extract-program-text

javascript/ql/test/library-tests/stmts/conditionals.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
if (true) // semmle-extractor-options: --extract-program-text
1+
if (true)
22
;
33
if (b)
44
;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
for (var x of [1, 2, 3]) // semmle-extractor-options: --extract-program-text
1+
for (var x of [1, 2, 3])
22
console.log(x);

javascript/ql/test/library-tests/stmts/functions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
function g(x, y) { // semmle-extractor-options: --extract-program-text
1+
function g(x, y) {
22
return x+y;
33
}
44

0 commit comments

Comments
 (0)