-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Add import-styleguide to Contributing.md #912
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
Conversation
Question: should we group all `code.gitea.io`-packages together as local imports? (including `code.gitea.io/sdk` and `code.gitea.io/git` etc)
I think we should group |
Vote @lunny comment +1. Otherwise LGTM |
Who is -@-lukad- ? |
That would be me. Probably a typo. |
Why continuous-integration/drone/push is failed? |
@lukad Sorry for mentioned you. |
I think we should group all import (
+ // stdlib
+ "encoding/json"
+ "fmt"
+
+ // local package
+ "code.gitea.io/gitea/models"
+ "code.gitea.io/sdk/gitea"
+
+ // external package
+ "github.com/foo/bar"
+ "gopkg.io/baz.v1"
+) |
@andreynering yes, that's what I have commented. |
wouldn't it be better to use the plural instead of the singular? i.e. |
^ |
Done :) |
I quickly hacked together a script that formats the code following the style guide :) |
@thehowl Should I specify that you shouldn't include the comments? But really nice project! 🎉 |
@thehowl How do you handle |
... yes you should have specified it :P I'm gonna write A Beginner's Guide On How To Feel Dumb |
I don't. |
Now it's specific 😆 |
LGTM |
I don't have a strong opinion on that, but I'm getting with the majority |
Question: should we group all
code.gitea.io
-packages together as local imports? (includingcode.gitea.io/sdk
andcode.gitea.io/git
etc)@go-gitea/maintainers (sorry for the ping-all, but I want everyones opinion on this 😉 )