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

refactor: Reduce package-comments output scope #791

Merged
merged 1 commit into from
Feb 17, 2023
Merged

refactor: Reduce package-comments output scope #791

merged 1 commit into from
Feb 17, 2023

Conversation

heyvito
Copy link
Contributor

@heyvito heyvito commented Feb 17, 2023

This reduces the amount of lines reported by package-comments by only reporting the package xyz line, instead of the whole file.

Closes #790

This reduces the amount of lines reported by package-comments by only
reporting the `package XXXXXXX' line, instead of the whole file.
@chavacava
Copy link
Collaborator

Hi @heyvito, thanks for filling the issue and providing a fix.
I'll check the PR.

@heyvito
Copy link
Contributor Author

heyvito commented Feb 17, 2023

Hey @chavacava! This is more something I felt was inconsistent, but in the end I think it is a matter of opinion.

I noticed this cause I'm working on a tool that leverages Revive for reporting issues, and was quite surprised when it reported the issue spanning the whole file instead of just a specific portion of it. So I'll completely understand in case you conclude this is not worth merging, or if you think the current behaviour is appropriate.

Thanks for taking some time to review this! <3

@chavacava chavacava merged commit b2bc00b into mgechev:master Feb 17, 2023
@chavacava
Copy link
Collaborator

Thanks @heyvito

@heyvito heyvito deleted the refactor/package-comments branch February 17, 2023 23:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

package-comments position includes the whole file
2 participants