Catch case where no def line is found in AllowCamelCaseMethodsRuler