We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4caffa8 commit 54b39f5Copy full SHA for 54b39f5
pkg/result/processors/fixer.go
@@ -203,9 +203,12 @@ func (p Fixer) process(issues []result.Issue) ([]result.Issue, error) {
203
formattedFiles = append(formattedFiles, path)
204
}
205
206
+ var tobeFormattedFiles map[string]struct{}
207
for i := range formatIssues {
- path := issues[i].FilePath()
208
+ tobeFormattedFiles[formatIssues[i].FilePath()] = struct{}{}
209
+ }
210
211
+ for path := range tobeFormattedFiles {
212
// Skips files already formatted by the previous fix step.
213
if !slices.Contains(formattedFiles, path) {
214
content, err := p.fileCache.GetFileBytes(path)
0 commit comments