From 332472d4d67be05f151151244ed3aa3da8d3f975 Mon Sep 17 00:00:00 2001 From: Spencer Schrock Date: Wed, 7 Jun 2023 13:12:51 -0700 Subject: [PATCH] disable deprecation warning for dependencydiff tests. Signed-off-by: Spencer Schrock --- e2e/dependencydiff_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/e2e/dependencydiff_test.go b/e2e/dependencydiff_test.go index 5b0e1da69ea..49c375cc676 100644 --- a/e2e/dependencydiff_test.go +++ b/e2e/dependencydiff_test.go @@ -21,6 +21,7 @@ import ( . "github.com/onsi/gomega" "github.com/ossf/scorecard/v4/checks" + //nolint:staticcheck // we know it's deprecated and the tests will be removed when the package is "github.com/ossf/scorecard/v4/dependencydiff" ) @@ -40,6 +41,7 @@ var _ = Describe("E2E TEST:"+dependencydiff.Depdiff, func() { changeTypesToCheck := []string{ "removed", // Only checking those removed ones will make this test faster. } + //nolint:staticcheck // we know it's deprecated and the tests will be removed when the package is results, err := dependencydiff.GetDependencyDiffResults( ctx, repoURI, @@ -58,6 +60,7 @@ var _ = Describe("E2E TEST:"+dependencydiff.Depdiff, func() { changeTypesToCheck := []string{ "removed", } + //nolint:staticcheck // we know it's deprecated and the tests will be removed when the package is results, err := dependencydiff.GetDependencyDiffResults( ctx, repoURI, @@ -76,6 +79,7 @@ var _ = Describe("E2E TEST:"+dependencydiff.Depdiff, func() { changeTypesToCheck := []string{ "removed", } + //nolint:staticcheck // we know it's deprecated and the tests will be removed when the package is _, err := dependencydiff.GetDependencyDiffResults( ctx, repoURI,