1
0
mirror of https://github.com/mgechev/revive.git synced 2025-07-15 01:04:40 +02:00
This commit is contained in:
chavacava
2022-09-05 11:11:45 +02:00
committed by GitHub
parent 553604eace
commit 7c2ebbda24
2 changed files with 10 additions and 0 deletions

View File

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