@@ -53,27 +53,11 @@ func TestFormatGitHubActionOutput(t *testing.T) {
53
53
Span : []int32 {5 , 6 , 7 },
54
54
},
55
55
},
56
- {
57
- RuleID : "line::col" ,
58
- Message : "Line and column" ,
59
- Location : & descriptorpb.SourceCodeInfo_Location {
60
- Span : []int32 {5 , 6 },
61
- },
62
- },
63
- {
64
- RuleID : "line" ,
65
- Message : "Line only" ,
66
- Location : & descriptorpb.SourceCodeInfo_Location {
67
- Span : []int32 {5 },
68
- },
69
- },
70
56
},
71
57
},
72
58
},
73
- want : `::error file=example.proto,endColumn=8,endLine=7,col=6,line=5,title=line։։col։։endLine։։endColumn::line, column, endline, and endColumn
74
- ::error file=example.proto,endLine=7,col=6,line=5,title=line։։col։։endLine::Line, column, and endline
75
- ::error file=example.proto,col=6,line=5,title=line։։col::Line and column
76
- ::error file=example.proto,line=5,title=line::Line only
59
+ want : `::error file=example.proto,line=6,col=7,endLine=8,endColumn=8,title=line։։col։։endLine։։endColumn::line, column, endline, and endColumn
60
+ ::error file=example.proto,line=6,col=7,endLine=6,endColumn=7,title=line։։col։։endLine::Line, column, and endline
77
61
` ,
78
62
},
79
63
{
@@ -98,8 +82,8 @@ func TestFormatGitHubActionOutput(t *testing.T) {
98
82
},
99
83
},
100
84
},
101
- want : `::error file=example.proto,endColumn=4,endLine =3,col=2,line=1 ,title=core։։naming_formats։։field_names::\n\nhttps://linter.aip.dev/naming_formats/field_names
102
- ::error file=example.proto,endColumn=8,endLine =7,col=6,line=5 ,title=core։։naming_formats։։field_names::multi\nline\ncomment\n\nhttps://linter.aip.dev/naming_formats/field_names
85
+ want : `::error file=example.proto,line=2,col =3,endLine=4,endColumn=4 ,title=core։։naming_formats։։field_names::\n\nhttps://linter.aip.dev/naming_formats/field_names
86
+ ::error file=example.proto,line=6,col =7,endLine=8,endColumn=8 ,title=core։։naming_formats։։field_names::multi\nline\ncomment\n\nhttps://linter.aip.dev/naming_formats/field_names
103
87
` ,
104
88
},
105
89
{
0 commit comments