Skip to content

Conversation

@danmar
Copy link
Owner

@danmar danmar commented May 3, 2025

No description provided.

@danmar danmar requested a review from Copilot May 3, 2025 11:57
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR addresses issue #13831 by preventing the execution of misra.py in cppcheck premium mode when misra-c options are used.

  • In gui/mainwindow.cpp, the misra addon is skipped during addon processing when cppcheck premium mode is active.
  • In cli/cmdlineparser.cpp, the code that previously added the misra addon based on specific premium arguments has been removed.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
gui/mainwindow.cpp Skips the misra addon execution when cppcheck premium is active.
cli/cmdlineparser.cpp Removes the insertion of the misra addon for specific premium args.

@danmar danmar marked this pull request as ready for review May 3, 2025 13:15
@ludviggunne
Copy link
Collaborator

LGTM 👍

break;
case ReportType::misraC:
if (errId.rfind("misra-c20", 0) == 0)
if (errId.rfind("misra-c20", 0) == 0 || errId.rfind("premium-misra-c-20", 0) == 0)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this fix #13730?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! will check..

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ludviggunne no :-(

@danmar danmar merged commit ff22de1 into danmar:main May 12, 2025
53 checks passed
@danmar danmar deleted the fix-13831 branch November 1, 2025 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants