You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @ldez
Thanks for your time to analyze this PR and for your rapid response.
I have been thinking on both of your comments and I think them both are good approaches.
Including gomodclean into gomoddirectives makes sense, since both projects analyzes the go.mod file (the use of the directives included into the go.mod file). This project started when I saw some go.mod files that had gone terribly wild, so I decided to create a simple linter. I had the goal to do something simple, something that only did one thing, but did it well. If we include this functionality into gomoddirectives, its complexity would grow (since it already contains many rules for different directives and configuration and I am thinking about adding an autofix option). I believe it would be more complex to keep scaling gomodclean independently.
On the other hand, your idea about converting it into a formatter instead of a linter sounds pretty good. I could change the name to gomodfmt. This approach gives us the possibility to keep gomodfmtgrowing and add some functionalities that wouldn't fit well into gomoddirectives (maybe because of the purpose of gomoddirectives or the extra complexity). My goal for the future is to keep mainteinance, add the autofix mode and, at that moment, consider a finished version and release the v1.0.0 version.
Anyway, both options fit well for me.
Looking forward to your response and your thoughts about it.
Thank you again!!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
blockedNeed's direct action from maintainerlinter: newSupport new linter
2 participants
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
gomodcleanis a linter to checkrequiredirectives are well structured inside your go.mod file.https://github.com/dmrioja/gomodclean