Refine cppcheck analysis (#1133)
- Details link on github for cppcheck now goes straight to the report - Removed umatched suppression from the cppcheck suppression file
This commit is contained in:
committed by
Mikael Falkvidd
parent
ba7027ce1d
commit
4e1d69dbb2
@@ -29,7 +29,7 @@ def cppCheck(config) {
|
|||||||
"grep -q \"<td>0</td><td>total</td>\" cppcheck-avr_cppcheck_reports/index.html || exit_code=\$?\n"+
|
"grep -q \"<td>0</td><td>total</td>\" cppcheck-avr_cppcheck_reports/index.html || exit_code=\$?\n"+
|
||||||
"exit \$((exit_code == 0 ? 0 : 1))")
|
"exit \$((exit_code == 0 ? 0 : 1))")
|
||||||
if (ret == 1) {
|
if (ret == 1) {
|
||||||
config.pr.setBuildStatus(config, 'ERROR', 'Toll gate (Code analysis - Cppcheck)', 'Issues found', '${BUILD_URL}CppCheck_AVR/index.html')
|
config.pr.setBuildStatus(config, 'ERROR', 'Toll gate (Code analysis - Cppcheck)', 'Issues found', '${BUILD_URL}CppCheck_20AVR/index.html')
|
||||||
error 'Terminating due to Cppcheck error'
|
error 'Terminating due to Cppcheck error'
|
||||||
} else {
|
} else {
|
||||||
config.pr.setBuildStatus(config, 'SUCCESS', 'Toll gate (Code analysis - Cppcheck)', 'Pass', '')
|
config.pr.setBuildStatus(config, 'SUCCESS', 'Toll gate (Code analysis - Cppcheck)', 'Pass', '')
|
||||||
|
|||||||
@@ -2,5 +2,3 @@ ConfigurationNotChecked
|
|||||||
unmatchedSuppression
|
unmatchedSuppression
|
||||||
// This suppression is because the problem is in an in-lined macro so in-line-suppressions does not appear to take effect
|
// This suppression is because the problem is in an in-lined macro so in-line-suppressions does not appear to take effect
|
||||||
unreadVariable:*/MyHwNRF5.cpp
|
unreadVariable:*/MyHwNRF5.cpp
|
||||||
uninitMemberVar:*/TinyGsmFifo.h
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user