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

Closed
lcartey opened this issue Sep 26, 2024 · 0 comments · Fixed by #717
Closed

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

lcartey opened this issue Sep 26, 2024 · 0 comments · 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
@lcartey lcartey moved this from Reported to Ready for review in Coding Standards Public Development Board Sep 26, 2024
@github-project-automation github-project-automation bot moved this from Ready for review to Done in Coding Standards Public Development Board Oct 15, 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
1 participant