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