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

Method addFinding

lib/sarifreport.cpp:34–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32static const char sarifSchema[] = "https://docs.oasis-open.org/sarif/sarif/v2.1.0/errata01/os/schemas/sarif-schema-2.1.0.json";
33
34void SarifReport::addFinding(ErrorMessage msg)
35{
36 mFindings.push_back(std::move(msg));
37}
38
39picojson::array SarifReport::serializeRules() const
40{

Callers 15

reportErrMethod · 0.80
singleErrorMethod · 0.80
multipleErrorsMethod · 0.80
errorWithoutLocationMethod · 0.80
securityRelatedErrorsMethod · 0.80
cweTagsPresentMethod · 0.80
noCweNoSecurityMethod · 0.80
inconclusiveCertaintyMethod · 0.80
criticalErrorIdMethod · 0.80
emptyDescriptionsMethod · 0.80

Calls 1

push_backMethod · 0.45

Tested by 15

singleErrorMethod · 0.64
multipleErrorsMethod · 0.64
errorWithoutLocationMethod · 0.64
securityRelatedErrorsMethod · 0.64
cweTagsPresentMethod · 0.64
noCweNoSecurityMethod · 0.64
inconclusiveCertaintyMethod · 0.64
criticalErrorIdMethod · 0.64
emptyDescriptionsMethod · 0.64