-
-
Notifications
You must be signed in to change notification settings - Fork 0
Update cmake-static-analysis.yml from main #25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Use the updated marketplace action that I just published that uses the updated container with clang-19.
⚡ Static analysis result ⚡ 🔴 cppcheck found 32 issues! Click here to see details.TestCPP/include/internal/TestCPPAssertions.h Lines 78 to 83 in e31ab8c
!Line: 78 - performance: Function parameter 'failureMessage' should be passed by const reference. [passedByValue]
TestCPP/include/internal/TestCPPAssertions.h Lines 109 to 114 in e31ab8c
!Line: 109 - performance: Function parameter 'failureMessage' should be passed by const reference. [passedByValue]
TestCPP/include/internal/TestCPPAssertions.h Lines 136 to 141 in e31ab8c
!Line: 136 - performance: Function parameter 'failureMessage' should be passed by const reference. [passedByValue]
TestCPP/include/internal/TestCPPAssertions.h Lines 163 to 168 in e31ab8c
!Line: 163 - performance: Function parameter 'failureMessage' should be passed by const reference. [passedByValue]
TestCPP/src/TestCPPAssertions.cpp Lines 92 to 97 in e31ab8c
!Line: 92 - performance: Function parameter 'failureMessage' should be passed by const reference. [passedByValue]
TestCPP/src/TestCPPAssertions.cpp Lines 107 to 112 in e31ab8c
!Line: 107 - performance: Function parameter 'failureMessage' should be passed by const reference. [passedByValue]
TestCPP/include/internal/TestCPPTestCase.h Lines 199 to 204 in e31ab8c
!Line: 199 - performance: inconclusive: Technically the member function 'TestCPP::TestCase::clearStdoutCapture' can be static (but you may consider moving to unnamed namespace). [functionStatic]
!Line: 461 - note: Technically the member function 'TestCPP::TestCase::clearStdoutCapture' can be static (but you may consider moving to unnamed namespace).
!Line: 199 - note: Technically the member function 'TestCPP::TestCase::clearStdoutCapture' can be static (but you may consider moving to unnamed namespace). TestCPP/include/internal/TestCPPTestCase.h Lines 207 to 212 in e31ab8c
!Line: 207 - performance: inconclusive: Technically the member function 'TestCPP::TestCase::clearLogCapture' can be static (but you may consider moving to unnamed namespace). [functionStatic]
!Line: 467 - note: Technically the member function 'TestCPP::TestCase::clearLogCapture' can be static (but you may consider moving to unnamed namespace).
!Line: 207 - note: Technically the member function 'TestCPP::TestCase::clearLogCapture' can be static (but you may consider moving to unnamed namespace). TestCPP/include/internal/TestCPPTestCase.h Lines 215 to 220 in e31ab8c
!Line: 215 - performance: inconclusive: Technically the member function 'TestCPP::TestCase::clearStderrCapture' can be static (but you may consider moving to unnamed namespace). [functionStatic]
!Line: 473 - note: Technically the member function 'TestCPP::TestCase::clearStderrCapture' can be static (but you may consider moving to unnamed namespace).
!Line: 215 - note: Technically the member function 'TestCPP::TestCase::clearStderrCapture' can be static (but you may consider moving to unnamed namespace). TestCPP/include/internal/TestCPPTestCase.h Lines 292 to 297 in e31ab8c
!Line: 292 - style: inconclusive: Technically the member function 'TestCPP::TestCase::logFailure' can be const. [functionConst]
!Line: 292 - note: Technically the member function 'TestCPP::TestCase::logFailure' can be const.
!Line: 292 - note: Technically the member function 'TestCPP::TestCase::logFailure' can be const. TestCPP/src/TestCPPTestCase.cpp Lines 171 to 176 in e31ab8c
!Line: 171 - error: Exception thrown in function declared not to throw exceptions. [throwInNoexceptFunction]
TestCPP/src/TestCPPTestCase.cpp Lines 262 to 267 in e31ab8c
!Line: 262 - error: Exception thrown in function declared not to throw exceptions. [throwInNoexceptFunction]
TestCPP/src/TestCPPTestCase.cpp Lines 114 to 119 in e31ab8c
!Line: 114 - style: inconclusive: Function 'TestCase' argument 1 names different: declaration 'testName' definition 'name'. [funcArgNamesDifferent]
!Line: 132 - note: Function 'TestCase' argument 1 names different: declaration 'testName' definition 'name'.
!Line: 114 - note: Function 'TestCase' argument 1 names different: declaration 'testName' definition 'name'. TestCPP/src/TestCPPTestCase.cpp Lines 115 to 120 in e31ab8c
!Line: 115 - style: inconclusive: Function 'TestCase' argument 2 names different: declaration 'test' definition 'testFn'. [funcArgNamesDifferent]
!Line: 133 - note: Function 'TestCase' argument 2 names different: declaration 'test' definition 'testFn'.
!Line: 115 - note: Function 'TestCase' argument 2 names different: declaration 'test' definition 'testFn'. TestCPP/src/TestCPPTestCase.cpp Lines 116 to 121 in e31ab8c
!Line: 116 - style: inconclusive: Function 'TestCase' argument 3 names different: declaration 'testPassedMessage' definition 'msg'. [funcArgNamesDifferent]
!Line: 134 - note: Function 'TestCase' argument 3 names different: declaration 'testPassedMessage' definition 'msg'.
!Line: 116 - note: Function 'TestCase' argument 3 names different: declaration 'testPassedMessage' definition 'msg'. TestCPP/src/TestCPPTestCase.cpp Lines 304 to 309 in e31ab8c
!Line: 304 - style: inconclusive: Function 'logTestFailure' argument 1 names different: declaration 'failureMessage' definition 'reason'. [funcArgNamesDifferent]
!Line: 299 - note: Function 'logTestFailure' argument 1 names different: declaration 'failureMessage' definition 'reason'.
!Line: 304 - note: Function 'logTestFailure' argument 1 names different: declaration 'failureMessage' definition 'reason'. TestCPP/src/TestCPPTestCase.cpp Lines 371 to 376 in e31ab8c
!Line: 371 - style: inconclusive: Function 'setNotifyPassed' argument 1 names different: declaration 'shouldNotify' definition 'notify'. [funcArgNamesDifferent]
!Line: 180 - note: Function 'setNotifyPassed' argument 1 names different: declaration 'shouldNotify' definition 'notify'.
!Line: 371 - note: Function 'setNotifyPassed' argument 1 names different: declaration 'shouldNotify' definition 'notify'. TestCPP/src/TestCPPTestCase.cpp Lines 479 to 484 in e31ab8c
!Line: 479 - performance: Function parameter 'against' should be passed by const reference. [passedByValue]
TestCPP/src/TestCPPTestCase.cpp Lines 484 to 489 in e31ab8c
!Line: 484 - performance: Function parameter 'against' should be passed by const reference. [passedByValue]
TestCPP/src/TestCPPTestCase.cpp Lines 489 to 494 in e31ab8c
!Line: 489 - performance: Function parameter 'against' should be passed by const reference. [passedByValue]
TestCPP/src/TestCPPTestCase.cpp Lines 494 to 499 in e31ab8c
!Line: 494 - performance: Function parameter 'source' should be passed by const reference. [passedByValue]
TestCPP/src/TestCPPTestCase.cpp Lines 494 to 499 in e31ab8c
!Line: 494 - performance: Function parameter 'against' should be passed by const reference. [passedByValue]
TestCPP/src/TestCPPTestCase.cpp Lines 145 to 150 in e31ab8c
!Line: 145 - style: Parameter 'o' can be declared as reference to const [constParameterReference]
TestCPP/src/TestCPPTestCase.cpp Lines 234 to 239 in e31ab8c
!Line: 234 - style: Parameter 'rhs' can be declared as reference to const [constParameterReference]
TestCPP/src/TestCPPTestCase.cpp Lines 292 to 297 in e31ab8c
!Line: 292 - style: Parameter 'reason' can be declared as reference to const [constParameterReference]
TestCPP/include/internal/TestCPPTestSuite.h Lines 80 to 85 in e31ab8c
!Line: 80 - warning: Member variable 'TestSuite::lastRunSucceeded' is not initialized in the constructor. [uninitMemberVar]
TestCPP/include/internal/TestCPPTestSuite.h Lines 80 to 85 in e31ab8c
!Line: 80 - warning: Member variable 'TestSuite::lastRunSuccessCount' is not initialized in the constructor. [uninitMemberVar]
TestCPP/include/internal/TestCPPTestSuite.h Lines 80 to 85 in e31ab8c
!Line: 80 - warning: Member variable 'TestSuite::lastRunFailCount' is not initialized in the constructor. [uninitMemberVar]
TestCPP/include/internal/TestCPPTestSuite.h Lines 80 to 85 in e31ab8c
!Line: 80 - warning: Member variable 'TestSuite::totalRuntime' is not initialized in the constructor. [uninitMemberVar]
TestCPP/include/internal/TestCPPTestSuite.h Lines 117 to 122 in e31ab8c
!Line: 117 - performance: inconclusive: Technically the member function 'TestCPP::TestSuite::addTests' can be static (but you may consider moving to unnamed namespace). [functionStatic]
TestCPP/include/internal/TestCPPTestSuite.h Lines 153 to 158 in e31ab8c
!Line: 153 - style: inconclusive: Technically the member function 'TestCPP::TestSuite::getLastRunFailCount' can be const. [functionConst]
!Line: 73 - note: Technically the member function 'TestCPP::TestSuite::getLastRunFailCount' can be const.
!Line: 153 - note: Technically the member function 'TestCPP::TestSuite::getLastRunFailCount' can be const. TestCPP/include/internal/TestCPPUtil.h Lines 81 to 86 in e31ab8c
!Line: 81 - style: inconclusive: Technically the member function 'TestCPP::TestObjName::getName' can be const. [functionConst]
!Line: 59 - note: Technically the member function 'TestCPP::TestObjName::getName' can be const.
!Line: 81 - note: Technically the member function 'TestCPP::TestObjName::getName' can be const. |
Use the updated marketplace action that I just published that uses the updated container with clang-19.