From 4a36520af21ec38576f6c8787fedc59b0dbe2482 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Mon, 2 Apr 2018 13:04:44 +0200 Subject: [PATCH] misra.py: reformatting -generate-table output --- addons/misra.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/addons/misra.py b/addons/misra.py index c88061032..3ca104dc8 100755 --- a/addons/misra.py +++ b/addons/misra.py @@ -1219,12 +1219,13 @@ def generateTable(): for i1 in range(1,23): for i2 in range(1,numberOfRules[i1]+1): num = str(i1) + '.' + str(i2) + s = '' if num in addon: - print(num + ' X (Addon)') + s = 'X (Addon)' elif num in cppcheck: - print(num + ' X (Cppcheck)') - else: - print(num) + s = 'X (Cppcheck)' + num = num + ' ' + print(num[:8] + s) sys.exit(1) for arg in sys.argv[1:]: