Skip to content
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 go vet, and gofmt tests. #259

Merged
merged 3 commits into from
Nov 25, 2016
Merged

Add go vet, and gofmt tests. #259

merged 3 commits into from
Nov 25, 2016

Conversation

kadel
Copy link
Member

@kadel kadel commented Oct 31, 2016

fixes #215

Add go vet, golint and gofmt tests.

Travis now runs make validate as first target.
make validate includes all validate tests (go vet, golint, gofmt)

TODO:

@kadel kadel force-pushed the lint-and-vet branch 6 times, most recently from dde77b3 to 205d0d7 Compare October 31, 2016 19:09
@ericchiang
Copy link

Might be reasonable to turn on golint in a separate PR since govet and gofmt would be good to have on their own.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Nov 22, 2016
@kadel kadel changed the title Add go vet, golint and gofmt tests. Add go vet, and gofmt tests. Nov 22, 2016
Travis now runs `make validate` as first test.
Make validate includes all validate tests (go vet, gofmt)
@kadel
Copy link
Member Author

kadel commented Nov 22, 2016

I've removed golint from this PR.

as suggested by @ericchiang I'll turn it back on in separate PR with fixing all golint errors. (#307)

This is ready for review and merge.

ping @surajssd @ngtuna @cdrage

@@ -133,12 +133,12 @@ func (b *Bundle) LoadFile(file string) kobject.KomposeObject {

buf, err := ioutil.ReadFile(file)
if err != nil {
logrus.Fatalf("Failed to read bundles file: ", err)
logrus.Fatalf("Failed to read bundles file: %s ", err)
Copy link
Member

Choose a reason for hiding this comment

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

👍

@cdrage
Copy link
Member

cdrage commented Nov 24, 2016

LGTM my end!

@surajssd surajssd added lgtm "Looks good to me", indicates that a PR is ready to be merged. and removed in progress labels Nov 25, 2016
@kadel kadel merged commit b0514bd into kubernetes:master Nov 25, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add go vet
6 participants