Add checking of global variable access to linter