Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
2 of 3 tasks
pierrre opened this issue Mar 28, 2025 · 0 comments · May be fixed by #5651
Open
2 of 3 tasks

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

pierrre opened this issue Mar 28, 2025 · 0 comments · May be fixed by #5651
Assignees
Labels
area: output Related to issue output enhancement New feature or improvement

Comments

@pierrre
Copy link
Contributor

pierrre commented Mar 28, 2025

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

@pierrre pierrre added the enhancement New feature or improvement label Mar 28, 2025
@ldez ldez self-assigned this Mar 28, 2025
@ldez ldez added the area: output Related to issue output label Mar 28, 2025
@ldez ldez linked a pull request Mar 28, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: output Related to issue output enhancement New feature or improvement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants