mirror of
https://github.com/mgechev/revive.git
synced 2025-12-01 22:30:16 +02:00
Introduce optional type checking
Enable optional type checking.
This commit is contained in:
@@ -24,6 +24,7 @@ func (r *ContextKeysType) Apply(file *lint.File, arguments lint.Arguments) []lin
|
||||
},
|
||||
}
|
||||
|
||||
file.Pkg.TypeCheck()
|
||||
ast.Walk(walker, fileAst)
|
||||
|
||||
return failures
|
||||
|
||||
Reference in New Issue
Block a user