-
Notifications
You must be signed in to change notification settings - Fork 38
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
Add gofumpt #210
Add gofumpt #210
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi there! Thanks for using trunk and for making this contribution! The setup for gofumpt looks great, with just a couple minor comments.
Once you've addressed those feel free to update your PR with main and merge! Thanks again!
// gofumpt generates a failure on an empty file | ||
linterCheckTest({ linterName: "gofumpt", namedTestPrefixes: ["empty"] }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for calling this out. We may move in the future to adding allow_empty_files: false
to both gofumpt and gofmt, but this should be fine for now.
package-lock.json
Outdated
@@ -1,5 +1,5 @@ | |||
{ | |||
"name": "plugins", | |||
"name": "trunk-plugins", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you back this file change out? Was there something you ran into that brought this up?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nothing specific, must have happened since I renamed my fork as trunk-plugins
@TylerJang27 should be all good to go! |
@tomlazar Thanks again! We probably won't get another release out for a week or so, but if you need plugins:
sources:
- id: trunk
ref: 19526b8797860900fb9680233943072b78c9f356
uri: https://github.com/trunk-io/plugins or you can add your linter definition directly. |
Basically the same as gofmt, just a little more strict.