mirror of
https://github.com/anchore/syft.git
synced 2026-11-03 07:56:36 +01:00
Normalize cataloger configuration patterns (#2365)
* normalize cataloger patterns Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * remove central reference for maven configurable Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> --------- Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
This commit is contained in:
@@ -4,16 +4,17 @@ Package swift provides a concrete Cataloger implementation relating to packages
|
||||
package swift
|
||||
|
||||
import (
|
||||
"github.com/anchore/syft/syft/pkg"
|
||||
"github.com/anchore/syft/syft/pkg/cataloger/generic"
|
||||
)
|
||||
|
||||
func NewSwiftPackageManagerCataloger() *generic.Cataloger {
|
||||
func NewSwiftPackageManagerCataloger() pkg.Cataloger {
|
||||
return generic.NewCataloger("swift-package-manager-cataloger").
|
||||
WithParserByGlobs(parsePackageResolved, "**/Package.resolved", "**/.package.resolved")
|
||||
}
|
||||
|
||||
// NewCocoapodsCataloger returns a new Swift Cocoapods lock file cataloger object.
|
||||
func NewCocoapodsCataloger() *generic.Cataloger {
|
||||
func NewCocoapodsCataloger() pkg.Cataloger {
|
||||
return generic.NewCataloger("cocoapods-cataloger").
|
||||
WithParserByGlobs(parsePodfileLock, "**/Podfile.lock")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user