mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-13 10:33:35 +00:00
cleanup: resolves cyclop linter issue
this commit adds `// nolint:cyclop` for the fucntions whose complexity is above 20 Updates: #1586 Signed-off-by: Yati Padia <ypadia@redhat.com>
This commit is contained in:
@ -188,7 +188,7 @@ func validateRBDStaticPV(f *framework.Framework, appPath string, isBlock, checkI
|
||||
return err
|
||||
}
|
||||
|
||||
// nolint:gocyclo // reduce complexity
|
||||
// nolint:gocyclo,cyclop // reduce complexity
|
||||
func validateCephFsStaticPV(f *framework.Framework, appPath, scPath string) error {
|
||||
opt := make(map[string]string)
|
||||
var (
|
||||
|
@ -527,7 +527,7 @@ func writeDataAndCalChecksum(app *v1.Pod, opt *metav1.ListOptions, f *framework.
|
||||
return checkSum, nil
|
||||
}
|
||||
|
||||
// nolint:gocyclo,gocognit,nestif // reduce complexity
|
||||
// nolint:gocyclo,gocognit,nestif,cyclop // reduce complexity
|
||||
func validatePVCClone(
|
||||
totalCount int,
|
||||
sourcePvcPath, sourceAppPath, clonePvcPath, clonePvcAppPath string,
|
||||
@ -728,7 +728,7 @@ func validatePVCClone(
|
||||
validateRBDImageCount(f, 0, defaultRBDPool)
|
||||
}
|
||||
|
||||
// nolint:gocyclo,gocognit,nestif // reduce complexity
|
||||
// nolint:gocyclo,gocognit,nestif,cyclop // reduce complexity
|
||||
func validatePVCSnapshot(
|
||||
totalCount int,
|
||||
pvcPath, appPath, snapshotPath, pvcClonePath, appClonePath string,
|
||||
|
Reference in New Issue
Block a user