mirror of
https://github.com/anchore/syft.git
synced 2026-02-13 02:56:42 +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
493 B
Go
16 lines
493 B
Go
/*
|
|
Package r provides a concrete Cataloger implementation relating to packages within the R language ecosystem.
|
|
*/
|
|
package r
|
|
|
|
import (
|
|
"github.com/anchore/syft/syft/pkg"
|
|
"github.com/anchore/syft/syft/pkg/cataloger/generic"
|
|
)
|
|
|
|
// NewPackageCataloger returns a new R cataloger object based on detection of R package DESCRIPTION files.
|
|
func NewPackageCataloger() pkg.Cataloger {
|
|
return generic.NewCataloger("r-package-cataloger").
|
|
WithParserByGlobs(parseDescriptionFile, "**/DESCRIPTION")
|
|
}
|