[JENKINS-25009] fixed codenarc violations that didn't fail locally..