File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 19
19
pkgAnalyzers []PkgAnalyzer
20
20
libAnalyzers []LibraryAnalyzer
21
21
commandAnalyzers []CommandAnalyzer
22
+ additionalFiles []string
22
23
23
24
// ErrUnknownOS occurs when unknown OS is analyzed.
24
25
ErrUnknownOS = xerrors .New ("Unknown OS" )
@@ -87,8 +88,13 @@ func RegisterLibraryAnalyzer(analyzer LibraryAnalyzer) {
87
88
libAnalyzers = append (libAnalyzers , analyzer )
88
89
}
89
90
91
+ func AddRequiredFilenames (filenames []string ) {
92
+ additionalFiles = append (additionalFiles , filenames ... )
93
+ }
94
+
90
95
func RequiredFilenames () []string {
91
96
filenames := []string {}
97
+ filenames = append (filenames , additionalFiles ... )
92
98
for _ , analyzer := range osAnalyzers {
93
99
filenames = append (filenames , analyzer .RequiredFiles ()... )
94
100
}
You can’t perform that action at this time.
0 commit comments