-
-
Notifications
You must be signed in to change notification settings - Fork 72
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
Support for passing gofmt options #34
Comments
Hi @jdechicchis, |
I see, that makes sense. The licensing is a hurdle. We were thinking that since P.S. the actual import sorting functionality is great :) |
@jdechicchis Thanks:) Ok. Let's discuss the requirements. Here are some ideas which could be start point:
If you have an idea, then welcome:) |
Apologies for the delayed reply. Those make sense to me. Perhaps we can also look to gofmt's simplify option as a starting point? Even though we can't copy their implementation, I think mirroring the functionality (although someone tedious) may make for a nice addition to
I suppose one could add a |
@jdechicchis Cool, I like it! I'll create separate issues for that(perhaps today-tomorrow) with the label |
Sounds great @incu6us! I'm hoping to pick up some of these issues starting next week |
#35 - done |
#36 - done |
It would be great to have the ability to pass gofmt options such as
-s
etc. Looking at https://golang.org/src/cmd/gofmt/ not sure what the best approach would be here. I see goimports-reviser is currently using go/format. Ideally,goimports-reviser
wouldn't have to duplicate the work of gofmt, including it's flags, but I also see how calling the gofmt binary may not be desired as well. Happy to make a PR, but would appreciate some feedback since I'm not very familiar with this.The text was updated successfully, but these errors were encountered: