Skip to content

Commit 93e2cd5

Browse files
committed
Suppress some linter warnings
1 parent 5c86518 commit 93e2cd5

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

git_sizer_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ func TestRefSelections(t *testing.T) {
9090

9191
refname string
9292
}{
93+
//nolint:gocritic // Want columns in comment to match initializers.
9394
// 111111111
9495
//0123456789012345678
9596
{"+ + + + + + + + +", "refs/barfoo"},

sizes/output.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -470,6 +470,7 @@ func (s *HistorySize) contents(refGroups []RefGroup) tableContents {
470470
metric := counts.Metric
471471
binary := counts.Binary
472472

473+
//nolint:prealloc // The length is not known in advance.
473474
var rgis []tableContents
474475
for _, rg := range refGroups {
475476
if rg.Symbol == "" {

0 commit comments

Comments
 (0)