zephyr/scripts/coccinelle
Patrik Flykt 83de530d5a scripts/coccinelle: Add script for counting identifier length
Add a simple Coccinelle script that counts identifier lengths and
prints out a warning if it is longer than 31 characters.

The script can be run with:
spatch -D report --very-quiet \
--include-headers --recursive-includes \
--cocci-file $ZEPHYR_BASE/scripts/coccinelle/identifier_length.cocci \
--dir $ZEPHYR_BASE \
kernel/

Where '--include-headers' and '--recursive-includes' can be omitted
if neede.

Signed-off-by: Patrik Flykt <patrik.flykt@intel.com>
2019-04-18 12:29:07 -04:00
..
array_size.cocci
deref_null.cocci
identifier_length.cocci scripts/coccinelle: Add script for counting identifier length 2019-04-18 12:29:07 -04:00
ignore_return.cocci
irq_lock.cocci
mini_lock.cocci
noderef.cocci
returnvar.cocci
semicolon.cocci
unsigned_lesser_than_zero.cocci
unsigned_shift.cocci
unsigned_suffix.cocci scripts/coccinelle: Update unsigned suffix script 2019-03-28 17:15:58 -05:00