mirror of
https://github.com/anchore/syft.git
synced 2025-11-19 17:33:18 +01:00
* 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>
16 lines
476 B
Go
16 lines
476 B
Go
/*
|
|
Package dart provides a concrete Cataloger implementations for the Dart language ecosystem.
|
|
*/
|
|
package dart
|
|
|
|
import (
|
|
"github.com/anchore/syft/syft/pkg"
|
|
"github.com/anchore/syft/syft/pkg/cataloger/generic"
|
|
)
|
|
|
|
// NewPubspecLockCataloger returns a new Dartlang cataloger object base on pubspec lock files.
|
|
func NewPubspecLockCataloger() pkg.Cataloger {
|
|
return generic.NewCataloger("dart-pubspec-lock-cataloger").
|
|
WithParserByGlobs(parsePubspecLock, "**/pubspec.lock")
|
|
}
|