Skip to content

Commit

Permalink
build: fix integration test and lint errors
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Gosteli <[email protected]>
  • Loading branch information
ghouscht committed Oct 24, 2024
1 parent bf19582 commit c17b018
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 2 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion syft/pkg/cataloger/terraform/parse_tf_lock.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ type lockFile struct {
} `hcl:"provider,block"`
}

func parseTerraformLock(_ context.Context, resolver file.Resolver, env *generic.Environment, reader file.LocationReadCloser) ([]pkg.Package, []artifact.Relationship, error) {
func parseTerraformLock(_ context.Context, _ file.Resolver, _ *generic.Environment, reader file.LocationReadCloser) ([]pkg.Package, []artifact.Relationship, error) {
var lockFile lockFile

contents, err := io.ReadAll(reader)
Expand Down
2 changes: 1 addition & 1 deletion syft/pkg/type.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ func TypeFromPURL(p string) Type {
return TypeByName(ptype)
}

//nolint:funlen
//nolint:funlen,gocyclo
func TypeByName(name string) Type {
switch name {
case packageurl.TypeDebian:
Expand Down

0 comments on commit c17b018

Please sign in to comment.