Skip to content
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

RULE-2-2: Should only report operations, permit void casts #716

Open
lcartey opened this issue Sep 26, 2024 · 0 comments · May be fixed by #717
Open

RULE-2-2: Should only report operations, permit void casts #716

lcartey opened this issue Sep 26, 2024 · 0 comments · May be fixed by #717
Labels
Difficulty-Low A false positive or false negative report which is expected to take <1 day effort to address false positive/false negative An issue related to observed false positives or false negatives. Impact-High

Comments

@lcartey
Copy link
Collaborator

lcartey commented Sep 26, 2024

Affected rules

  • RULE-2-2

Description

Rule 2.2 for MISRA C is restricted to operations, however the query currently reports statements.

Example

(void) 0; // COMPLIANT

if (true) { // COMPLIANT - not operation
}
@lcartey lcartey added Difficulty-Low A false positive or false negative report which is expected to take <1 day effort to address false positive/false negative An issue related to observed false positives or false negatives. Impact-High labels Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Difficulty-Low A false positive or false negative report which is expected to take <1 day effort to address false positive/false negative An issue related to observed false positives or false negatives. Impact-High
Projects
Status: Ready for review
1 participant