Removes the use of the following linters: deadcode and varcheck.
Both are deprecated as of golangci-lint v1.49.0. The owners seem to have abandoned these linters and they are replaced by unused.
Also corrected deprecated configuration options: run.skip-files, output.format, and linters.errcheck.ignore.
Before:
packer-plugin-vsphere on chore/update-golangci
➜ golangci-lint run
WARN [config_reader] The configuration option `run.skip-files` is deprecated, please use `issues.exclude-files`.
WARN [config_reader] The configuration option `output.format` is deprecated, please use `output.formats`
WARN [config_reader] The configuration option `linters.errcheck.ignore` is deprecated, please use `linters.errcheck.exclude-functions`.
WARN The linter 'deadcode' is deprecated (since v1.49.0) due to: The owner seems to have abandoned the linter. Replaced by unused.
WARN The linter 'varcheck' is deprecated (since v1.49.0) due to: The owner seems to have abandoned the linter. Replaced by unused.
ERRO [linters_context] deadcode: This linter is fully inactivated: it will not produce any reports.
ERRO [linters_context] varcheck: This linter is fully inactivated: it will not produce any reports.
After:
packer-plugin-vsphere on chore/update-golangci
➜ golangci-lint run
packer-plugin-vsphere on chore/update-golangci
Description
Removes the use of the following linters:
deadcode
andvarcheck
.Both are deprecated as of
golangci-lint
v1.49.0. The owners seem to have abandoned these linters and they are replaced byunused
.Also corrected deprecated configuration options:
run.skip-files
,output.format
, andlinters.errcheck.ignore
.Before:
After: