Skip to content
This repository was archived by the owner on Jun 3, 2025. It is now read-only.

Replace gometalinter with GolangCI-Lint#349

Merged
priyawadhwa merged 3 commits intoGoogleContainerTools:masterfrom
priyawadhwa:gometalinter
Sep 11, 2018
Merged

Replace gometalinter with GolangCI-Lint#349
priyawadhwa merged 3 commits intoGoogleContainerTools:masterfrom
priyawadhwa:gometalinter

Conversation

@priyawadhwa
Copy link
Copy Markdown
Contributor

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
Copy Markdown

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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants