We can remove the inconclusive, but I think we should add a flag to enable more aggressive copy-paste detection, since --inconclusive doesn't seem to be the right flag.
Last edit: Paul Fultz 2020-09-26
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If there will be a reasonable amount of noise, I do believe you should use --inconclusive anyway. But if there will typically be 100s of warnings in normal well written projects then I suggest that such copy/paste detection is put in an addon.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I assume that api will mean that the python scripts that use that must use LGPL compatible license? So it will not be possible to write a commercial addon. I'm not sure if that matters just want to understand the limit..
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Cppcheck writes
duplicateAssignExpression
warnings for constant values..In hexxagon there is this code and cppcheck warns that
best
andalpha
are assigned with the same expression:The warning is "inconclusive".. but well I feel that such code looks reasonable to me.
SCR_INFINITY is a enum constant.
We can remove the inconclusive, but I think we should add a flag to enable more aggressive copy-paste detection, since
--inconclusive
doesn't seem to be the right flag.Last edit: Paul Fultz 2020-09-26
sounds ok to me.
If there will be a reasonable amount of noise, I do believe you should use
--inconclusive
anyway. But if there will typically be 100s of warnings in normal well written projects then I suggest that such copy/paste detection is put in an addon.however I assume you want to reuse
followVar
?hmm.. that can't easily be done in a addon. At least not right now.
Yea, cppcheck should add a python API. Its fairly easy to do with pybind11.
I assume that api will mean that the python scripts that use that must use LGPL compatible license? So it will not be possible to write a commercial addon. I'm not sure if that matters just want to understand the limit..
I don't think that would be considered a derivative work since its not statically linked nor includes any cppcheck sources, but I am not a lawyer.
It also may not matter since I dont see how its possible to write a python addon without having the source code available.