summaryrefslogtreecommitdiff
path: root/cli/tests/lint/expected_json.out
diff options
context:
space:
mode:
authorLuca Casonato <lucacasonato@yahoo.com>2020-09-02 11:39:20 +0200
committerGitHub <noreply@github.com>2020-09-02 11:39:20 +0200
commitfe47da9f2334ed962743614fc3caad27902741af (patch)
tree3ecf460333a6dafcb143b77a7978c3a8eeb02457 /cli/tests/lint/expected_json.out
parentb21f318e6818ebbe73ac1aadd8fa03f85207a8a0 (diff)
chore: multi line deno_lint diagnostics (#7303)
Diffstat (limited to 'cli/tests/lint/expected_json.out')
-rw-r--r--cli/tests/lint/expected_json.out54
1 files changed, 33 insertions, 21 deletions
diff --git a/cli/tests/lint/expected_json.out b/cli/tests/lint/expected_json.out
index 8c5a16f72..71340578e 100644
--- a/cli/tests/lint/expected_json.out
+++ b/cli/tests/lint/expected_json.out
@@ -1,37 +1,49 @@
{
"diagnostics": [
{
- "location": {
- "line": 1,
- "col": 0
+ "range": {
+ "start": {
+ "line": 1,
+ "col": 0
+ },
+ "end": {
+ "line": 1,
+ "col": 19
+ }
},
- "filename": "[WILDCARD]",
+ "filename": "[WILDCARD]file1.js",
"message": "Ignore directive requires lint rule code",
- "code": "ban-untagged-ignore",
- "line_src": "// deno-lint-ignore",
- "snippet_length": 19
+ "code": "ban-untagged-ignore"
},
{
- "location": {
- "line": 2,
- "col": 14
+ "range": {
+ "start": {
+ "line": 2,
+ "col": 14
+ },
+ "end": {
+ "line": 2,
+ "col": 16
+ }
},
- "filename": "[WILDCARD]",
+ "filename": "[WILDCARD]file1.js",
"message": "Empty block statement",
- "code": "no-empty",
- "line_src": "while (false) {}",
- "snippet_length": 2
+ "code": "no-empty"
},
{
- "location": {
- "line": 3,
- "col": 12
+ "range": {
+ "start": {
+ "line": 3,
+ "col": 12
+ },
+ "end": {
+ "line": 3,
+ "col": 14
+ }
},
- "filename": "[WILDCARD]",
+ "filename": "[WILDCARD]file2.ts",
"message": "Empty block statement",
- "code": "no-empty",
- "line_src": "} catch (e) {}",
- "snippet_length": 2
+ "code": "no-empty"
}
],
"errors": [