We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db6177d commit f0211f6Copy full SHA for f0211f6
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.TrimPrefix(fileWithoutPathPrefix, f.cfg.Output.PathPrefix+string(filepath.Separator))
+ fileWithoutPathPrefix = strings.TrimPrefix(fileWithoutPathPrefix, filepath.Clean(f.cfg.Output.PathPrefix)+string(filepath.Separator))
65
}
66
err = f.fixIssuesInFile(fileWithoutPathPrefix, issuesToFix)
67
})
0 commit comments