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

Use PositionFor instead of Position #7

Merged
merged 1 commit into from
Jul 31, 2023

Conversation

bombsimon
Copy link
Contributor

If a node has a //line comment the position reported from Position will be based on that comment. However, when we suggest fixes in golanngci-lint we need to do this in the current file, even if it's generated.

This will ensure we get the actual position in the potentially generated file and ignoring the comment directive.

If a node has a `//line` comment the position reported from `Position`
will be based on that comment. However, when we suggest fixes in
`golanngci-lint` we need to do this in the current file, even if it's
generated.

This will ensure we get the actual position in the potentially generated
file and ignoring the comment directive.
@elwint elwint merged commit cfcbc0a into ultraware:master Jul 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants