diff options
author | Paul Holzinger <pholzing@redhat.com> | 2022-06-13 16:08:46 +0200 |
---|---|---|
committer | Paul Holzinger <pholzing@redhat.com> | 2022-06-14 16:29:42 +0200 |
commit | 41528739cef3d2b61e9b7437f6c557e60dbb79c0 (patch) | |
tree | 6fec977dbeb99f71e439d79333ea74114881e31f /libpod/lock/shm/shm_lock.go | |
parent | 78ecdad5f8f16dbb6146f2741a3d7ead1ce837bc (diff) | |
download | podman-41528739cef3d2b61e9b7437f6c557e60dbb79c0.tar.gz podman-41528739cef3d2b61e9b7437f6c557e60dbb79c0.tar.bz2 podman-41528739cef3d2b61e9b7437f6c557e60dbb79c0.zip |
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>
Diffstat (limited to 'libpod/lock/shm/shm_lock.go')
-rw-r--r-- | libpod/lock/shm/shm_lock.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/lock/shm/shm_lock.go b/libpod/lock/shm/shm_lock.go index c7f4d1bc5..6eaf37e48 100644 --- a/libpod/lock/shm/shm_lock.go +++ b/libpod/lock/shm/shm_lock.go @@ -28,7 +28,7 @@ var ( // SHMLocks is a struct enabling POSIX semaphore locking in a shared memory // segment. -type SHMLocks struct { // nolint +type SHMLocks struct { lockStruct *C.shm_struct_t maxLocks uint32 valid bool |