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 21b0358 commit 0155202Copy full SHA for 0155202
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.TrimPrefix(fileWithoutPathPrefix, f.cfg.Output.PathPrefix+string(filepath.Separator))
+ fileWithoutPathPrefix = strings.TrimPrefix(fileWithoutPathPrefix, filepath.Clean(f.cfg.Output.PathPrefix)+string(filepath.Separator))
63
}
64
err = f.fixIssuesInFile(fileWithoutPathPrefix, issuesToFix)
65
})
0 commit comments