ruff
242cbd96 - Perform lint rule analysis after subtree traversal (#6045)

Commit
2 years ago
Perform lint rule analysis after subtree traversal (#6045) ## Summary This PR modifies the order of operations in our AST checker. Previously, we ran our analysis rules first, then bound names and traversed over the subtrees. Now, after a series of refactors, we can invert the order: do the subtree traversal and model-building _first_, then run rules. The nice thing about this change is that when we go to analyze, e.g., a function call node, we'll already have traversed any of the constituent `Expr::Name` nodes... So if we store the resolution of all names when do the traversal, we can avoid having to do any expensive work in `resolve_call_path`. ## Test Plan Clean run of the snapshot tests, and hopefully the ecosystem checks too!
Author
Parents
Loading