dart-code-checker / dart-code-metrics

Software analytics tool that helps developers analyse and improve software quality.
https://dcm.dev
Other
860 stars 265 forks source link

fix: fix moving to variable false positives #1186

Closed incendial closed 1 year ago

incendial commented 1 year ago

Please write a short comment explaining your change (or "none" for internal only changes)

Fixes newly reported false positives for prefer-moving-to-variable.

codecov[bot] commented 1 year ago

Codecov Report

Merging #1186 (2bdc27e) into master (d19a1e4) will increase coverage by 0.04%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #1186      +/-   ##
==========================================
+ Coverage   86.12%   86.16%   +0.04%     
==========================================
  Files         359      359              
  Lines        8085     8112      +27     
==========================================
+ Hits         6963     6990      +27     
  Misses       1122     1122              
Impacted Files Coverage Δ
.../rules_list/prefer_moving_to_variable/visitor.dart 100.00% <100.00%> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more