github.com/anchore/syft@v1.4.2-0.20240516191711-1bec1fc5d397/syft/pkg/cataloger/wordpress/cataloger.go (about) 1 package wordpress 2 3 import ( 4 "github.com/anchore/syft/syft/pkg" 5 "github.com/anchore/syft/syft/pkg/cataloger/generic" 6 ) 7 8 const ( 9 catalogerName = "wordpress-plugins-cataloger" 10 wordpressPluginsGlob = "**/wp-content/plugins/*/*.php" 11 ) 12 13 func NewWordpressPluginCataloger() pkg.Cataloger { 14 return generic.NewCataloger(catalogerName). 15 WithParserByGlobs(parseWordpressPluginFiles, wordpressPluginsGlob) 16 }