v0.2.1
Pre-release
Pre-release
Changes
DSL
- ruleguard: allow
error
type inImplements()
filter @quasilyte (#120) - ruleguard,dsl: add experimental support for const value filters @quasilyte (#116)
- ruleguard,dsl: add File.PkgPath filter support @quasilyte (#106)
- ruleguard: give error on repeated DSL calls @quasilyte (#102)
- ruleguard,dsl: add File.Name filter support @quasilyte (#101)
- all: add ExprType.Underlying() method @quasilyte (#89)
- ruleguard/typematch: implement struct type pattern matching @quasilyte (#87)
- ruleguard: support parenthesized expressions in Where @lamg (#76)
CLI
- ruleguard,analyzer: implement rules debugging @quasilyte (#104)
- all: add support for the File filters in Where clause @quasilyte (#83)
- ruleguard/typematch: implement func type patterns @quasilyte (#82)
Rules
- rules.go: add context.TODO @cristaloleg (#119)
- rules.go: add badLock rule @quasilyte (#86)
- rules.go: add exprUnparen rule @quasilyte (#85)
Bug fixes
- fix bug in types.Identical rule @orsinium (#95)
- Drop always true statement @orsinium (#97)
- ruleguard: unquote the pattern string properly @quasilyte (#73)
- ruleguard: handle *ast.ExprStmt during the filtering @quasilyte (#69)
Docs
- dsl/fluent: improve Var.Type doc @quasilyte (#81)
- https://go-ruleguard.github.io/by-example/