[BUG #7453] add lint check for locals shadowing globas