Skip to content
This repository has been archived by the owner on Jun 16, 2021. It is now read-only.

Linting cli package #31

Merged
merged 1 commit into from
Aug 28, 2015
Merged

Linting cli package #31

merged 1 commit into from
Aug 28, 2015

Conversation

vdemeester
Copy link
Collaborator

Updated packages: cli/app, cli/command, cli/docker/app, cli/logger, cli/main.

Wating for #21 to be merged but that opens it to reviews already 馃槈.

馃惛

Signed-off-by: Vincent Demeester vincent@sbr.pm

@@ -8,10 +8,12 @@ import (
"github.com/docker/libcompose/project"
)

type ProjectFactory struct {
// DockerProjectFactory is a struct that hold the app.ProjectFactory implementation.
type DockerProjectFactory struct {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I renamed that as it felt a little weird to have the exact same name for the interface and the struct implementing it. If it breaks outside uses of the lib, tell me, I'll revert that change.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's pretty common in go to do this because any time you reference the type you also include package. So calling code would look like dockerApp.ProjectFactory. Making the type have the package name in it then makes it redundant dockerApp.DockerProjectFactory.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh.. I didn't see it like that. I'll revert this one, agre with you, it makes it redundant.

@vdemeester
Copy link
Collaborator Author

@ibuildthecloud Updated according to your comments 馃槈.

packages: cli/app, cli/command, cli/docker/app, cli/logger, cli/main

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
@gdevillele
Copy link
Contributor

LGTM 馃憤

@aduermael
Copy link
Contributor

LGTM

aduermael pushed a commit that referenced this pull request Aug 28, 2015
@aduermael aduermael merged commit 9b322a5 into docker:master Aug 28, 2015
@vdemeester vdemeester deleted the lint-cli branch August 28, 2015 20:58
@vdemeester
Copy link
Collaborator Author

馃帀 馃槈

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants