mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-01-07 05:46:37 +00:00
Add nolint directives for intentional deprecated function usage
The ShouldPerformSnapshotWithVolumeHelper function and tests intentionally use NewVolumeHelperImpl (deprecated) for backwards compatibility with third-party plugins. Add nolint:staticcheck to suppress the linter warnings with explanatory comments. Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com>
This commit is contained in:
@@ -322,6 +322,7 @@ func TestVolumeHelperImpl_ShouldPerformSnapshot(t *testing.T) {
|
||||
t.Fatalf("failed to build policy with error %v", err)
|
||||
}
|
||||
}
|
||||
//nolint:staticcheck // Testing deprecated function for backwards compatibility
|
||||
vh := NewVolumeHelperImpl(
|
||||
p,
|
||||
tc.snapshotVolumesFlag,
|
||||
@@ -687,6 +688,7 @@ func TestVolumeHelperImpl_ShouldPerformFSBackup(t *testing.T) {
|
||||
t.Fatalf("failed to build policy with error %v", err)
|
||||
}
|
||||
}
|
||||
//nolint:staticcheck // Testing deprecated function for backwards compatibility
|
||||
vh := NewVolumeHelperImpl(
|
||||
p,
|
||||
tc.snapshotVolumesFlag,
|
||||
|
||||
Reference in New Issue
Block a user