misra.py: reformatting -generate-table output
This commit is contained in:
parent
1537c7bda5
commit
4a36520af2
|
@ -1219,12 +1219,13 @@ def generateTable():
|
||||||
for i1 in range(1,23):
|
for i1 in range(1,23):
|
||||||
for i2 in range(1,numberOfRules[i1]+1):
|
for i2 in range(1,numberOfRules[i1]+1):
|
||||||
num = str(i1) + '.' + str(i2)
|
num = str(i1) + '.' + str(i2)
|
||||||
|
s = ''
|
||||||
if num in addon:
|
if num in addon:
|
||||||
print(num + ' X (Addon)')
|
s = 'X (Addon)'
|
||||||
elif num in cppcheck:
|
elif num in cppcheck:
|
||||||
print(num + ' X (Cppcheck)')
|
s = 'X (Cppcheck)'
|
||||||
else:
|
num = num + ' '
|
||||||
print(num)
|
print(num[:8] + s)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
for arg in sys.argv[1:]:
|
for arg in sys.argv[1:]:
|
||||||
|
|
Loading…
Reference in New Issue