openyurtio / openyurt

OpenYurt - Extending your native Kubernetes to edge(project under CNCF)
https://openyurt.io
Apache License 2.0
1.68k stars 391 forks source link

feat: modify sonar and codecov config #2001

Closed vie-serendipity closed 3 months ago

vie-serendipity commented 3 months ago

What type of PR is this?

Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespace from that line: /kind bug /kind documentation /kind enhancement /kind good-first-issue /kind feature /kind question /kind design /sig ai /sig iot /sig network /sig storage

/kind enhancement

What this PR does / why we need it:

  1. The modification are not effective in the https://github.com/openyurtio/openyurt/pull/2000. The "ignore" field should be flush left.
  2. It's more reasonable for Sonar to exclude generated code when checking for duplicate code.

    Which issue(s) this PR fixes:

    Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?

None

other Note

sonarcloud[bot] commented 3 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

codecov[bot] commented 3 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 53.14%. Comparing base (b4cfa75) to head (7a96f62).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #2001 +/- ## ========================================== + Coverage 53.08% 53.14% +0.05% ========================================== Files 175 175 Lines 20910 20910 ========================================== + Hits 11100 11112 +12 + Misses 8861 8850 -11 + Partials 949 948 -1 ``` | [Flag](https://app.codecov.io/gh/openyurtio/openyurt/pull/2001/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=openyurtio) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/openyurtio/openyurt/pull/2001/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=openyurtio) | `53.14% <ø> (+0.05%)` | :arrow_up: | 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=openyurtio#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.

rambohe-ch commented 3 months ago

/lgtm