[Work in progress] Adds no-undeclared-globals rule