Skip to content

Commit

Permalink
adjust devscripts for DSL 1.0
Browse files Browse the repository at this point in the history
* expect new-style header in irregular_cask_whitespace
  • Loading branch information
rolandwalker committed Nov 21, 2014
1 parent 8e342f8 commit 2520dd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion developer/bin/irregular_cask_whitespace
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ _irregular_cask_whitespace () {
perl -C32 -0777 -ne 'print " $ARGV\n" if m{[\x00-\x08\x0B-\x0C\x0E\x1F]}s' -- ./*.rb

printf "\n# First indent not 2\n"
perl -C32 -0777 -ne 's{\A.*?<\s*Cask[ \t\r]*\n+}{}s; print " $ARGV\n" unless m{\A \S}s' -- ./*.rb
perl -C32 -0777 -ne 's{\A(.*?\n)?cask\s+:v\d\S*\s+=>[^\n]+\n+}{}s; print " $ARGV\n" unless m{\A \S}s' -- ./*.rb

printf "\n# Indents not multiple of 2\n"
perl -C32 -0777 -ne 'print " $ARGV\n" if m{\n(?: ){0,} [a-z]}s' -- ./*.rb
Expand Down

0 comments on commit 2520dd6

Please sign in to comment.