Replies: 1 comment
-
|
May you provide issues for that. This not a point fir discussion. It is a bug. Or better to say more than one bugs. Anyway, I am surprised that the mentioned check dies not work. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Recently I found a bug in a class ctor like:
Since the bug wasn't found by the developer (me) and code reviewer (others) I wanted to know if CtrlPPcheck is able to help to find this very basic issue.
Short answer: No
Long answer:
I asked Microsoft Copilot and the issue was found. Also asked to do checks with standard code analysis tools and they're able to find that. Would be nice/useful if CtrlPPcheck is able to find such code flaws as well.
Installation of "WinCCOA_QualityChecks" is not documented. There are some Markdown files (e.g. README.md) but none of them explains what to do (asked again Microsoft Copilot) to make it working. Also there is a lot of documentation but it doesn't tell anything how to "install". The "Step by Step" guide I got from Microsoft Copilot wasn't complete... (but can't complain AI here since if there is no information, AI can't tell you - even it did, but incomplete).
The provided WinCCOA_QualityChecks.dpl is buggy. Got -43 Date format or time format error. After fixing that I got 55 : DP %s already defined with ID . which is okay since it was my 2nd attempt to import that ASCII file.
But at the end, when trying "Quality Checks / CtrlPPcheck (static)" I get tons of errors in log:
Cannot open file, CtrlCB, readFromFile, C:/WinCCOA_Proj/TSTharry_319/data/QualityGates/QgCtrlppCheck/1767983139/Score, The system cannot find the file specified.
I verified that "Score" file really doesn't exist, so the error message is correct, but why?
Folder C:/WinCCOA_Proj/TSTharry_319/data/QualityGates/QgCtrlppCheck/1767983139/ contains:
So I tried to call the ctrlppcheck.exe in Command Prompt:
But that output isn't helpful either since the one bug I wanted "to be reported by CtrlPPcheck". varnotexists was found, that's good. The FUNCTION etc. can be ignored because of missing configuration settings, I guess.
Long story short: The problematic line
if (bar = "")was not found.In this particular case, the malfunction occurred somewhere completely different and therefore remained undetected for quite a long time. The corresponding class was part of a pull request and was reviewed, but the issue was not found. A static code analysis of all files in that PR would certainly have helped to identify the problem much sooner.
Beta Was this translation helpful? Give feedback.
All reactions