Kong / kubernetes-telemetry

Go library for telemetry in Kong's Kubernetes products
Apache License 2.0
5 stars 2 forks source link

chore(ci): disable megacheck, exportloopref; enable loopvar, gosimple; remane gomnd to mnd #277

Closed programmer04 closed 1 month ago

programmer04 commented 1 month ago

What this PR does / why we need it:

Get rid of

WARN [lintersdb] The linter named "megacheck" is deprecated. It has been split into: gosimple, staticcheck, unused. 
WARN The linter 'exportloopref' is deprecated (since v1.60.2) due to: Since Go1.22 (loopvar) this linter is no longer relevant. Replaced by copyloopvar. 
WARN The linter 'gomnd' is deprecated (since v1.58.0) due to: The linter has been renamed. Replaced by mnd. 

during execution of

make lint

Since Go 1.22 the weird behavior of variables in for range loops is no longer a problem. Other stuff has been adjusted according to linters suggestions