-
Notifications
You must be signed in to change notification settings - Fork 0
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
Create cpp-linter.yml #2
base: master
Are you sure you want to change the base?
Conversation
⚡ Static analysis result ⚡ 🔴 Cppcheck found 48 issues! Click here to see details.Lines 78 to 83 in 7f7825f
!Line: 78 - style: Class 'ScopeGuard' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] sdbus-cpp/include/sdbus-c++/TypeTraits.h Lines 71 to 76 in 7f7825f
!Line: 71 - style: Checking if unsigned expression 'sizeof(_T)' is less than zero. [unsignedLessThanZero] Lines 448 to 453 in 7f7825f
!Line: 448 - style: Consider using std::transform algorithm instead of a raw loop. [useStlAlgorithm] sdbus-cpp/include/sdbus-c++/Message.h Lines 129 to 134 in 7f7825f
!Line: 129 - style:inconclusive: Technically the member function 'sdbus::Message::clearFlags' can be const. [functionConst] Lines 559 to 564 in 7f7825f
!Line: 559 - note: Technically the member function 'sdbus::Message::clearFlags' can be const. sdbus-cpp/include/sdbus-c++/Message.h Lines 129 to 134 in 7f7825f
!Line: 129 - note: Technically the member function 'sdbus::Message::clearFlags' can be const. sdbus-cpp/include/sdbus-c++/Types.h Lines 59 to 64 in 7f7825f
!Line: 59 - style: Class 'Variant' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] sdbus-cpp/include/sdbus-c++/Types.h Lines 159 to 164 in 7f7825f
!Line: 159 - style: Class 'ObjectPath' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] sdbus-cpp/include/sdbus-c++/Types.h Lines 178 to 183 in 7f7825f
!Line: 178 - style: Class 'Signature' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] Lines 798 to 803 in 7f7825f
!Line: 798 - warning: Redundant assignment of 'sdbus_' to itself. [selfAssignment] sdbus-cpp/include/sdbus-c++/MethodResult.h Lines 53 to 58 in 7f7825f
!Line: 53 - style: Class 'Result' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] Lines 112 to 117 in 7f7825f
!Line: 112 - style: Struct 'InterfaceData' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] Lines 143 to 148 in 7f7825f
!Line: 143 - performance: Function parameter 'flags' should be passed by const reference. [passedByValue] Lines 365 to 370 in 7f7825f
!Line: 365 - style: Variable 'callback' can be declared with const [constVariable] Lines 320 to 325 in 7f7825f
!Line: 320 - style: Consider using std::accumulate algorithm instead of a raw loop. [useStlAlgorithm] sdbus-cpp/include/sdbus-c++/IProxy.h Lines 335 to 340 in 7f7825f
!Line: 335 - style: Class 'PendingAsyncCall' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] Lines 150 to 155 in 7f7825f
!Line: 150 - style: Variable 'callData' is assigned a value that is never used. [unreadVariable] Lines 164 to 169 in 7f7825f
!Line: 164 - style: Variable 'asyncCallSlots' is assigned a value that is never used. [unreadVariable] Lines 47 to 52 in 7f7825f
!Line: 47 - style: Parameter 'msg' can be declared with const [constParameter] Lines 179 to 184 in 7f7825f
!Line: 179 - style:inconclusive: Function 'sd_bus_open_system_remote' argument 2 names different: declaration 'hsot' definition 'host'. [funcArgNamesDifferent] Lines 64 to 69 in 7f7825f
!Line: 64 - note: Function 'sd_bus_open_system_remote' argument 2 names different: declaration 'hsot' definition 'host'. Lines 179 to 184 in 7f7825f
!Line: 179 - note: Function 'sd_bus_open_system_remote' argument 2 names different: declaration 'hsot' definition 'host'. Lines 299 to 304 in 7f7825f
!Line: 299 - style: The function 'cancel' is never used. [unusedFunction] Lines 426 to 431 in 7f7825f
!Line: 426 - style: The function 'createObject' is never used. [unusedFunction] Lines 322 to 327 in 7f7825f
!Line: 322 - style: The function 'createProxy' is never used. [unusedFunction] Lines 533 to 538 in 7f7825f
!Line: 533 - style: The function 'createRemoteSystemBusConnection' is never used. [unusedFunction] Lines 149 to 154 in 7f7825f
!Line: 149 - style: The function 'finishRegistration' is never used. [unusedFunction] Lines 224 to 229 in 7f7825f
!Line: 224 - style: The function 'getConnection' is never used. [unusedFunction] Lines 690 to 695 in 7f7825f
!Line: 690 - style: The function 'getCredsEgid' is never used. [unusedFunction] Lines 662 to 667 in 7f7825f
!Line: 662 - style: The function 'getCredsEuid' is never used. [unusedFunction] Lines 676 to 681 in 7f7825f
!Line: 676 - style: The function 'getCredsGid' is never used. [unusedFunction] Lines 633 to 638 in 7f7825f
!Line: 633 - style: The function 'getCredsPid' is never used. [unusedFunction] Lines 704 to 709 in 7f7825f
!Line: 704 - style: The function 'getCredsSupplementaryGids' is never used. [unusedFunction] Lines 648 to 653 in 7f7825f
!Line: 648 - style: The function 'getCredsUid' is never used. [unusedFunction] Lines 234 to 239 in 7f7825f
!Line: 234 - style: The function 'getCurrentlyProcessedMessage' is never used. [unusedFunction] Lines 607 to 612 in 7f7825f
!Line: 607 - style: The function 'getDestination' is never used. [unusedFunction] Lines 584 to 589 in 7f7825f
!Line: 584 - style: The function 'getInterfaceName' is never used. [unusedFunction] Lines 167 to 172 in 7f7825f
!Line: 167 - style: The function 'getMethodCallTimeout' is never used. [unusedFunction] Lines 229 to 234 in 7f7825f
!Line: 229 - style: The function 'getObjectPath' is never used. [unusedFunction] Lines 601 to 606 in 7f7825f
!Line: 601 - style: The function 'getPath' is never used. [unusedFunction] Lines 726 to 731 in 7f7825f
!Line: 726 - style: The function 'getSELinuxContext' is never used. [unusedFunction] Lines 596 to 601 in 7f7825f
!Line: 596 - style: The function 'getSender' is never used. [unusedFunction] Lines 84 to 89 in 7f7825f
!Line: 84 - style: The function 'getUniqueName' is never used. [unusedFunction] Lines 219 to 224 in 7f7825f
!Line: 219 - style: The function 'hasObjectManager' is never used. [unusedFunction] Lines 313 to 318 in 7f7825f
!Line: 313 - style: The function 'isPending' is never used. [unusedFunction] Lines 78 to 83 in 7f7825f
!Line: 78 - style: The function 'releaseName' is never used. [unusedFunction] Lines 835 to 840 in 7f7825f
!Line: 835 - style: The function 'setDestination' is never used. [unusedFunction] Lines 161 to 166 in 7f7825f
!Line: 161 - style: The function 'unregister' is never used. [unusedFunction] 🔴 clang-tidy found 8 issues! Click here to see details.Lines 30 to 35 in 7f7825f
!Line: 30 - error: 'sdbus-c++/IConnection.h' file not found [clang-diagnostic-error] Lines 27 to 32 in 7f7825f
!Line: 27 - error: 'sdbus-c++/Error.h' file not found [clang-diagnostic-error] Lines 27 to 32 in 7f7825f
!Line: 27 - error: 'sdbus-c++/Flags.h' file not found [clang-diagnostic-error] Lines 27 to 32 in 7f7825f
!Line: 27 - error: 'sdbus-c++/Message.h' file not found [clang-diagnostic-error] Lines 30 to 35 in 7f7825f
!Line: 30 - error: 'sdbus-c++/IObject.h' file not found [clang-diagnostic-error] Lines 30 to 35 in 7f7825f
!Line: 30 - error: 'sdbus-c++/IProxy.h' file not found [clang-diagnostic-error] Lines 29 to 34 in 7f7825f
!Line: 29 - error: 'sdbus-c++/Error.h' file not found [clang-diagnostic-error] Lines 27 to 32 in 7f7825f
!Line: 27 - error: 'sdbus-c++/Types.h' file not found [clang-diagnostic-error] |
Introduced C++ Linter analysis