I do not know how many, but there is a number that is considered best practice.
It's all about maintainability, and there is much more than the number of lines in the source file. What about the number of methods in a class? Cyclomatic complexity of the method? The number of classes in the project?
It is best to run the code metrics tool in your source code to learn more, such as NDepend .
source
share