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

     1  [
     2    {
     3      "PathOld": "nonewline3.old.txt",
     4      "PathNew": "nonewline3.new.txt",
     5      "TimeOld": "2019-04-19 13:19:50.331526534 +0000",
     6      "TimeNew": "2019-04-19 13:19:50.331526534 +0000",
     7      "Hunks": [
     8        {
     9          "StartLineOld": 1,
    10          "LineLengthOld": 6,
    11          "StartLineNew": 1,
    12          "LineLengthNew": 7,
    13          "Section": "",
    14          "Lines": [
    15            {
    16              "Type": 0,
    17              "Content": "No newline at end of the old file",
    18              "LnumDiff": 1,
    19              "LnumOld": 1,
    20              "LnumNew": 1
    21            },
    22            {
    23              "Type": 0,
    24              "Content": "Newline at end of the new file",
    25              "LnumDiff": 2,
    26              "LnumOld": 2,
    27              "LnumNew": 2
    28            },
    29            {
    30              "Type": 2,
    31              "Content": "a",
    32              "LnumDiff": 3,
    33              "LnumOld": 3,
    34              "LnumNew": 0
    35            },
    36            {
    37              "Type": 1,
    38              "Content": "b",
    39              "LnumDiff": 4,
    40              "LnumOld": 0,
    41              "LnumNew": 3
    42            },
    43            {
    44              "Type": 1,
    45              "Content": "b",
    46              "LnumDiff": 5,
    47              "LnumOld": 0,
    48              "LnumNew": 4
    49            },
    50            {
    51              "Type": 0,
    52              "Content": "",
    53              "LnumDiff": 6,
    54              "LnumOld": 4,
    55              "LnumNew": 5
    56            },
    57            {
    58              "Type": 0,
    59              "Content": "",
    60              "LnumDiff": 7,
    61              "LnumOld": 5,
    62              "LnumNew": 6
    63            },
    64            {
    65              "Type": 0,
    66              "Content": "\" vim: nofixeol noendofline",
    67              "LnumDiff": 8,
    68              "LnumOld": 6,
    69              "LnumNew": 7
    70            }
    71          ]
    72        }
    73      ],
    74      "Extended": null
    75    }
    76  ]