github.com/noqcks/syft@v0.0.0-20230920222752-a9e2c4e288e5/syft/pkg/cataloger/r/cataloger.go (about)

     1  package r
     2  
     3  import (
     4  	"github.com/anchore/syft/syft/pkg/cataloger/generic"
     5  )
     6  
     7  const catalogerName = "r-package-cataloger"
     8  
     9  // NewPackageCataloger returns a new R cataloger object based on detection of R package DESCRIPTION files.
    10  func NewPackageCataloger() *generic.Cataloger {
    11  	return generic.NewCataloger(catalogerName).
    12  		WithParserByGlobs(parseDescriptionFile, "**/DESCRIPTION")
    13  }