Skip to content

Fix #13831 (do not execute misra.py in cppcheck premium when --premium=misra-c-.. options are used) #7506

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

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 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
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.

1 participant