-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Running linters through gometalinter and golangci give out different results #619
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
Comments
You're using |
I think iccen8's point is that running linters like |
Yes, you have my point. I have posted commands above: Golangci-lint command: Test code: The reason I disable |
I just tested on my end and indeed, for
|
Similar issue here #617 |
Can you try |
Yes, I can see all the issues if I add |
@alexaandru |
@alexkohler @pierrre |
Aside from the hypothetical answer I provided to #617 you need to take into account that
The result is that:
|
It doesn’t make sense to compare them |
Gometalinter command:
gometalinter ./... --enable-all --disable=govet --deadline=60m -j 2
Golangci-lint command:
golangci-lint run --enable-all --disable=govet --out-format=tab --deadline=60m --max-issues-per-linter=0 --max-same-issues=0 -j=2
I am recently comparing the results between golangci-lint(goll) and gometalinter(goml) since I am upgrading goml to goll shortly.
I found that results between the two runs are very different. For example:
Goml-golint
outputs 2678 warnings whilegoll-golint
only outpus 478. And 472 amonggoll-golint's
warnings intersects withgoml-golint's
.For some linters such as
interfacer
,errcheck
andmaligned
, goll's result set does not even have any intersection with goml's.(note: skipped dirs should not be the reason causing this issue, because some defective files which only appear in
goml-unparam's
result set appear in bothgoll-gochecknoinits's
andgoll-typecheck's
)(note: The number of warnings above does not include
lll
,gocyclo
anddupl
. I get rid of these three kinds of warning after I had the output)The text was updated successfully, but these errors were encountered: