-
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:2012 rule 21.6 for snprintf #877
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #877 +/- ##
=======================================
Coverage 93.78% 93.78%
=======================================
Files 6 6
Lines 3184 3184
Branches 885 885
=======================================
Hits 2986 2986
Misses 91 91
Partials 107 107
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
/bot run formatting |
0c42906
Signed-off-by: Gaurav Aggarwal <[email protected]>
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Suppress MISRA rule 21.6 for snprintf
Description
MISRA C:2012 Rule 21.6
MISRA deviations
This rule warns about the use of standard library input/output functions as they might have implementation defined or undefined behavior.
The function
snprintf
is used for convenience only whenconfigUSE_TRACE_FACILITY
is set to 1 andconfigUSE_STATS_FORMATTING_FUNCTIONS
is set to greater than 0. Do not consider it to be part of the scheduler.Suppress in this PR
Test Steps
Checklist:
Related Issue
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.