Skip to content

Add an option to show the full/absolute path of files #5649

Closed
@pierrre

Description

@pierrre

Welcome

How did you install golangci-lint?

Official binary

Your feature request related to a problem? Please describe

In my workflow, I run golangci-lint on several projects at the same time (from a script).
When an issue is reported, the file path is relative to the directory of each projets.
It's not very convenient, because I don't know from which project the error is coming from.
My terminal can linkify the files paths, but it doesn't work if the path is relative an match several projects.

Describe the solution you'd like

It would be nice to have a flag/option similar to the -fullpath of the Go command that show the full/absolute path of files.

Describe alternatives you've considered

I could use the --path-prefix flag and provide the full/absolute path of each repository.
But it's not convenient.

Additional context

No response

Supporter

Metadata

Metadata

Assignees

Labels

area: outputRelated to issue outputenhancementNew feature or improvement

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions