Source files should have exactly one trailing newline.

find -iregex '.*\.\(java\|txt\|c\|cc\|h\|hpp\|cpp\)$' | xargs perl -0777
-ne 'print "Must have exactly one trailing newline: $ARGV\n" unless
m~[^\n]\Z~s'

Reply via email to