Skip to content

Commit a869da5

Browse files
Flavio Ceolinnashif
Flavio Ceolin
authored andcommitted
scripts: coccinelle: Add guideline number on a script output
Add information about the guideline number in the script checking a identifier length. Signed-off-by: Flavio Ceolin <[email protected]>
1 parent 8552542 commit a869da5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/coccinelle/identifier_length.cocci

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@ pos << r_idlen.p;
2626
@@
2727
2828
if (len(id) > 31):
29-
msg="WARNING: Identifier %s length %d > 31" % (id, len(id))
29+
msg="WARNING: Violation to rule 5.1 or 5.2 (Identifiers shall be distinct) %s length %d > 31" % (id, len(id))
3030
coccilib.report.print_report(pos[0], msg)

0 commit comments

Comments
 (0)