SONAR-5884 Limit the maximum number of lines