Closed Callisto13 closed 2 years ago
Hey, thank you for opening your first Issue ! 🙂 If you would like to contribute we have a guide for contributors.
Hello,
typecheck
is not a real linter it's just a way to parse/display "compilation" and linters errors (linter reports are not errors), typecheck
cannot be disabled because of that.
All the linters can trigger a typecheck
issue, but some linters require that the code compile, those linters will produce more typecheck
issues.
A linter that reports typecheck
issue is not able to report other issues for a package because that kind of issue doesn't allow it to perform its own analysis.
May I propose that this be considered as an area for documentation improvement?
Given that typecheck
is an internal mechanism for reporting build and linter errors, I found it very confusing that in all the documentation I checked, it's presented as though it's a linter. It's listed in linters enabled by default, and in run configuration.
Would y'all accept a PR to remove it from those lists, and possibly add a section about how typecheck
is not actually a linter? The output format including (typecheck)
could be misleading in suggesting that it is.
@ldez since you closed the issue and marked as duplicate, where I can find the active issue? The problem doesn't seem to be solved to me. And this is the issue I found by googling. Would be nice to know what to follow and what link to add to our tweak in .golangci.yaml
where I can find the active issue?
There is no active issue because it's not a bug: compilation errors are not bugs.
https://github.com/golangci/golangci-lint/issues/2912#issuecomment-1149995159
follow your method, resolved my question the same to you, good!
Hi folks, @ldez, where can we request improvements to the documentation like @Thynix suggested above? https://github.com/golangci/golangci-lint/issues/2912#issuecomment-1324182223
Hi folks, @ldez, where can we request improvements to the documentation like @Thynix suggested above? #2912 (comment)
I opened #3460
so, how to disable it? Anyone know?
results in tons of false positive for embedded objects.
It's not possible to disable the type checking. If you are using CGO you have to check your OS dependencies.
https://github.com/golangci/golangci-lint/issues/2912#issuecomment-1149995159
Welcome
Description of the problem
While waiting for full 1.18 support, I attempted to disable the
typecheck
linter which was giving me grief.I added it to this section of my config:
But it had no effect.
According to the docs this should be possible.
In the end I did the following, which worked:
Version of golangci-lint
Configuration file
Go environment
Verbose output of running
Code example or link to a public repository
https://github.com/weaveworks-liquidmetal/flintlock