Skip to content
Snippets Groups Projects
Commit 99f9e4d9 authored by saxnot's avatar saxnot :speech_balloon:
Browse files

New Lint: check_filesize

Thanks for the help to https://stackoverflow.com/questions/42884196/bash-check-if-input-is-empty-in-pipe

Large files cause various problems
- can't be displayed in GitLab
- thus can't be edited or read there (accessibility)
- slow down recipemd on CLI
- slow down recipemd on CI
- also applies to recipemd-find worsening the whole usage
- slows down IDEA on my computer (yes...)

And to let actions speak louder than my complains the CI now enforces a
max file limit of 1 MB. Basically every file is way wayyyy smaller than
1 MB except when it's one of the troublesome files which easily exceed
them.
parent 1c8c92ac
No related branches found
No related tags found
1 merge request!3Merge branch used for cleanup and CI
Pipeline #3475 canceled
......@@ -33,3 +33,11 @@ make_pdf:
artifacts:
paths:
- "*.pdf"
check_filesize:
allow_failure: true
script:
- echo 'Overview of file sizes for debugging:'
- find ./*.md -type f -exec du -a {} + | sort -n -r
# grep fails when du reports a file above the threshold
- du --threshold=-1MB *.md | grep -q ^
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment