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
Reduce golint min_confidence to default 0.8 #191
Comments
Did you look at gometalint? It looks unlikely that we'll have a comment on every global variable in tests. After the upcoming diff, the only lint errors at confidence=1.0 are missing comments. |
Or staticcheck. golint is deprecated and frozen. |
Used gometalint a bit when I was doing go; it used to manage their own fork of go tools which were no longer supported by the go team. I dont know |
gometalinter is deprecated, and they recommend https://github.com/golangci/golangci-lint , which is in brew https://formulae.brew.sh/formula/golangci-lint, so is staticcheck. Neither are in chocolatey. |
staticcheck complains about assert.go assert not (0 == 1) becomes if !(!(0 == 1)) {
panic("assert")
} and staticcheck error:
|
On macos, the default linters for golangci-lint are
In addition to the error from staticcheck about assert.go, the other errors from coverage.go:
global2.go:
infer_ops.go:
|
Also remove unused variables and consolidate similar funcs Related to: #191
Another tool we could use is https://github.com/SonarSource/slang , part of SonarQube, and usable as a github action with https://github.com/kitabisa/sonarqube-action . sonarqube is available on brew, and chocolatey has some packages but they might not be suitable, as the official packages are MSBuild/.Net specific, and the other packages look a bit dodgy |
Add caching of CWD. Closes py2many#191
This affects symbol visibility. Fixes: py2many#174 Related to: py2many#191
Also remove unused variables and consolidate similar funcs Related to: py2many#191
Add caching of CWD. Closes py2many#191
The current golint level of 1.0 causes several test cases to become errors, mostly due to capitalisation and docstrings.
However the default of 0.8 causes many more errors.
The text was updated successfully, but these errors were encountered: