We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e7a1164 commit db6177dCopy full SHA for db6177d
pkg/result/processors/fixer.go
@@ -61,7 +61,7 @@ func (f Fixer) Process(issues []result.Issue) []result.Issue {
61
fileWithoutPathPrefix := file
62
63
if f.cfg.Output.PathPrefix != "" {
64
- fileWithoutPathPrefix = strings.Replace(fileWithoutPathPrefix, f.cfg.Output.PathPrefix+string(filepath.Separator), "", 1)
+ fileWithoutPathPrefix = strings.TrimPrefix(fileWithoutPathPrefix, f.cfg.Output.PathPrefix+string(filepath.Separator))
65
}
66
err = f.fixIssuesInFile(fileWithoutPathPrefix, issuesToFix)
67
})
0 commit comments