mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
JavaScript: Move --tolerate-parse-errors extractor options into options file.
This commit is contained in:
1
javascript/ql/test/library-tests/Errors/options
Normal file
1
javascript/ql/test/library-tests/Errors/options
Normal file
@@ -0,0 +1 @@
|
||||
semmle-extractor-options: --tolerate-parse-errors
|
||||
@@ -8,5 +8,3 @@ var o = {
|
||||
set y(...ys) {},
|
||||
set z(z, ...zs) {}
|
||||
};
|
||||
|
||||
// semmle-extractor-options: --tolerate-parse-errors
|
||||
|
||||
@@ -1,4 +1,2 @@
|
||||
while
|
||||
}
|
||||
|
||||
// semmle-extractor-options: --tolerate-parse-errors
|
||||
|
||||
@@ -1,2 +1 @@
|
||||
| invalid.json:3:1:3:1 | Error: Comments are not legal in JSON. |
|
||||
| invalid.json:4:1:4:1 | Error: Comments are not legal in JSON. |
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
"hi"
|
||||
|
||||
// JSON doesn't have comments
|
||||
// semmle-extractor-options: --tolerate-parse-errors
|
||||
|
||||
1
javascript/ql/test/library-tests/JSON/options
Normal file
1
javascript/ql/test/library-tests/JSON/options
Normal file
@@ -0,0 +1 @@
|
||||
semmle-extractor-options: --tolerate-parse-errors
|
||||
@@ -23,5 +23,3 @@ var nns: Array<?number>;
|
||||
var dns: Array<!number>;
|
||||
var anys: Array<*>;
|
||||
var vars: Array<...number>;
|
||||
|
||||
// semmle-extractor-options: --tolerate-parse-errors
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
semmle-extractor-options: --tolerate-parse-errors
|
||||
@@ -1 +1 @@
|
||||
| err.yaml:4:1:4:1 | found unexpected end of stream |
|
||||
| err.yaml:3:1:3:1 | found unexpected end of stream |
|
||||
|
||||
@@ -1,3 +1,2 @@
|
||||
"unterminated string
|
||||
# semmle-extractor-options: --tolerate-parse-errors
|
||||
|
||||
|
||||
1
javascript/ql/test/library-tests/YAML/options
Normal file
1
javascript/ql/test/library-tests/YAML/options
Normal file
@@ -0,0 +1 @@
|
||||
semmle-extractor-options: --tolerate-parse-errors
|
||||
@@ -0,0 +1 @@
|
||||
semmle-extractor-options: --tolerate-parse-errors
|
||||
@@ -0,0 +1 @@
|
||||
semmle-extractor-options: --tolerate-parse-errors
|
||||
@@ -0,0 +1 @@
|
||||
semmle-extractor-options: --tolerate-parse-errors
|
||||
@@ -12,5 +12,3 @@ this.addPropertyListener(prop.name, function(_, _, _, a) {
|
||||
function f(x, y, x) {
|
||||
'use strict';
|
||||
}
|
||||
|
||||
// semmle-extractor-options: --tolerate-parse-errors
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
semmle-extractor-options: --tolerate-parse-errors
|
||||
@@ -1,4 +1,2 @@
|
||||
function findBox() {
|
||||
return $("box.important
|
||||
|
||||
// semmle-extractor-options: --tolerate-parse-errors
|
||||
|
||||
@@ -1,3 +1 @@
|
||||
😼😼
|
||||
|
||||
// semmle-extractor-options: --tolerate-parse-errors
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
semmle-extractor-options: --tolerate-parse-errors
|
||||
@@ -1,4 +1,3 @@
|
||||
<script type="text/javascript">
|
||||
%some made-up template syntax
|
||||
</script>
|
||||
semmle-extractor-options: --tolerate-parse-errors
|
||||
|
||||
@@ -3,4 +3,3 @@ common.autofocus('#id_password');
|
||||
{% else %}
|
||||
common.autofocus('#id_username');
|
||||
{% endif %}
|
||||
// semmle-extractor-options: --tolerate-parse-errors
|
||||
|
||||
@@ -5,4 +5,3 @@ common.autofocus('#id_password');
|
||||
common.autofocus('#id_username');
|
||||
{% endif %}
|
||||
</script>
|
||||
semmle-extractor-options: --tolerate-parse-errors
|
||||
|
||||
@@ -5,4 +5,3 @@
|
||||
{{/config}}
|
||||
}
|
||||
</script>
|
||||
semmle-extractor-options: --tolerate-parse-errors
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
semmle-extractor-options: --tolerate-parse-errors
|
||||
Reference in New Issue
Block a user