fix Codenarc violations