diff --git a/tools/coccinelle/json_object_add_no_whitespace.cocci b/tools/coccinelle/json_object_add_camel_case.cocci similarity index 70% rename from tools/coccinelle/json_object_add_no_whitespace.cocci rename to tools/coccinelle/json_object_add_camel_case.cocci index 61250aa39f..279ba213ac 100644 --- a/tools/coccinelle/json_object_add_no_whitespace.cocci +++ b/tools/coccinelle/json_object_add_camel_case.cocci @@ -15,3 +15,5 @@ p << r.p; @@ if " " in str(fmt): print("Whitespace detected in JSON keys %s:%s:%s:%s" % (p[0].file, p[0].line, p[0].column, fmt)) +if str(fmt)[1].isupper(): + print("Capital first detected in JSON keys %s:%s:%s:%s" % (p[0].file, p[0].line, p[0].column, fmt))