feat: add static code diagnostic consistent-update-render-object #1004
Conversation
@fzyzcjy again kindly asking you to take a look 🙂 |
Aha this rule catches many more bugs! And they cause more problems - because the bug we caught w/ our previous lint rule only affect performance, while this rule catches logically wrong bugs. Great job! So, same as before, shall I make a PR to flutter? |
I'll check your response a bit later (I didn't list all the duplicate cases) and maybe add more links. After that, sure |
Sure, take your time! |
Dart Code Metrics unused files report of dart_code_metrics. ✅Summary
|
Dart Code Metrics analyze report of dart_code_metrics. ✅Summary
|
Codecov Report
@@ Coverage Diff @@
## master #1004 +/- ##
==========================================
+ Coverage 87.62% 87.75% +0.13%
==========================================
Files 320 322 +2
Lines 6739 6812 +73
==========================================
+ Hits 5905 5978 +73
Misses 834 834
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
So I guess we are ready to file issues? :) (Given all those git updates) |
Sorry, no, I did everything easy and left this one for today 😄 (I also want to clean the rule from false-positives) |
Sure, take your time! |
@fzyzcjy supported most of the false positives, checking the source code again |
Left several edge cases not supported (assertions, a super call, method calls, constants) and looks like it's okay to have them. |
Kudos, SonarCloud Quality Gate passed! |
Think so. That field is final, so no need to update |
What is the purpose of this pull request? (put an "X" next to an item)