feat: move file patterns to a global level to be able to use it on any analyzer (#2539)

This commit is contained in:
jerbob92
2022-09-01 10:01:57 +02:00
committed by GitHub
parent 2580ea1583
commit 5f0bf1445a
35 changed files with 269 additions and 298 deletions

View File

@@ -92,7 +92,10 @@ func TestManager_Register(t *testing.T) {
}()
// Confirm the analyzer is registered
got := analyzer.NewAnalyzerGroup("", nil).AnalyzerVersions()
a, err := analyzer.NewAnalyzerGroup("", nil, nil)
require.NoError(t, err)
got := a.AnalyzerVersions()
assert.Equal(t, tt.wantAnalyzerVersions, got)
// Confirm the post scanner is registered