mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-07 13:33:15 +00:00
tools: Check against capital first in JSON keys
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
This commit is contained in:
parent
08d79bce3d
commit
bcd464bb34
@ -15,3 +15,5 @@ p << r.p;
|
|||||||
@@
|
@@
|
||||||
if " " in str(fmt):
|
if " " in str(fmt):
|
||||||
print("Whitespace detected in JSON keys %s:%s:%s:%s" % (p[0].file, p[0].line, p[0].column, 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))
|
Loading…
Reference in New Issue
Block a user