Skip to content

Older free versions does not work - unrecognized command line option "--premium=safety-off #20

Closed

Description

@popy2k14

As the title says.
Older versions does not recognize the unkown command line option "--premium=safety-off".
Sadly, this is hardcoded, see here: https://github.com/search?q=repo%3Acppchecksolutions%2Fcppcheclipse%20premium%3Dsafety-off&type=code

The exact error message is:
cppcheck: error: unrecognized command line option: "--premium=safety-off"

Any chance of getting an "legacy" option to disable this behaviour?

Activity

  1. jamesmartin-46 commented on Sep 4, 2025

    @jamesmartin-46

    I am getting this as well...

  2. Pudel-des-Todes commented on Nov 12, 2025

    @Pudel-des-Todes
    Contributor

    Definitely an issue
    Edit: added PR with the proposed fix

  3. popy2k14 commented on Nov 14, 2025

    @popy2k14
    Author

    @Pudel-des-Todes thx a lot for fixing this.
    Would love to see a new version released, so we can finally use the new plugin version with open source cppcheck.

  4. danmar commented on Nov 14, 2025

    @danmar
    Contributor

    Would love to see a new version released, so we can finally use the new plugin version with open source cppcheck.

    I agree.. We will look into this next week.

  5. added a commit that references this issue on Nov 17, 2025
    3505d7e
  6. popy2k14 commented on Nov 21, 2025

    @popy2k14
    Author

    @Pudel-des-Todes @danmar tested the fix an it works for me with various open source cppcheck versions.
    I tested the auto built version here: https://github.com/cppchecksolutions/cppcheclipse/actions/runs/19423448393

  7. danmar commented on Nov 21, 2025

    @danmar
    Contributor

    thanks.. I have attempted to update the published cppcheclipse also so feel free to update using the marketplace..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions