From 0d9bf03b5c89f83a71cd900092ea0a3b0423257e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Thu, 25 Aug 2022 08:06:47 +0200 Subject: [PATCH] misra.py: do not execute premiumaddon to perform misra checks --- addons/misra.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/addons/misra.py b/addons/misra.py index 875605aeb..286bdfced 100755 --- a/addons/misra.py +++ b/addons/misra.py @@ -4428,10 +4428,6 @@ class MisraChecker: self.executeCheck(2209, self.misra_22_9, cfg) self.executeCheck(2210, self.misra_22_10, cfg) - # Premium MISRA checking, deep analysis - if cfgNumber == 0 and self.path_premium_addon: - cppcheckdata.cmd_output([self.path_premium_addon, '--cli', '--misra', dumpfile]) - def analyse_ctu_info(self, ctu_info_files): all_typedef_info = [] all_tagname_info = [] @@ -4691,14 +4687,6 @@ def main(): checker.analyse_ctu_info(ctu_info_files) - if args.file_list and checker.path_premium_addon: - premium_command = [checker.path_premium_addon, '--misra', '--file-list', args.file_list] - if args.cli: - premium_command.append('--cli') - for line in cppcheckdata.cmd_output(premium_command).split('\n'): - if re.search(r'"errorId".*:.*"misra-', line) is not None: - print(line.strip()) - if settings.verify: sys.exit(exitCode)