Fix codenarc violations