Closed piyushdatazip closed 1 year ago
Hey, thank you for opening your first Issue ! 🙂 If you would like to contribute we have a guide for contributors.
Hello,
You have checked the following box:
[x] Yes, I've tried with the standalone linter if available (e.g., gocritic, go vet, etc.). (https://golangci-lint.run/usage/linters/)
Can you give me the output of the run of the standalone binary of revive
?
https://github.com/golangci/golangci-lint/blob/v1.52.0/go.mod#L70
Hi @ldez
$ /Users/piyushsingariya/go/bin/revive --version
version 1.3.1
$ /Users/piyushsingariya/go/bin/revive -formatter friendly github.com/datazip/cost-license ./..
⚠ https://revive.run/r#package-comments should have a package comment
/Users/piyushsingariya/code/cost-license/main.go:1:1
⚠ 1 problem (0 errors, 1 warning)
Warnings:
1 package-comments
This is the output of latest review binary on the project. Which is not same as return by golangci-lint
Are you sure?
I created a working code from your snippet:
And use your configuration.
$ revive ./...
foo.go:46:51: parameter 'machineType' seems to be unused, consider removing or renaming it as _
$ golangci-lint run
foo.go:46:51: unused-parameter: parameter 'machineType' seems to be unused, consider removing or renaming it as _ (revive)
func (a *AWSCloudProvider) upgradeClickhouseNodes(machineType string) error {
^
So it's not related to golangci-lint.
Welcome
Description of the problem
Code sample is added above, golangci lint is reporting error
as we can see node variable is being used here, would like to report this issue and get it fixed in next patch release
Version of golangci-lint
Configuration file
Go environment
Verbose output of running
Code example or link to a public repository