diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2011-08-01 22:21:40 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2011-08-01 22:21:40 +0000 |
commit | 8c4ae46341818c69f3b39baee441db9f85254cb1 (patch) | |
tree | f7db6edd02b2409e3ded211abd6b9ce2aef2bcca /merge-helpers | |
parent | 837df56fc91a5002b0a6e055a2e366e518a3a866 (diff) |
2011-08-01 Joel Sherrill <joel.sherrill@oarcorp.com>
* check_submission: Check for spaces at end of lines.
Diffstat (limited to 'merge-helpers')
-rw-r--r-- | merge-helpers/ChangeLog | 4 | ||||
-rwxr-xr-x | merge-helpers/check_submission | 8 |
2 files changed, 12 insertions, 0 deletions
diff --git a/merge-helpers/ChangeLog b/merge-helpers/ChangeLog index a0e8ab1..64e18c4 100644 --- a/merge-helpers/ChangeLog +++ b/merge-helpers/ChangeLog @@ -1,5 +1,9 @@ 2011-08-01 Joel Sherrill <joel.sherrill@oarcorp.com> + * check_submission: Check for spaces at end of lines. + +2011-08-01 Joel Sherrill <joel.sherrill@oarcorp.com> + * check_submission: Fix error in string test. 2011-08-01 Joel Sherrill <joel.sherrill@oarcorp.com> diff --git a/merge-helpers/check_submission b/merge-helpers/check_submission index 00b7e7a..2624387 100755 --- a/merge-helpers/check_submission +++ b/merge-helpers/check_submission @@ -171,6 +171,14 @@ do test_its_NOT_there ${f} "this file may be found in the file" done +# We do not want spaces at the end of lines +echo "=== Checking for spaces at the end of lines" +find_source -m -c -C | while read f +do + egrep " +$" $f >/dev/null + test $? -eq 0 && echo "$f has spaces at the end of one or more lines." +done + # We do not want GPL code echo "=== Checking for hints of GPL code" find_source -m -c -C | while read f |