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

Function getCppcheckRules

addons/misra.py:1353–1382  ·  view source on GitHub ↗

Returns list of rules handled by cppcheck.

()

Source from the content-addressed store, hash-verified

1351
1352
1353def getCppcheckRules():
1354 """Returns list of rules handled by cppcheck."""
1355 return ['1.3', # <most "error">
1356 '2.1', # alwaysFalse, duplicateBreak
1357 '2.2', # alwaysTrue, redundantCondition, redundantAssignment, redundantAssignInSwitch, unreadVariable
1358 '2.6', # unusedLabel
1359 '5.3', # shadowVariable
1360 '8.3', # funcArgNamesDifferent
1361 '8.13', # constPointer
1362 '9.1', # uninitvar
1363 '14.3', # alwaysTrue, alwaysFalse, compareValueOutOfTypeRangeError
1364 '13.2', # unknownEvaluationOrder
1365 '13.6', # sizeofCalculation
1366 '17.4', # missingReturn
1367 '17.5', # argumentSize
1368 '18.1', # pointerOutOfBounds
1369 '18.2', # comparePointers
1370 '18.3', # comparePointers
1371 '18.6', # danglingLifetime
1372 '19.1', # overlappingWriteUnion, overlappingWriteFunction
1373 '20.6', # preprocessorErrorDirective
1374 '21.13', # invalidFunctionArg
1375 '21.17', # bufferAccessOutOfBounds
1376 '21.18', # bufferAccessOutOfBounds
1377 '22.1', # memleak, resourceLeak, memleakOnRealloc, leakReturnValNotUsed, leakNoVarFunctionCall
1378 '22.2', # autovarInvalidDeallocation
1379 '22.3', # incompatibleFileOpen
1380 '22.4', # writeReadOnlyFile
1381 '22.6' # useClosedFile
1382 ]
1383
1384
1385def generateTable():

Callers 2

generateTableFunction · 0.85
verifyRuleTextsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected