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 57bd7bf commit 21b0358Copy full SHA for 21b0358
pkg/result/processors/fixer.go
@@ -59,7 +59,7 @@ func (f Fixer) Process(issues []result.Issue) []result.Issue {
59
fileWithoutPathPrefix := file
60
61
if f.cfg.Output.PathPrefix != "" {
62
- fileWithoutPathPrefix = strings.Replace(fileWithoutPathPrefix, f.cfg.Output.PathPrefix+string(filepath.Separator), "", 1)
+ fileWithoutPathPrefix = strings.TrimPrefix(fileWithoutPathPrefix, f.cfg.Output.PathPrefix+string(filepath.Separator))
63
}
64
err = f.fixIssuesInFile(fileWithoutPathPrefix, issuesToFix)
65
})
0 commit comments