Skip to content

Commit 844e55d

Browse files
authored
Merge pull request #429 from mtrmac/lint-all
Report _all_ lint failures, and fix the outstanding ones
2 parents 0a2af1d + 9602bfa commit 844e55d

File tree

7 files changed

+17
-0
lines changed

7 files changed

+17
-0
lines changed

common/.golangci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,3 +87,7 @@ linters:
8787
- contextcheck
8888
path: libimage
8989
text: LookupImage
90+
91+
issues:
92+
max-issues-per-linter: 0
93+
max-same-issues: 0

common/libimage/platform.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ const (
2525

2626
// NormalizePlatform normalizes (according to the OCI spec) the specified os,
2727
// arch and variant. If left empty, the individual item will be normalized.
28+
//
2829
// Deprecated: new code should call libimage/platform.Normalize() instead.
2930
func NormalizePlatform(rawOS, rawArch, rawVariant string) (os, arch, variant string) {
3031
return platform.Normalize(rawOS, rawArch, rawVariant)

common/libnetwork/types/network.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,7 @@ type PortMapping struct {
322322
}
323323

324324
// OCICNIPortMapping maps to the standard CNI portmapping Capability.
325+
//
325326
// Deprecated: Do not use this struct for new fields. This only exists
326327
// for backwards compatibility.
327328
type OCICNIPortMapping struct {

common/pkg/config/config.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,7 @@ type ContainersConfig struct {
248248
UserNS string `toml:"userns,omitempty"`
249249

250250
// UserNSSize how many UIDs to allocate for automatically created UserNS
251+
//
251252
// Deprecated: no user of this field is known.
252253
UserNSSize int `toml:"userns_size,omitempty,omitzero"`
253254
}
@@ -558,6 +559,7 @@ type EngineConfig struct {
558559
// PodmanshTimeout is the number of seconds to wait for podmansh logins.
559560
// In other words, the timeout for the `podmansh` container to be in running
560561
// state.
562+
//
561563
// Deprecated: Use podmansh.Timeout instead. podmansh.Timeout has precedence.
562564
PodmanshTimeout uint `toml:"podmansh_timeout,omitempty,omitzero"`
563565
}

common/pkg/config/default.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ const (
191191
// DefaultShmSize is the default upper limit on the size of tmpfs mounts.
192192
DefaultShmSize = "65536k"
193193
// DefaultUserNSSize indicates the default number of UIDs allocated for user namespace within a container.
194+
//
194195
// Deprecated: no user of this field is known.
195196
DefaultUserNSSize = 65536
196197
// OCIBufSize limits maximum LogSizeMax.

image/.golangci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,7 @@ linters:
1616
- comments
1717
- common-false-positives
1818
- std-error-handling
19+
20+
issues:
21+
max-issues-per-linter: 0
22+
max-same-issues: 0

storage/.golangci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,7 @@ linters:
1818
- all
1919
- -ST1003 # https://staticcheck.dev/docs/checks/#ST1003 Poorly chosen identifier.
2020
- -QF1008 # https://staticcheck.dev/docs/checks/#QF1008 Omit embedded fields from selector expression.
21+
22+
issues:
23+
max-issues-per-linter: 0
24+
max-same-issues: 0

0 commit comments

Comments
 (0)