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

Pointer types are not handled correctly #50

Open
rockdaboot opened this issue Feb 19, 2025 · 1 comment · May be fixed by #51
Open

Pointer types are not handled correctly #50

rockdaboot opened this issue Feb 19, 2025 · 1 comment · May be fixed by #51
Assignees
Labels
bug Something isn't working

Comments

@rockdaboot
Copy link

rockdaboot commented Feb 19, 2025

Describe the bug
When using --fix with golangci-lint, result is a wrong transformation:

-                               for k := 0; k < int(*i); k++ {
+                               for range int() {

From my understanding, this is something that needs to be fixed in intrange.
If not, please let me know and I'll open an issue at golangci-lint.

Expected behavior
Transform to

+                               for range int(*i) {
@ckaznocha
Copy link
Owner

This is the right place for the report, thanks for submitting this one!

@ckaznocha ckaznocha added the bug Something isn't working label Feb 19, 2025
@ckaznocha ckaznocha self-assigned this Mar 2, 2025
ckaznocha added a commit that referenced this issue Mar 3, 2025
@ckaznocha ckaznocha linked a pull request Mar 3, 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
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants