Plugins: Skip angular check for CDN source (#113163)

This commit is contained in:
Todd Treece
2025-10-29 11:33:43 -04:00
committed by GitHub
parent 7eb8a9af99
commit 3bfbbb1961
2 changed files with 31 additions and 6 deletions

View File

@@ -35,6 +35,11 @@ func NewPatternListInspector(detectorsProvider angulardetector.DetectorsProvider
}
func (i *PatternsListInspector) Inspect(ctx context.Context, p *plugins.Plugin) (isAngular bool, err error) {
// CDN plugins are ignored because they should not be using Angular
if p.Class == plugins.ClassCDN {
return false, nil
}
f, err := p.FS.Open("module.js")
if err != nil {
if errors.Is(err, plugins.ErrFileNotExist) {