mirror of
https://github.com/mgechev/revive.git
synced 2025-07-15 01:04:40 +02:00
@ -43,6 +43,11 @@ func (l *lintNestedStructs) Visit(n ast.Node) ast.Visitor {
|
||||
}
|
||||
return nil
|
||||
case *ast.Field:
|
||||
_, isChannelField := v.Type.(*ast.ChanType)
|
||||
if isChannelField {
|
||||
return nil
|
||||
}
|
||||
|
||||
filter := func(n ast.Node) bool {
|
||||
switch n.(type) {
|
||||
case *ast.StructType:
|
||||
|
Reference in New Issue
Block a user