Skip to content

Releases: qor5/linter

v1.0.5

11 Aug 10:38

Choose a tag to compare

Added a new linter that checks for correct usage of the GORM First method, ensuring it is called with exactly one argument. Included test cases and necessary dependencies for the linter functionality.

1.0.4

15 Jul 16:00
24e8e4e

Choose a tag to compare

v1.0.4

feat: Push image to ecr (#2)

build image in CI

14 Jul 09:43
ec27c02

Choose a tag to compare

v1.0.3

feat: build image in CI (#1)

Add useany linter: Detect interface{} and suggest replacing with any

01 Jul 03:55

Choose a tag to compare

🚀 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:

  1. Add to .custom-gcl.yml:
plugins:
  - module: 'github.com/qor5/linter'
    import: 'github.com/qor5/linter/useany'
  1. Enable in .golangci.yml:
linters:
  enable:
    - useany

🐛 Bug Fixes

  • Fixed CI test dependencies for errhandle and mustreceive packages

Support errhandle and mustreceive

30 Jun 02:22

Choose a tag to compare

v1.0.0

Update module path in go.mod from 'github.com/theplant/linter/mustrec…