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 coccinelle: Suppress reports/warnings for `ext/` 2018-11-14 19:20:34 -05:00
deref_null.cocci coccinelle: Suppress reports/warnings for `ext/` 2018-11-14 19:20:34 -05:00
identifier_length.cocci scripts/coccinelle: Add script for counting identifier length 2019-04-18 12:29:07 -04:00
ignore_return.cocci coccinelle: Updating ignore_return to support memcpy 2018-12-19 14:37:25 +01:00
irq_lock.cocci coccinelle: irq_lock.cocci: Update script 2018-11-07 10:31:41 -05:00
mini_lock.cocci coccinelle: Add script to find cases of missing locks 2018-11-07 10:32:59 -05:00
noderef.cocci coccinelle: Suppress reports/warnings for `ext/` 2018-11-14 19:20:34 -05:00
returnvar.cocci coccinelle: Add script to remove unnecessary return variable 2018-11-28 11:54:01 -08:00
semicolon.cocci coccinelle: Suppress reports/warnings for `ext/` 2018-11-14 19:20:34 -05:00
unsigned_lesser_than_zero.cocci coccinelle: Add script to find cases of unsigned < 0 2018-11-07 10:33:43 -05:00
unsigned_shift.cocci coccinelle: unsigned_shift.cocci: Update script 2018-11-07 10:27:44 -05:00
unsigned_suffix.cocci scripts/coccinelle: Update unsigned suffix script 2019-03-28 17:15:58 -05:00