Here is the definition: typedef enum { FAULT_DIFF_COMM, FAULT_HVIL_DISCONNECT, FAULT_PCU, FAULT_MAX } Fault_T;
Here is the definition: typedef enum { FAULT_DIFF_COMM, FAULT_HVIL_DISCONNECT, FAULT_PCU, FAULT_MAX } Fault_T;
Hello, I'm seeing a false positive on the following: static bool Fault[FAULT_MAX] = {false}; Error: style: Required. Arrays shall not be partially initialized. [misra-c2012-9.3] I'm using cppcheck 2.4.1.
thank you guys! This has been a sore spot for a while now.
Hello, I've been trying to resolve a problem I've been having with cppcheck for the past few months, and I think I have pinpointed where the issue is. I've been getting errors like this: When I execute this: cppcheck --addon=misra.json -rp --inline-suppr --addon-python=python ..\..\Sources\asw\ I'm getting errors like this: Bailing out from checking ..\..\Sources\asw\aswFaults.c since there was an internal error: Failed to execute 'python "C:\Program Files\Cppcheck\addons\misra.py" --cli --rule-texts=misra_rules.txt...
I did a pull of main and replaced the addons folder on my computer and I get a lot of errors: 1 file(s) moved. Checking ..\Sources\Events.c ... Bailing out from checking ..\Sources\Events.c since there was an internal error: Failed to execute 'python "C:\Program Files\Cppcheck\addons\misra.py" --cli --rule-texts=../postbuild/cppcheck/misra_rules.txt --suppress-rules 17.8 ..\Sources\Events.c.dump'. {"file": "Events.h", "linenr": 77, "column": 6, "severity": "style", "message": "Advisory. There should...
Hello, I'm afraid I'm not that familiar with docker to test this on the latest build of cppcheck. When is the next release of cppcheck scheduled? Would it be possible to get a copy soon? Thank you, Amir
I'm getting the following error: Bailing out from checking ..\Sources\asw\aswSoc.c since there was an internal error: Failed to execute 'python "C:\Program Files\Cppcheck\addons\misra.py" --cli --rule-texts=../postbuild/cppcheck/misra_rules.txt --suppress-rules 17.8 ..\Sources\asw\aswSoc.c.dump'. Traceback (most recent call last): File "C:\Program Files\Cppcheck\addons\misra.py", line 3620, in <module> main() File "C:\Program Files\Cppcheck\addons\misra.py", line 3564, in main checker.parseDump(item)...