check-package: check whitespace and empty lines
authorRicardo Martincoski <ricardo.martincoski@gmail.com>
Sun, 19 Feb 2017 22:17:18 +0000 (19:17 -0300)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 8 Apr 2017 14:15:32 +0000 (16:15 +0200)
commitc6bf3239cb1650c3fb7451d6a2026c64db2a15bc
tree189a6243a1b29151c61d0cd453d3ba7dfdefb648
parent111132903d397551e384c101ea35720205415a58
check-package: check whitespace and empty lines

Create 3 new check functions to warn when:
- there are consecutive empty lines in the file, see [1];
- the last line of the file is empty, see [2];
- there are lines with trailing whitespace, see [3].

Apply these functions to Config.*, *.mk and *.hash, but not for *.patch
files since they can contain any of these and still be valid.

[1] http://patchwork.ozlabs.org/patch/682660/
[2] http://patchwork.ozlabs.org/patch/643288/
[3] http://patchwork.ozlabs.org/patch/398984/

Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
support/scripts/checkpackagelib.py
support/scripts/checkpackagelib_config.py
support/scripts/checkpackagelib_hash.py
support/scripts/checkpackagelib_mk.py