fix codenarc violations