Skip to content

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

Merged
merged 3 commits into from
Feb 13, 2017

Conversation

bkcsoft
Copy link
Member

@bkcsoft bkcsoft commented Feb 12, 2017

Question: should we group all code.gitea.io-packages together as local imports? (including code.gitea.io/sdk and code.gitea.io/git etc)

@go-gitea/maintainers (sorry for the ping-all, but I want everyones opinion on this 😉 )

Question: should we group all `code.gitea.io`-packages together as local imports? (including `code.gitea.io/sdk` and `code.gitea.io/git` etc)
@bkcsoft bkcsoft added type/docs This PR mainly updates/creates documentation type/proposal The new feature has not been accepted yet but needs to be discussed first. issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail labels Feb 12, 2017
@lunny lunny added this to the 1.1.0 milestone Feb 12, 2017
@lunny
Copy link
Member

lunny commented Feb 12, 2017

I think we should group code.gitea.io-packages together as local imports. Otherwise LGTM

@tboerger tboerger added the lgtm/need 1 This PR needs approval from one additional maintainer to be merged. label Feb 12, 2017
@appleboy
Copy link
Member

appleboy commented Feb 12, 2017

Vote @lunny comment +1. Otherwise LGTM

@tboerger tboerger added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Feb 12, 2017
@lunny
Copy link
Member

lunny commented Feb 12, 2017

Who is -@-lukad- ?

@lukad
Copy link

lukad commented Feb 12, 2017

That would be me. Probably a typo.

@lunny
Copy link
Member

lunny commented Feb 12, 2017

Why continuous-integration/drone/push is failed?

@appleboy
Copy link
Member

@lukad Sorry for mentioned you.

@andreynering
Copy link
Contributor

I think we should group all code.gitea.io repos together:

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"
+)

@lunny
Copy link
Member

lunny commented Feb 12, 2017

@andreynering yes, that's what I have commented.

@thehowl
Copy link
Contributor

thehowl commented Feb 12, 2017

wouldn't it be better to use the plural instead of the singular? i.e. local packages and external packages

@lunny
Copy link
Member

lunny commented Feb 12, 2017

^

@bkcsoft
Copy link
Member Author

bkcsoft commented Feb 12, 2017

Done :)

@thehowl
Copy link
Contributor

thehowl commented Feb 12, 2017

I quickly hacked together a script that formats the code following the style guide :)

https://github.com/thehowl/giteafmt

@bkcsoft
Copy link
Member Author

bkcsoft commented Feb 12, 2017

@thehowl Should I specify that you shouldn't include the comments? :trollface:

But really nice project! 🎉

@bkcsoft
Copy link
Member Author

bkcsoft commented Feb 12, 2017

@thehowl How do you handle localhost/foo/bar ? :trollface: https://github.com/thehowl/giteafmt/blob/master/types.go#L19

@thehowl
Copy link
Contributor

thehowl commented Feb 12, 2017

... yes you should have specified it :P

I'm gonna write A Beginner's Guide On How To Feel Dumb

@thehowl
Copy link
Contributor

thehowl commented Feb 12, 2017

How do you handle localhost/foo/bar ?

I don't. :trollface: I just quickly smashed together some code so that it worked with the Gitea repo, it's not meant to handle all the edge cases.

@bkcsoft
Copy link
Member Author

bkcsoft commented Feb 12, 2017

Now it's specific 😆

@andreynering
Copy link
Contributor

LGTM

@lunny lunny merged commit 091f063 into master Feb 13, 2017
@tboerger
Copy link
Member

I don't have a strong opinion on that, but I'm getting with the majority

@andreynering andreynering deleted the bkcsoft/contrib-import-styleguide branch February 13, 2017 09:15
@go-gitea go-gitea locked and limited conversation to collaborators Nov 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. type/docs This PR mainly updates/creates documentation type/proposal The new feature has not been accepted yet but needs to be discussed first.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants