Update cppcheck (#5108)
Re-enable cppcheck CI job
Update cppcheck suppression list:
The new version of cppcheck raises warnings for many potential
issues that are guarded against, so those warnings have been
supressed.
Handle realloc failures:
- jerry-ext/util/sources.c
- jerry-port/common/jerry-port-io.c
Refactor test-snapshot: move each test to separate functions like some
others already were.
Rename `handler` variables inside `main` of `test-api.c` as they
shadowed the `handler` function in the same file.
JerryScript-DCO-1.0-Signed-off-by: Máté Tokodi mate.tokodi@szteszoftver.hu
This commit is contained in:
@@ -1,5 +1,44 @@
|
||||
wrongmathcall:tests/unit-math/test-math.inc.h
|
||||
variableScope:jerry-math/*.c
|
||||
invalidPointerCast:jerry-math/*.c
|
||||
|
||||
ConfigurationNotChecked:jerry-core/*.inc.h
|
||||
arrayIndexOutOfBoundsCond:jerry-core/*.c
|
||||
autoVariables:jerry-core/*.c
|
||||
constParameter:jerry-core/*.c
|
||||
constParameter:jerry-ext/*.c
|
||||
constParameter:jerry-math/*.c
|
||||
constParameter:tests/unit-core/*.c
|
||||
duplicateValueTernary:jerry-core/*.c
|
||||
incorrectStringBooleanError:tests/unit-core/test-newtarget.c
|
||||
integerOverflowCond:jerry-math/*.c
|
||||
invalidFunctionArg:tests/unit-math/test-math.inc.h
|
||||
invalidPointerCast:jerry-math/*.c
|
||||
knownConditionTrueFalse:jerry-core/*.c
|
||||
knownConditionTrueFalse:jerry-math/*.c
|
||||
negativeIndex:jerry-core/*.c
|
||||
nullPointerArithmetic:jerry-core/parser/js/js-parser-line-info-create.c:572
|
||||
nullPointerArithmetic:jerry-core/parser/js/js-scanner-util.c:2345
|
||||
nullPointerArithmeticRedundantCheck:jerry-core/*.c
|
||||
nullPointerRedundantCheck:jerry-core/*.c
|
||||
nullPointerRedundantCheck:jerry-ext/*.c
|
||||
nullPointerRedundantCheck:jerry-main/*.c
|
||||
nullPointerRedundantCheck:tests/unit-core/*.c
|
||||
oppositeInnerCondition:jerry-core/*.c
|
||||
redundantAssignment:jerry-core/*.c
|
||||
redundantAssignment:tests/unit-core/test-container-operation.c:129
|
||||
redundantInitialization:jerry-core/*.c
|
||||
redundantInitialization:tests/unit-core/test-from-property-descriptor.c:42
|
||||
shiftNegative:jerry-core/*.c
|
||||
shiftNegative:jerry-math/*.c
|
||||
shiftNegativeLHS:jerry-math/*.c
|
||||
shiftTooManyBits:jerry-core/*.c
|
||||
shiftTooManyBitsSigned:jerry-math/*.c
|
||||
signConversionCond:jerry-core/*.c
|
||||
uninitvar:jerry-core/parser/js/js-parser-expr.c:3420
|
||||
uninitvar:tests/unit-core/test-api-objecttype.c:119
|
||||
unmatchedSuppression:jerry-core/*.inc.h
|
||||
unreadVariable:jerry-core/*.c
|
||||
unreadVariable:jerry-port/*.c
|
||||
unusedStructMember:jerry-ext/arg/arg-transform-functions.c
|
||||
unusedStructMember:jerry-main/*.c
|
||||
unusedStructMember:tests/unit-core/*.c
|
||||
variableScope:jerry-math/*.c
|
||||
wrongmathcall:tests/unit-math/test-math.inc.h
|
||||
zerodivcond:jerry-core/*.c
|
||||
|
||||
Reference in New Issue
Block a user