PostAnalyze performs configuration analysis on the input filesystem and detect misconfigurations.
(ctx context.Context, input analyzer.PostAnalysisInput)
| 41 | |
| 42 | // PostAnalyze performs configuration analysis on the input filesystem and detect misconfigurations. |
| 43 | func (a *Analyzer) PostAnalyze(ctx context.Context, input analyzer.PostAnalysisInput) (*analyzer.AnalysisResult, error) { |
| 44 | misconfs, err := a.scanner.Scan(ctx, input.FS) |
| 45 | if err != nil { |
| 46 | return nil, xerrors.Errorf("%s scan error: %w", a.typ, err) |
| 47 | } |
| 48 | return &analyzer.AnalysisResult{Misconfigurations: misconfs}, nil |
| 49 | } |
| 50 | |
| 51 | // Required checks if the given file path has one of the required file extensions. |
| 52 | func (a *Analyzer) Required(filePath string, _ os.FileInfo) bool { |