mozilla / rust-code-analysis

Library to analyze and collect metrics on source code
https://mozilla.github.io/rust-code-analysis/
262 stars 46 forks source link

Trait macros as any other import #1053

Closed Luni-4 closed 1 year ago

Luni-4 commented 1 year ago

New Rust versions allows to import macros in files without using the #[macro_use] attribute

codecov-commenter commented 1 year ago

Codecov Report

Patch and project coverage have no change.

Comparison is base (2626723) 74.09% compared to head (4820f19) 74.10%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #1053 +/- ## ======================================= Coverage 74.09% 74.10% ======================================= Files 64 64 Lines 16039 16039 ======================================= + Hits 11884 11885 +1 + Misses 4155 4154 -1 ``` | [Impacted Files](https://app.codecov.io/gh/mozilla/rust-code-analysis/pull/1053?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=mozilla) | Coverage Δ | | |---|---|---| | [src/langs.rs](https://app.codecov.io/gh/mozilla/rust-code-analysis/pull/1053?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=mozilla#diff-c3JjL2xhbmdzLnJz) | `100.00% <ø> (ø)` | | | [src/lib.rs](https://app.codecov.io/gh/mozilla/rust-code-analysis/pull/1053?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=mozilla#diff-c3JjL2xpYi5ycw==) | `100.00% <ø> (ø)` | | | [src/macros.rs](https://app.codecov.io/gh/mozilla/rust-code-analysis/pull/1053?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=mozilla#diff-c3JjL21hY3Jvcy5ycw==) | `69.81% <ø> (ø)` | | | [src/metrics/abc.rs](https://app.codecov.io/gh/mozilla/rust-code-analysis/pull/1053?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=mozilla#diff-c3JjL21ldHJpY3MvYWJjLnJz) | `94.47% <ø> (+0.12%)` | :arrow_up: | | [src/metrics/cognitive.rs](https://app.codecov.io/gh/mozilla/rust-code-analysis/pull/1053?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=mozilla#diff-c3JjL21ldHJpY3MvY29nbml0aXZlLnJz) | `99.28% <ø> (ø)` | | | [src/metrics/cyclomatic.rs](https://app.codecov.io/gh/mozilla/rust-code-analysis/pull/1053?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=mozilla#diff-c3JjL21ldHJpY3MvY3ljbG9tYXRpYy5ycw==) | `97.20% <ø> (ø)` | | | [src/metrics/exit.rs](https://app.codecov.io/gh/mozilla/rust-code-analysis/pull/1053?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=mozilla#diff-c3JjL21ldHJpY3MvZXhpdC5ycw==) | `96.04% <ø> (ø)` | | | [src/metrics/halstead.rs](https://app.codecov.io/gh/mozilla/rust-code-analysis/pull/1053?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=mozilla#diff-c3JjL21ldHJpY3MvaGFsc3RlYWQucnM=) | `93.34% <ø> (ø)` | | | [src/metrics/loc.rs](https://app.codecov.io/gh/mozilla/rust-code-analysis/pull/1053?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=mozilla#diff-c3JjL21ldHJpY3MvbG9jLnJz) | `98.98% <ø> (ø)` | | | [src/metrics/mi.rs](https://app.codecov.io/gh/mozilla/rust-code-analysis/pull/1053?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=mozilla#diff-c3JjL21ldHJpY3MvbWkucnM=) | `87.14% <ø> (ø)` | | | ... and [5 more](https://app.codecov.io/gh/mozilla/rust-code-analysis/pull/1053?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=mozilla) | |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.