comment future possible whitespace irregularities

these don't seem to be followed by all Casks: what is the
existing general rule?
This commit is contained in:
Roland Walker 2014-11-22 09:02:29 -05:00
parent 62bd692387
commit 93b39ed3c5
1 changed files with 4 additions and 0 deletions

View File

@ -71,6 +71,10 @@ _irregular_cask_whitespace () {
printf "\n# No empty line before uninstall\n"
perl -C32 -0777 -ne 'print " $ARGV\n" if m{\n[^\n]+\n +uninstall }s' -- ./*.rb
# todo?
# printf "\n# No empty line before caveats\n"
# perl -C32 -0777 -ne 'print " $ARGV\n" if m{\n[^\n]+\n +caveats }s' -- ./*.rb
printf "\n# Extra interior newlines\n"
perl -C32 -0777 -ne 'print " $ARGV\n" if m{\n{3,}}s' -- ./*.rb