Skip to content

Commit

Permalink
🌱 Ignore deprecation warning for dependencydiff tests. (ossf#3136)
Browse files Browse the repository at this point in the history
Signed-off-by: Spencer Schrock <[email protected]>
Signed-off-by: Allen Shearin <[email protected]>
  • Loading branch information
spencerschrock authored and ashearin committed Nov 13, 2023
1 parent d9eb137 commit bdfaa48
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions e2e/dependencydiff_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand All @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit bdfaa48

Please sign in to comment.