Fix: no-unused-vars to check only file globals (fixes #975)