1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
These scripts are generally intended to be run from the project top-level
directory, like this: ./scripts/foo.sh
Check C code
------------
checkpatch.pl is copied from the linux kernel tree:
https://github.com/torvalds/linux/blob/master/scripts/checkpatch.pl
Use checkpatch-wrapper.sh to check files, for example:
./scripts/checkpatch-wrapper.sh *.c
Check shell scripts
-------------------
checkbashisms.pl is copied from:
http://ftp.debian.org/debian/pool/main/d/devscripts/
Example usage:
find . -name "*.sh" | xargs ./scripts/checkbashisms.pl --force
|