Releases: qor5/linter
Releases · qor5/linter
v1.0.5
1.0.4
build image in CI
v1.0.3 feat: build image in CI (#1)
Add useany linter: Detect interface{} and suggest replacing with any
🚀 New Features
New Linter: useany
Added a new golangci-lint plugin that detects interface{}
usage and suggests replacing it with any
(Go 1.18+).
Key Features:
- 🔍 Detects
interface{}
in all contexts (variables, functions, structs, etc.) - 🛠️ Full auto-fix support with
golangci-lint --fix
- 🎯 Only targets empty interfaces, won't flag interfaces with methods
Example:
// Before
var data interface{}
// After (with --fix)
var data any
Installation:
- Add to
.custom-gcl.yml
:
plugins:
- module: 'github.com/qor5/linter'
import: 'github.com/qor5/linter/useany'
- Enable in
.golangci.yml
:
linters:
enable:
- useany
🐛 Bug Fixes
- Fixed CI test dependencies for
errhandle
andmustreceive
packages
Support errhandle and mustreceive
v1.0.0 Update module path in go.mod from 'github.com/theplant/linter/mustrec…