cppcheck icon indicating copy to clipboard operation
cppcheck copied to clipboard

deprecated `--enable=style` implying `warning`, `performance` and `portability`

Open firewave opened this issue 2 years ago • 7 comments

This finally makes all those groups granular from each other.

We can still move the version which will remove this behavior if we feel uncomfortable. But we should at least finally deprecate it.

firewave avatar Apr 13 '23 11:04 firewave

I removed the CI files so this does not trigger a build to ease things. So please review the individual commits as the CI changes are not visible.

firewave avatar Apr 13 '23 11:04 firewave

I don't know. I agree in theory that it is confusing that "style" enables all the other severities.

But I have a bad feeling about destroying the command line interface. According to our website we should consider:

I fear some of these are not actively maintained

danmar avatar Apr 29 '23 12:04 danmar

Valid point. But as it doesn't change the behavior there should be no issues. So we could still deprecate this but remove the version number. We have done so with several things which could affect that.

I tried figuring out something which is not as soft as still allows this to be transitional. Maybe we need a --no-deprecated switch which will error out on such things whereas the default behavior is just a message for the transitional period. Or raises analysis errors/warnings and not simply messages to stdout/stderr. That would increase the visibility even in head-less systems.

But I think we already killed those unmaintained with several changes which will now fail an analysis / raise an error by default which previously did not.

firewave avatar Apr 29 '23 13:04 firewave

But as it doesn't change the behavior there should be no issues.

I don't understand.. if the plugin just uses --enable=style then the behavior will change.

danmar avatar Apr 30 '23 18:04 danmar

But I think we already killed those unmaintained with several changes which will now fail an analysis / raise an error by default which previously did not.

Yeah perhaps.. do you know any particular change that could break plugins?

The color coding comes to my mind directly but I have the feeling plugins often use xml..

danmar avatar Apr 30 '23 18:04 danmar

As most users won't see the message we should refrain from actually specifying a target until we are able to actually properly communicate this to the user. I have an idea on how to do that but it will be a while. I will file a ticket about that soon.

I would still like to deprecate this without a target version as this is really misleading and needs to be cleaned up. And we obviously need to specify the proper intent in our own code. Will update it soon.

firewave avatar Sep 18 '23 20:09 firewave