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

Method report_config_error

addons/misra.py:4476–4483  ·  view source on GitHub ↗
(self, location, errmsg)

Source from the content-addressed store, hash-verified

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
4478 cppcheck_severity = 'error'
4479 error_id = 'config'
4480 if self.settings.verify:
4481 self.verify_actual.append('%s:%d %s' % (location.file, location.linenr, error_id))
4482 else:
4483 cppcheckdata.reportError(location, cppcheck_severity, errmsg, 'misra', error_id)
4484
4485 def reportError(self, location, num1, num2):
4486 ruleNum = num1 * 100 + num2

Callers 1

misra_configMethod · 0.95

Calls 1

reportErrorMethod · 0.45

Tested by

no test coverage detected