max-lines-per-file
Enforce a maximum number of lines per file
INFO
☑️ The predefined configuration "mslint:recommended" enables this rule.
Rule details
This rule limits the number of lines of code in a file.
Settings
maximumthe maximum number of lines of code in a file. Default5000.
Example of incorrect code for this rule:
maniascript
// { "maximum" = 4 }
Void FunctionA() {
}
main() {
FunctionA();
}Example of correct code for this rule:
maniascript
// { "maximum" = 4 }
main() {
declare Integer A = 1;
}