diff options
Diffstat (limited to 'cli/tests')
-rw-r--r-- | cli/tests/lint/expected_from_stdin_json.out | 16 | ||||
-rw-r--r-- | cli/tests/lint/expected_json.out | 54 |
2 files changed, 43 insertions, 27 deletions
diff --git a/cli/tests/lint/expected_from_stdin_json.out b/cli/tests/lint/expected_from_stdin_json.out index bec566841..ed5a0c5dc 100644 --- a/cli/tests/lint/expected_from_stdin_json.out +++ b/cli/tests/lint/expected_from_stdin_json.out @@ -1,15 +1,19 @@ { "diagnostics": [ { - "location": { - "line": 1, - "col": 7 + "range": { + "start": { + "line": 1, + "col": 7 + }, + "end": { + "line": 1, + "col": 10 + } }, "filename": "_stdin.ts", "message": "`any` type is not allowed", - "code": "no-explicit-any", - "line_src": "let a: any;", - "snippet_length": 3 + "code": "no-explicit-any" } ], "errors": [] 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": [ |