Correct ignore-names rule

(cherry picked from commit cf843b8bb0a9d793e6fb3fc0d95cb098d57f71f4)