segmentio / golines

A golang formatter that fixes long lines
MIT License
907 stars 56 forks source link

Any plans on adding a --lint flag #67

Open vitorf7 opened 2 years ago

vitorf7 commented 2 years ago

Hi, first of all, thank you so much for the hard work and this tool. Recently at work, I have been trying to standardise our way of using golangci-lint and I have seen that there is a lll linter but I was not really happy with it as it just cares about long lines does not take a lot of things into consideration as golines does which is why I prefer golines.

My question is if there is any plan to maybe add something like a --lint flag so that golines only shows the errors for the lines that need to be changed, etc? I guess this is somewhere between the --list-files and --dry-run but without showing all the changes I think.

I would like to know your thoughts, and if something like this could be achieved. If so, although not a golang guru myself I would love to try and help to achieve this maybe you'd need to let me know your thoughts and where I could begin. I remember seeing a conversation about golines and someone asking to add it to golangci-lint here https://github.com/golangci/golangci-lint/issues/1914 , so maybe adding a --lint flag would probably help.