maximumNumberOfLines

Requires the file to be at most the number of lines specified

Types: Integer or Object

Values:

  • Integer: file should be at most the number of lines specified
  • Object:
    • value: (required) lines should be at most the number of characters specified
    • allExcept: (default: []) an array of conditions that will exempt a line
      • comments: allows comments to break the rule *

        Example

"maximumNumberOfLines": 100
Rule source
Test source