Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions internal/lint/gomod.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,6 @@ func repoRelPath(root, modDir, p string) string {
if rel, ok := under(root, abs); ok {
return rel
}
// the tool may print a symlink-resolved path (macOS /var -> /private/var)
if real, err := filepath.EvalSymlinks(root); err == nil {
if rel, ok := under(real, abs); ok {
return rel
}
}
return filepath.ToSlash(p)
}

Expand Down
2 changes: 1 addition & 1 deletion internal/lint/lint.go
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ func lintGoModule(root, bin, modDir string, files []string, block bool) []gitx.F
findings := finishParse(raw, err, files[0], "golangci-lint", block)
out := baselineNote
for _, f := range findings {
if strings.HasPrefix(f.Message, "NOT checked") {
if f.File == files[0] {
// the run-failed refusal already names the absolute file; a
// real finding in that same file has a path to map instead
out = append(out, f)
Expand Down
Loading