[JENKINS-25525] Fixed codenarc violations that didn't show up locally