1
0
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:
mgechev
2018-05-31 21:14:00 -07:00
parent 8e4c7821fd
commit 1686f0b237
9 changed files with 60 additions and 53 deletions

View File

@@ -25,6 +25,7 @@ func (r *VarDeclarationsRule) Apply(file *lint.File, arguments lint.Arguments) [
},
}
file.Pkg.TypeCheck()
ast.Walk(walker, fileAst)
return failures