02/06/2023 15:30 Behrouz NematiPour sources/storage/Logger.h:91:5: error: There is an unknown macro here somewhere. Configuration is required. If Q_ENUM is a macro then please configure it. [unknownMacro] Q_ENUM(LogType) ^ sources/model/settings/MSettings.cpp:45:15: style: Consider using std::accumulate algorithm instead of a raw loop. [useStlAlgorithm] mKeys += keyValue.key(); ^ sources/model/settings/MSettings.cpp:74:17: style: Consider using std::accumulate algorithm instead of a raw loop. [useStlAlgorithm] mValues += keyValue.val(); ^ sources/model/settings/MSettings.cpp:91:0: style: Consider using std::find_if algorithm instead of a raw loop. [useStlAlgorithm] if ( vKey == keyValue.key() ) return keyValue.val(); ^ sources/storage/FileHandler.h:102:14: style: Condition '!createFolder' is always false [knownConditionTrueFalse] if ( ! createFolder ) { if ( ! dstDir.exists() ) { err = eDstFolderNotExist ; goto lErr; }} ^ sources/storage/FileHandler.h:95:35: note: Assignment 'createFolder=true', assigned value is 1 bool createFolder = true; ^ sources/storage/FileHandler.h:102:14: note: Condition '!createFolder' is always false if ( ! createFolder ) { if ( ! dstDir.exists() ) { err = eDstFolderNotExist ; goto lErr; }} ^ sources/storage/FileHandler.h:92:17: style: Local variable 'totalSize' shadows outer function [shadowFunction] qint64 totalSize = 0; ^ sources/storage/FileHandler.h:75:21: note: Shadowed declaration static quint64 totalSize(const QFileInfoList &vFileInfoList); ^ sources/storage/FileHandler.h:92:17: note: Shadow variable qint64 totalSize = 0; ^ sources/storage/FileHandler.h:87:33: style: Variable 'err' is assigned a value that is never used. [unreadVariable] FileCopyError_Enums err = eOK; ^ sources/view/VAdjustmentResponseBase.h:61:5: error: There is an unknown macro here somewhere. Configuration is required. If Q_PROPERTY is a macro then please configure it. [unknownMacro] Q_PROPERTY(QString adjustment_ReasonText READ text NOTIFY adjustment_ReasonTriggered) ^ sources/view/dg/data/VDGOperationModeData.h:44:5: error: There is an unknown macro here somewhere. Configuration is required. If Q_PROPERTY is a macro then please configure it. [unknownMacro] Q_PROPERTY(QString text READ text NOTIFY opModeChanged) ^ sources/view/dg/data/VDGValvesStatesData.h:57:5: error: There is an unknown macro here somewhere. Configuration is required. If Q_PROPERTY is a macro then please configure it. [unknownMacro] Q_PROPERTY(QString text READ text NOTIFY refreshTriggered) ^ sources/view/hd/data/VHDOperationModeData.h:79:5: error: There is an unknown macro here somewhere. Configuration is required. If Q_PROPERTY is a macro then please configure it. [unknownMacro] Q_PROPERTY(QString text READ text NOTIFY opModeChanged) ^ sources/view/settings/VBluetooth.h:63:5: error: There is an unknown macro here somewhere. Configuration is required. If Q_ENUM is a macro then please configure it. [unknownMacro] Q_ENUM(DataRole) ^ sources/storage/StorageGlobals.cpp:53:0: style: The function 'Log_Min_Available_Total_Space_IsLow' is never used. [unusedFunction] ^ sources/model/settings/MSettings.cpp:126:0: style: The function 'add' is never used. [unusedFunction] ^ sources/model/settings/MSettings.cpp:113:0: style: The function 'categorys' is never used. [unusedFunction] ^ sources/device/DeviceError.cpp:56:0: style: The function 'checkScript' is never used. [unusedFunction] ^ sources/storage/FileHandler.cpp:142:0: style: The function 'copyFolder' is never used. [unusedFunction] ^ sources/utility/crc.cpp:50:0: style: The function 'crc8' is never used. [unusedFunction] ^ sources/model/settings/MSettings.cpp:152:0: style: The function 'datetimeFormat' is never used. [unusedFunction] ^ sources/model/settings/MSettings.cpp:102:0: style: The function 'groups' is never used. [unusedFunction] ^ sources/storage/FileHandler.cpp:261:0: style: The function 'isMounted' is never used. [unusedFunction] ^ sources/storage/FileHandler.cpp:241:0: style: The function 'makeFolder' is never used. [unusedFunction] ^ sources/storage/FileHandler.cpp:162:0: style: The function 'moveFolder' is never used. [unusedFunction] ^ sources/storage/FileHandler.cpp:203:0: style: The function 'removeFiles' is never used. [unusedFunction] ^ sources/storage/FileHandler.cpp:183:0: style: The function 'removeFolder' is never used. [unusedFunction] ^ sources/storage/FileHandler.cpp:415:0: style: The function 'subFolders' is never used. [unusedFunction] ^ sources/model/MAbstract.cpp:33:0: style: The function 'toVariantList' is never used. [unusedFunction] ^ sources/model/settings/MSettings.cpp:68:0: style: The function 'values' is never used. [unusedFunction] ^ nofile:0:0: information: Cppcheck cannot find all the include files. Cppcheck can check the code without the include files found. But the results will probably be more accurate if all the include files are found. Please check your project's include directories and add all of them as include directories for Cppcheck. To see what files Cppcheck cannot find use --check-config. [missingInclude]