Open
Conversation
Purpose is that all subsequent changes will show only the actual material changes and be easier to gauge.
both to be realistic (nothing we're using would ever touch <3.0.0)
updateAttributeTypeSelection and updateEnteredQueryName were calling _model.prePostCard.copyWith() without assigning the result, silently discarding changes to attribute type and query param name. The model was left stale and changes would be lost on any save/reload cycle.
… get generated in repo
|
Visit the preview URL for this PR (updated for commit a13ed46): https://gen-hls-bkc-7627--pr316-mw-debt-code-cleanup-bfwcc2dc.web.app (expires Mon, 16 Mar 2026 19:41:51 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: eed668cca81618d491d024574a8f8a6003deaa8d |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What is in this PR?
Clean it up! Fix the stagnant analyzer warnings (and INFO level alerts in the touched files - but not in other files). This means that:
Specifically, fixed all 56 WARNING-level issues:
32× unused_import
9× dead_code
5× unused_local_variable
3× override_on_non_overriding_member
2× unused_field
2× unused_result
1× dead_null_aware_expression
1× duplicate_import
1× sdk_version_since
Changes in the codebase
Branch:
mw/debt/code-cleanup(diverged fromstagingat55024b26)Part 1: Commit Summary
a379c0b2d755ad621d297b30collection(client) andmeta(functions) to pubspec.yaml.298a1968sdk: '>=3.0.0 <4.0.0'.3ab49d3alocalization_helper.dartinevent_info.dart).953bf26acontrol_bar.dart. (#47)f2b1ea9ashowTimehelper, unreachablereturn null, dead mobile-page builder, unnecessary?? false.4dd6a15fshowChatOptiontoggle & UI in waiting room widget. (#315)fff73422enableChatfield fromWaitingRoomInfomodel, serialization, presenter method. (#315)c1c412b9copyWithresults inPrePostCardWidgetPresenter- two calls were silently discarding mutations.6bb7869ddocs/pages/dev.mdwith instructions for ignoring system-specific untracked files.Changes outside the codebase
None.
Testing this PR
There should be no observable differences in the app - only one bug fix and it was mostly silent. Nothing to test.
Additional information
A bunch of the issues addressed here are present elsewhere in the code base but currently silent due to the analyzer settings. We can fix a lot of problems for almost free if we check for these. I categorized all the "PROBLEMS" still found, all currently INFO level because that's the default.
Remaining Easy-fix Problems
This is the full list, grouped by the level I think we should assign to them:
Elevate to error (bugs that are probably already biting us):
Elevate to warning so we see them in the file explorer:
Leave as INFO for now, refactor later:
Proposed analyzer changes: