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