summaryrefslogtreecommitdiff
path: root/cli/tests/lint/expected_json.out
blob: 8c5a16f72e1f50100985e3a62027596c751af465 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{
  "diagnostics": [
    {
      "location": {
        "line": 1,
        "col": 0
      },
      "filename": "[WILDCARD]",
      "message": "Ignore directive requires lint rule code",
      "code": "ban-untagged-ignore",
      "line_src": "// deno-lint-ignore",
      "snippet_length": 19
    },
    {
      "location": {
        "line": 2,
        "col": 14
      },
      "filename": "[WILDCARD]",
      "message": "Empty block statement",
      "code": "no-empty",
      "line_src": "while (false) {}",
      "snippet_length": 2
    },
    {
      "location": {
        "line": 3,
        "col": 12
      },
      "filename": "[WILDCARD]",
      "message": "Empty block statement",
      "code": "no-empty",
      "line_src": "} catch (e) {}",
      "snippet_length": 2
    }
  ],
  "errors": [
    {
      "file_path": "[WILDCARD]malformed.js",
      "message": "Expected }, got <eof> at [WILDCARD]malformed.js:4:15"
    }
  ]
}