FreeRTOS / FreeRTOS-Kernel

FreeRTOS kernel files only, submoduled into https://github.com/FreeRTOS/FreeRTOS and various other repos.
https://www.FreeRTOS.org
MIT License
2.76k stars 1.12k forks source link

Suppress MISRA C:2012 rule 21.6 for snprintf #877

Closed chinglee-iot closed 10 months ago

chinglee-iot commented 12 months ago

Suppress MISRA rule 21.6 for snprintf

Description

MISRA C:2012 Rule 21.6

The Standard Library input/output functions shall not be used

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 when configUSE_TRACE_FACILITY is set to 1 and configUSE_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.

codecov[bot] commented 12 months ago

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (877484c) 93.78% compared to head (10e99cd) 93.78%.

Files Patch % Lines
tasks.c 50.00% 1 Missing :warning:
Additional details and impacted files ```diff @@ 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 ``` | [Flag](https://app.codecov.io/gh/FreeRTOS/FreeRTOS-Kernel/pull/877/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=FreeRTOS) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/FreeRTOS/FreeRTOS-Kernel/pull/877/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=FreeRTOS) | `93.78% <50.00%> (ø)` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=FreeRTOS#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

kar-rahul-aws commented 12 months ago

/bot run formatting

sonarcloud[bot] commented 10 months ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication