Returns list of rules handled by cppcheck.
()
| 1351 | |
| 1352 | |
| 1353 | def 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 | |
| 1385 | def generateTable(): |
no outgoing calls
no test coverage detected