Upgrade hive_ce_generator to analyzer 14 - #310
Closed
Rexios80 wants to merge 4 commits into
Closed
Conversation
Bump analyzer to ^14.0.0 and the Dart SDK constraint to ^3.11.0. Replace the source_helper dependency with local helpers so resolution is not blocked by its analyzer <14 constraint, and update dependent example/benchmark packages accordingly. Co-authored-by: Rexios <rexios@rexios.dev>
Co-authored-by: Rexios <rexios@rexios.dev>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #310 +/- ##
=======================================
Coverage 93.59% 93.59%
=======================================
Files 64 64
Lines 2622 2622
=======================================
Hits 2454 2454
Misses 168 168 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Flutter stable pins meta 1.18.0, but analyzer 14 requires ^1.18.3. Override meta in hive_flutter/example so path-dependent generator resolution succeeds on stable. Co-authored-by: Rexios <rexios@rexios.dev>
Pin the plugin version in hive analysis_options so disabling not_null_assertion works with the newer analyzer plugin system. Co-authored-by: Rexios <rexios@rexios.dev>
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.
Summary
hive_ce_generatortoanalyzer: ^14.0.0and Dart SDK^3.11.0source_helperdependency (still capped below analyzer 14) and replace its small usage (isEnum, string escaping) with local helpersrexios_lintsto^18.1.0and adjust example/benchmark packages that path-depend on the generatorTest plan
dart pub getinhive_generatordart analyze --fatal-infosinhive_generatordart testinhive_generatorpana --no-warning --exit-code-threshold 0(160/160)