mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-13 10:33:35 +00:00
ci: update golangci-lint to v1.62.2
- gomnd is replaced by mnd in v1.58.0 - gosec exlcude G115 rule (Potential integer overflow when converting between integer types) - disable new iface linter - disable new recvcheck linter Signed-off-by: Praveen M <m.praveen@ibm.com>
This commit is contained in:
@ -31,7 +31,7 @@ import (
|
||||
var (
|
||||
availableMounters []string
|
||||
|
||||
//nolint:gomnd // numbers specify Kernel versions.
|
||||
//nolint:mnd // numbers specify Kernel versions.
|
||||
quotaSupport = []util.KernelVersion{
|
||||
{
|
||||
Version: 4,
|
||||
|
@ -76,7 +76,7 @@ var (
|
||||
kernelRelease = ""
|
||||
// deepFlattenSupport holds the list of kernel which support mapping rbd
|
||||
// image with deep-flatten image feature
|
||||
//nolint:gomnd // numbers specify Kernel versions.
|
||||
//nolint:mnd // numbers specify Kernel versions.
|
||||
deepFlattenSupport = []util.KernelVersion{
|
||||
{
|
||||
Version: 5,
|
||||
|
@ -1793,7 +1793,7 @@ func (ri *rbdImageMetadataStash) String() string {
|
||||
func stashRBDImageMetadata(volOptions *rbdVolume, metaDataPath string) error {
|
||||
imgMeta := rbdImageMetadataStash{
|
||||
// there are no checks for this at present
|
||||
Version: 3, //nolint:gomnd // number specifies version.
|
||||
Version: 3, //nolint:mnd // number specifies version.
|
||||
Pool: volOptions.Pool,
|
||||
RadosNamespace: volOptions.RadosNamespace,
|
||||
ImageName: volOptions.RbdImageName,
|
||||
|
Reference in New Issue
Block a user