3 ms·
Ha yeah someone should make a single lint "Your script is over 100 lines. You should rewrite it in a sane language!"
by IshKebab 4y ago
Ha yeah someone should make a single lint "Your script is over 100 lines. You should rewrite it in a sane language!"
- iso1631 4y agoStart every script with the boilerplate #!/bin/bash if [[ `wc -l $0|cut -f 1 -d ' '` -gt 100 ]] then echo "No, this is too long!" exit fi