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

Replace gometalinter with GolangCI-Lint #349

Merged
merged 3 commits into from
Sep 11, 2018

Conversation

priyawadhwa
Copy link
Collaborator

gometalinter is broken @ HEAD, and I looked into why that was. During
that process, I remembered that we took the linting scripts from
skaffold, and found that in skaffold gometalinter was replaced with
GolangCI-Lint:

GoogleContainerTools/skaffold#619

The change made linting in skaffold faster, so I figured instead of
fixing gometalinter it made more sense to remove it and replace it with
GolangCI-Lint for kaniko as well.

gometalinter is broken @ HEAD, and I looked into why that was. During
that process, I remembered that we took the linting scripts from
skaffold, and found that in skaffold gometalinter was replaced with
GolangCI-Lint:

GoogleContainerTools/skaffold#619

The change made linting in skaffold faster, so I figured instead of
fixing gometalinter it made more sense to remove it and replace it with
GolangCI-Lint for kaniko as well.
@priyawadhwa priyawadhwa force-pushed the gometalinter branch 2 times, most recently from 0312c0e to c711632 Compare September 11, 2018 21:03
})
}
}

func checkLayers(t *testing.T, image1, image2 string, offset int) error {
func checkLayers(t *testing.T, image1, image2 string, offset int) {
img1, err := getImageDetails(image1)
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not a big fan of custom assert methods, but this should at least call t.Helper().

@priyawadhwa priyawadhwa merged commit ae39c0f into GoogleContainerTools:master Sep 11, 2018
@priyawadhwa priyawadhwa deleted the gometalinter branch September 11, 2018 23:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants