mirror of
https://github.com/containers/podman.git
synced 2025-05-20 00:27:03 +08:00
golangci-lint: enable nolintlint
The nolintlint linter does not deny the use of `//nolint` Instead it allows us to enforce a common nolint style: - force that a linter name must be specified - do not add a space between `//` and `nolint` - make sure nolint is only used when there is actually a problem Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
@ -176,7 +176,7 @@ func DeviceFromPath(path string) (*spec.LinuxDevice, error) {
|
||||
var (
|
||||
devType string
|
||||
mode = stat.Mode
|
||||
devNumber = uint64(stat.Rdev) // nolint: unconvert
|
||||
devNumber = uint64(stat.Rdev) //nolint: unconvert
|
||||
m = os.FileMode(mode)
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user