Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 643 Bytes

file_size.md

File metadata and controls

28 lines (19 loc) · 643 Bytes

File size

The file size task ensures a maximum size for a file to be added to git.

# grumphp.yml
parameters:
    tasks:
        file_size:
            max_size: 10M
            ignore_patterns: []

max_size

Default: 10M

Defines the maximum size. The target value may use magnitudes of kilobytes (k, ki), megabytes (m, mi), or gigabytes (g, gi). Those suffixed with an i use the appropriate 2**n version in accordance with the IEC standard.

ignore_patterns

Default: []

This is a list of patterns that will be ignored. With this option you can skip files. Leave this option blank to run analysis for all files.