-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Suppress MISRA C rule 21.6 in MISRA.md #858
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #858 +/- ##
=======================================
Coverage 93.64% 93.64%
=======================================
Files 6 6
Lines 2549 2549
Branches 608 608
=======================================
Hits 2387 2387
Misses 107 107
Partials 55 55
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
MISRA.md
Outdated
@@ -67,6 +67,10 @@ Copy below content to `misra.conf` to run Coverity on FreeRTOS-Kernel. | |||
deviation: "Rule 11.5", | |||
reason: "Allow casts from `void *`. List owner, pvOwner, is stored as `void *` and are cast to various types for use in functions." | |||
} | |||
{ | |||
deviation: "Rule 21.6", | |||
reason: "snprintf is used in APIs vTaskListTasks and vTaskGetRunTimeStatistics to print the buffer." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add a little more details, something like this https://github.com/FreeRTOS/FreeRTOS-Plus-TCP/blob/main/MISRA.md#rule-216
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated.
Kudos, SonarCloud Quality Gate passed! |
Closing this, since a new PR achieving the same result is created |
This PR suppresses MISRA C rule 21.6 in MISRA.md.
Description
MISRA C:2012 Rule 21.6
MISRA violation
FreeRTOS Kernel uses snprintf to print out the buffer in vTaskListTasks and vTaskGetRunTimeStatistics API.
Fix in this PR
Test Steps
N/A
Checklist:
I have tested my changes. No regression in existing tests.I have modified and/or added unit-tests to cover the code changes in this Pull Request.By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.