Restore pub points by removing unnecessary library names - #47
Open
Rexios80 wants to merge 1 commit into
Open
Conversation
Named library directives trigger the unnecessary_library_name INFO lint, which costs 10 pub points on each package. Drop the unused directives and bump patch versions so the fix can be published. Co-authored-by: Rexios <rexios@rexios.dev>
Rexios80
marked this pull request as ready for review
September 4, 2026 13:34
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
watch_connectivity0.2.9 andwatch_connectivity_garmin0.1.13 dropped from 160 to 150 pub points because pana now treats theunnecessary_library_nameINFO lint as a 10-point analysis deduction.Both barrel files declared unused named
librarydirectives (library watch_connectivity;/library watch_connectivity_garmin;). Those names are not referenced bypartfiles or imports, so the directives are removed entirely (a barelibrary;would still tripunnecessary_library_directive).Patch versions are bumped so the fix can be published:
watch_connectivity0.2.9 → 0.2.10watch_connectivity_garmin0.1.13 → 0.1.14watch_connectivity_platform_interfaceis unchanged: it still scores 160/160 (older SDK language version, so this lint is not applied).Test plan
dart analyzeis clean in both packagespana --no-warning --exit-code-threshold 0(pana 0.23.19, Flutter 3.47.2 / Dart 3.13.2) reports 50/50 analysis and 160/160 overall for both packages