-
Notifications
You must be signed in to change notification settings - Fork 130
Closed
Description
Original golangci-lint issue (all information is here): golangci/golangci-lint#3136
According to my log: golangci/golangci-lint#3136 (comment)
It's related to ruleguard: https://github.com/go-critic/go-critic/blob/v0.6.4/checkers/embedded_rules.go#L98
I've found the embedded rule that is causing the panic: externalErrorReassign
go-critic/checkers/rules/rules.go
Lines 727 to 731 in d9c2d89
func externalErrorReassign(m dsl.Matcher) { | |
m.Match(`$pkg.$err = $x`). | |
Where(m["err"].Type.Is(`error`) && m["pkg"].Object.Is(`PkgName`)). | |
Report(`suspicious reassigment of error from another package`) | |
} |
If I remove this rule ruleguard works well.
I can't try go-critic, because it embeds its own rule.
Metadata
Metadata
Assignees
Labels
No labels