Closed chinglee-iot closed 11 months ago
Attention: 2 lines
in your changes are missing coverage. Please review.
Comparison is base (
09c4c4b
) 93.67% compared to head (7130601
) 93.64%.
Files | Patch % | Lines |
---|---|---|
tasks.c | 33.33% | 1 Missing and 1 partial :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Kudos, SonarCloud Quality Gate passed!
0 Bugs
0 Vulnerabilities
0 Security Hotspots
0 Code Smells
No Coverage information
0.0% Duplication
Fix MISRA C 2012 Rule 14.2
Description
MISRA C 2012 Rule 14.2
MISRA violation The MISRA rule requires the object in the second clause should not be modified. This makes the code easier to review and analyse. The following is an example of violation. The variable
xOutputBufferFull
in the second clause is modified in the for loop body.Fix in this PR
In the above example, use a break statement instead of the second clause condition to escape from the for loop.
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.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.