github.com/mistwind/reviewdog@v0.0.0-20230322024206-9cfa11856d58/diff/testdata/gofmt.diff.json (about)

     1  [
     2    {
     3      "PathOld": "gofmt.go.orig",
     4      "PathNew": "gofmt.go",
     5      "TimeOld": "2020-07-26 08:01:09.260800318 +0000",
     6      "TimeNew": "2020-07-26 08:01:09.260800318 +0000",
     7      "Hunks": [
     8        {
     9          "StartLineOld": 1,
    10          "LineLengthOld": 6,
    11          "StartLineNew": 1,
    12          "LineLengthNew": 6,
    13          "Section": "",
    14          "Lines": [
    15            {
    16              "Type": 0,
    17              "Content": "package testdata",
    18              "LnumDiff": 1,
    19              "LnumOld": 1,
    20              "LnumNew": 1
    21            },
    22            {
    23              "Type": 0,
    24              "Content": "",
    25              "LnumDiff": 2,
    26              "LnumOld": 2,
    27              "LnumNew": 2
    28            },
    29            {
    30              "Type": 2,
    31              "Content": "func    fmt     () {",
    32              "LnumDiff": 3,
    33              "LnumOld": 3,
    34              "LnumNew": 0
    35            },
    36            {
    37              "Type": 1,
    38              "Content": "func fmt() {",
    39              "LnumDiff": 4,
    40              "LnumOld": 0,
    41              "LnumNew": 3
    42            },
    43            {
    44              "Type": 0,
    45              "Content": "\t// test",
    46              "LnumDiff": 5,
    47              "LnumOld": 4,
    48              "LnumNew": 4
    49            },
    50            {
    51              "Type": 0,
    52              "Content": "\t// test line",
    53              "LnumDiff": 6,
    54              "LnumOld": 5,
    55              "LnumNew": 5
    56            },
    57            {
    58              "Type": 0,
    59              "Content": "\t// test line",
    60              "LnumDiff": 7,
    61              "LnumOld": 6,
    62              "LnumNew": 6
    63            }
    64          ]
    65        },
    66        {
    67          "StartLineOld": 10,
    68          "LineLengthOld": 11,
    69          "StartLineNew": 10,
    70          "LineLengthNew": 11,
    71          "Section": "",
    72          "Lines": [
    73            {
    74              "Type": 0,
    75              "Content": "\t// test line",
    76              "LnumDiff": 9,
    77              "LnumOld": 10,
    78              "LnumNew": 10
    79            },
    80            {
    81              "Type": 0,
    82              "Content": "\t// test line",
    83              "LnumDiff": 10,
    84              "LnumOld": 11,
    85              "LnumNew": 11
    86            },
    87            {
    88              "Type": 0,
    89              "Content": "",
    90              "LnumDiff": 11,
    91              "LnumOld": 12,
    92              "LnumNew": 12
    93            },
    94            {
    95              "Type": 2,
    96              "Content": "println(",
    97              "LnumDiff": 12,
    98              "LnumOld": 13,
    99              "LnumNew": 0
   100            },
   101            {
   102              "Type": 2,
   103              "Content": "\t\t\"hello, gofmt test\"    )",
   104              "LnumDiff": 13,
   105              "LnumOld": 14,
   106              "LnumNew": 0
   107            },
   108            {
   109              "Type": 2,
   110              "Content": "//comment",
   111              "LnumDiff": 14,
   112              "LnumOld": 15,
   113              "LnumNew": 0
   114            },
   115            {
   116              "Type": 1,
   117              "Content": "\tprintln(",
   118              "LnumDiff": 15,
   119              "LnumOld": 0,
   120              "LnumNew": 13
   121            },
   122            {
   123              "Type": 1,
   124              "Content": "\t\t\"hello, gofmt test\")",
   125              "LnumDiff": 16,
   126              "LnumOld": 0,
   127              "LnumNew": 14
   128            },
   129            {
   130              "Type": 1,
   131              "Content": "\t//comment",
   132              "LnumDiff": 17,
   133              "LnumOld": 0,
   134              "LnumNew": 15
   135            },
   136            {
   137              "Type": 0,
   138              "Content": "}",
   139              "LnumDiff": 18,
   140              "LnumOld": 16,
   141              "LnumNew": 16
   142            },
   143            {
   144              "Type": 0,
   145              "Content": "",
   146              "LnumDiff": 19,
   147              "LnumOld": 17,
   148              "LnumNew": 17
   149            },
   150            {
   151              "Type": 1,
   152              "Content": "type s struct{ A int }",
   153              "LnumDiff": 20,
   154              "LnumOld": 0,
   155              "LnumNew": 18
   156            },
   157            {
   158              "Type": 0,
   159              "Content": "",
   160              "LnumDiff": 21,
   161              "LnumOld": 18,
   162              "LnumNew": 19
   163            },
   164            {
   165              "Type": 2,
   166              "Content": "type s struct { A int }",
   167              "LnumDiff": 22,
   168              "LnumOld": 19,
   169              "LnumNew": 0
   170            },
   171            {
   172              "Type": 0,
   173              "Content": "func (s s) String() { return \"s\" }",
   174              "LnumDiff": 23,
   175              "LnumOld": 20,
   176              "LnumNew": 20
   177            }
   178          ]
   179        }
   180      ],
   181      "Extended": [
   182        "diff -u gofmt.go.orig gofmt.go"
   183      ]
   184    }
   185  ]