FilterAnalysisToChanged filters FileAnalysis slice to only changed files
(files []FileAnalysis, changed map[string]bool)
| 145 | |
| 146 | // FilterAnalysisToChanged filters FileAnalysis slice to only changed files |
| 147 | func FilterAnalysisToChanged(files []FileAnalysis, changed map[string]bool) []FileAnalysis { |
| 148 | var result []FileAnalysis |
| 149 | for _, f := range files { |
| 150 | if changed[f.Path] || changed[filepath.ToSlash(f.Path)] { |
| 151 | result = append(result, f) |
| 152 | } |
| 153 | } |
| 154 | return result |
| 155 | } |
| 156 | |
| 157 | // ImpactInfo describes which changed files are used by other files |
| 158 | type ImpactInfo struct { |
no outgoing calls