Skip to content

Commit 806baf7

Browse files
committed
chore: clean and unify nolint directives
Drop unnecessary nolint directives and unify the style of remaining ones to match the rest of the codebase (and the golangci-lint documentation).
1 parent a2eea2b commit 806baf7

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

pkg/adaptation/api.go

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ import (
2525
//
2626

2727
// Aliased request/response/event types for api/api.proto.
28-
// nolint
2928
type (
3029
RegisterPluginRequest = api.RegisterPluginRequest
3130
RegisterPluginResponse = api.Empty
@@ -102,7 +101,8 @@ type (
102101
)
103102

104103
// Aliased consts for api/api.proto.
105-
// nolint
104+
//
105+
//nolint:revive // ignore const naming from auto-generated code
106106
const (
107107
Event_UNKNOWN = api.Event_UNKNOWN
108108
Event_RUN_POD_SANDBOX = api.Event_RUN_POD_SANDBOX
@@ -134,7 +134,6 @@ const (
134134
)
135135

136136
// Aliased types for api/optional.go.
137-
// nolint
138137
type (
139138
OptionalString = api.OptionalString
140139
OptionalInt = api.OptionalInt
@@ -147,7 +146,6 @@ type (
147146
)
148147

149148
// Aliased functions for api/optional.go.
150-
// nolint
151149
var (
152150
String = api.String
153151
Int = api.Int
@@ -160,7 +158,6 @@ var (
160158
)
161159

162160
// Aliased functions for api/types.go.
163-
// nolint
164161
var (
165162
FromOCIMounts = api.FromOCIMounts
166163
FromOCIHooks = api.FromOCIHooks

pkg/api/event.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ const (
2626
ValidEvents = EventMask((1 << (Event_LAST - 1)) - 1)
2727
)
2828

29-
// nolint
3029
type (
3130
// Define *Request/*Response type aliases for *Event/Empty pairs.
3231

pkg/net/multiplex/mux.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,6 @@ func (m *mux) setError(err error) {
363363
})
364364
}
365365

366-
// nolint
367366
func (m *mux) error() error {
368367
m.errOnce.Do(func() {
369368
if m.err == nil {

0 commit comments

Comments
 (0)