Require File Size

This rule checks that the specified list of files exist and are within the specified size range.

The following parameters are supported by this rule:

  • message - an optional message to the user if the rule fails.
  • files - A list of files to check. If this list is empty, the main project artifact will be checked.
  • maxsize - maximum size in bytes for this file
  • minsize - minimum size in bytes for this file
  • allowNulls - If null files should be allowed. If allowed, they will be treated as if they do exist. Default is false.

Sample Plugin Configuration: