Add gosimports (#1205)

This commit is contained in:
Keith Zantow
2022-09-14 13:38:18 -04:00
committed by GitHub
parent 9097614f3b
commit b20310eaf8
217 changed files with 492 additions and 401 deletions
@@ -8,10 +8,8 @@ import (
"path/filepath"
"github.com/anchore/syft/internal"
"github.com/anchore/syft/syft/artifact"
"github.com/anchore/syft/syft/pkg"
"github.com/anchore/syft/syft/source"
)
@@ -3,9 +3,10 @@ package python
import (
"testing"
"github.com/go-test/deep"
"github.com/anchore/syft/syft/pkg"
"github.com/anchore/syft/syft/source"
"github.com/go-test/deep"
)
func TestPythonPackageWheelCataloger(t *testing.T) {
@@ -1,13 +1,13 @@
package python
import (
"github.com/anchore/syft/syft/source"
"os"
"testing"
"github.com/google/go-cmp/cmp"
"github.com/anchore/syft/syft/pkg"
"github.com/anchore/syft/syft/source"
)
func TestParsePipFileLock(t *testing.T) {
@@ -4,10 +4,11 @@ import (
"fmt"
"io"
"github.com/pelletier/go-toml"
"github.com/anchore/syft/syft/artifact"
"github.com/anchore/syft/syft/pkg"
"github.com/anchore/syft/syft/pkg/cataloger/common"
"github.com/pelletier/go-toml"
)
// integrity check
@@ -4,8 +4,9 @@ import (
"os"
"testing"
"github.com/anchore/syft/syft/pkg"
"github.com/go-test/deep"
"github.com/anchore/syft/syft/pkg"
)
func TestParsePoetryLock(t *testing.T) {
@@ -1,13 +1,13 @@
package python
import (
"github.com/anchore/syft/syft/source"
"os"
"testing"
"github.com/google/go-cmp/cmp"
"github.com/anchore/syft/syft/pkg"
"github.com/anchore/syft/syft/source"
)
func TestParseRequirementsTxt(t *testing.T) {
@@ -1,13 +1,13 @@
package python
import (
"github.com/anchore/syft/syft/source"
"os"
"testing"
"github.com/google/go-cmp/cmp"
"github.com/anchore/syft/syft/pkg"
"github.com/anchore/syft/syft/source"
)
func TestParseSetup(t *testing.T) {
@@ -7,11 +7,10 @@ import (
"path/filepath"
"strings"
"github.com/anchore/syft/internal/file"
"github.com/anchore/syft/internal/log"
"github.com/mitchellh/mapstructure"
"github.com/anchore/syft/internal/file"
"github.com/anchore/syft/internal/log"
"github.com/anchore/syft/syft/pkg"
)
@@ -4,8 +4,9 @@ import (
"os"
"testing"
"github.com/anchore/syft/syft/pkg"
"github.com/go-test/deep"
"github.com/anchore/syft/syft/pkg"
)
func TestParseWheelEggMetadata(t *testing.T) {
@@ -4,8 +4,9 @@ import (
"os"
"testing"
"github.com/anchore/syft/syft/pkg"
"github.com/go-test/deep"
"github.com/anchore/syft/syft/pkg"
)
func TestParseWheelEggRecord(t *testing.T) {