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

Consider switching from gometalinter to golangci-lint #3060

Closed
ehotinger opened this issue Mar 1, 2019 · 5 comments · Fixed by #3411
Closed

Consider switching from gometalinter to golangci-lint #3060

ehotinger opened this issue Mar 1, 2019 · 5 comments · Fixed by #3411

Comments

@ehotinger
Copy link
Contributor

Not a big deal for this project right now, but I hit a few oddities with Go 1.12 in other projects and had to dig into linter issues. Seems like gometalinter is EOL soon.

The gometalinter GitHub project will be archived on 2019-04-07. Releases will still be available for download but no further code will be committed and issues will be read-only.

Switch to golangci-lint.

Many thanks to all contributors, in particular dnephin who has helped me maintain gometalinter for the last year or two.

See also: alecthomas/gometalinter#590

@estesp
Copy link
Member

estesp commented Mar 1, 2019

Thanks for the pointer. Definitely something we can look into.

@ehotinger
Copy link
Contributor Author

ehotinger commented Mar 1, 2019

I have https://github.com/ehotinger/containerd/commit/db1288fc54c5b60793fb89ed8ee4fd0fb1946fcb laying around to fix a few tooling issues after updates for myself. I can PR it if people care about it in the master branch. There's one minor issue with ctr's usage of the progress bar which I made an upstream issue for; didn't bother tracking it down yet.

@ehotinger
Copy link
Contributor Author

Update: golangci/golangci-lint#414 was fixed so containerd can be switched without any other issues.

@crosbymichael
Copy link
Member

Go ahead and submit a PR for this

@ehotinger
Copy link
Contributor Author

ehotinger commented Apr 5, 2019

@crosbymichael go vet errors on master:

runtime/v1/linux/proc/io.go:266:2: lostcancel: the cancel function is not used on all paths (possible context leak) (govet)
        ctx, cancel := context.WithCancel(ctx)
        ^
runtime/v1/linux/proc/io.go:274:3: lostcancel: this return statement may be reached without using the cancel var defined on line 266 (govet)
                return nil, err

Want to ignore this rule?

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

Successfully merging a pull request may close this issue.

3 participants