-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
golines: settings not obeyed during run
#5603
Comments
On further experimentation, it seems like it's not just this one setting, but none of the settings for this formatter are obeyed during |
Stepping through things in the debugger quickly found the problem, I'll submit a PR |
reformat-tags: false
not obeyed during run
run
@mgabeler-lee-6rs I have a fix locally, should I wait for your PR? |
I want to create a release quickly because this is a critical bug. |
@ldez Sorry, I didn't see your comment while I was working on my PR. Feel free to take whichever looks better, I won't take it personally if you discard mine in favor of your fix :) |
I will keep you PR, thank you ❤️ |
Welcome
typecheck
section of the FAQ.How did you install golangci-lint?
Deb
Description of the problem
The
reformat-tags: false
option for the newgolines
formatter is ignored duringrun
, only obeyed duringfmt
. This is problematic because an upstream bug causes that reformatting to corrupt tag contents.Results:
$ golangci-lint run ./try.go try.go:4:1: File is not properly formatted (golines) Bar string `a:"b=\"c\"" d:"e"` ^
Vs running upstream linter with the same settings:
Running
golangci-lint fmt ./try.go
does obey the setting and doesn't modify the file.Version of golangci-lint
Configuration
Go environment
Verbose output of running
A minimal reproducible example or link to a public repository
try.go:
Validation
Supporter
The text was updated successfully, but these errors were encountered: