RGB-WG / rgb-std

RGB standard libs for WASM & low-level integrations (no FS/networking)
https://rgb.tech
Apache License 2.0
66 stars 31 forks source link

warn about repeated field name in iimpl #223

Closed cymqqqq closed 2 months ago

cymqqqq commented 2 months ago

Description: warn about repeated field names in the iface impl.

  1. new RepeatWarning enum type for warning about the repeated field name and counts.
  2. new RepeatedStatus for adding the repeated warnings into a vector.
  3. use hashmap to check the repeated times in the metadata, global state, valencies, transitions, and extensions.
  4. modified error, now is (RepeatedStatus, Vec<ImplInconsistency>)
codecov[bot] commented 2 months ago

Codecov Report

Attention: Patch coverage is 0% with 70 lines in your changes missing coverage. Please review.

Project coverage is 16.9%. Comparing base (1c5b910) to head (d7eac9a). Report is 1 commits behind head on master.

Files Patch % Lines
src/interface/iimpl.rs 0.0% 70 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #223 +/- ## ======================================== - Coverage 17.0% 16.9% -0.2% ======================================== Files 37 37 Lines 7379 7448 +69 ======================================== Hits 1257 1257 - Misses 6122 6191 +69 ``` | [Flag](https://app.codecov.io/gh/RGB-WG/rgb-std/pull/223/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=RGB-WG) | Coverage Δ | | |---|---|---| | [rust](https://app.codecov.io/gh/RGB-WG/rgb-std/pull/223/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=RGB-WG) | `16.9% <0.0%> (-0.2%)` | :arrow_down: | 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=RGB-WG#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.