Skip to content

Commit 5bba482

Browse files
committed
add comments for explaining the rules
1 parent b746e93 commit 5bba482

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

scripts/lint_file_size.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ status=0
1111

1212
green='\e[1;32m'; red='\e[1;31m'; cyan='\e[1;36m'; reset='\e[0m'
1313

14+
# Following is the rules for the file size linting:
15+
# 1. For all files, the file size can't be larger than 1MB
16+
# 2. For images/vidoes, the files size can't be larger than 7MB
17+
# 3. There is an exception list defined in the script if it's really needed
18+
1419
# List of files to skip (relative paths)
1520
EXCEPTIONS=(
1621
"examples/models/llama/params/demo_rand_params.pth"

0 commit comments

Comments
 (0)