MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / setSuppressionList

Method setSuppressionList

addons/misra.py:4460–4474  ·  view source on GitHub ↗
(self, suppressionlist)

Source from the content-addressed store, hash-verified

4458 self.severity = severity
4459
4460 def setSuppressionList(self, suppressionlist):
4461 num1 = 0
4462 num2 = 0
4463 rule_pattern = re.compile(r'([0-9]+).([0-9]+)')
4464 strlist = suppressionlist.split(",")
4465
4466 # build ignore list
4467 for item in strlist:
4468 res = rule_pattern.match(item)
4469 if res:
4470 num1 = int(res.group(1))
4471 num2 = int(res.group(2))
4472 ruleNum = (num1 * 100) + num2
4473
4474 self.addSuppressedRule(ruleNum)
4475
4476 def report_config_error(self, location, errmsg):
4477 errmsg = 'Because of missing configuration, misra checking is incomplete. There can be false negatives! ' + errmsg

Callers 1

mainFunction · 0.95

Calls 3

addSuppressedRuleMethod · 0.95
compileMethod · 0.80
matchMethod · 0.45

Tested by

no test coverage detected