Skip to content

Restore pub points by removing unnecessary library names - #47

Open
Rexios80 wants to merge 1 commit into
masterfrom
cursor/remove-unnecessary-library-names-bfb3
Open

Restore pub points by removing unnecessary library names#47
Rexios80 wants to merge 1 commit into
masterfrom
cursor/remove-unnecessary-library-names-bfb3

Conversation

@Rexios80

@Rexios80 Rexios80 commented Sep 4, 2026

Copy link
Copy Markdown
Owner

Summary

watch_connectivity 0.2.9 and watch_connectivity_garmin 0.1.13 dropped from 160 to 150 pub points because pana now treats the unnecessary_library_name INFO lint as a 10-point analysis deduction.

Both barrel files declared unused named library directives (library watch_connectivity; / library watch_connectivity_garmin;). Those names are not referenced by part files or imports, so the directives are removed entirely (a bare library; would still trip unnecessary_library_directive).

Patch versions are bumped so the fix can be published:

  • watch_connectivity 0.2.9 → 0.2.10
  • watch_connectivity_garmin 0.1.13 → 0.1.14

watch_connectivity_platform_interface is unchanged: it still scores 160/160 (older SDK language version, so this lint is not applied).

Test plan

  • dart analyze is clean in both packages
  • Local pana --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
  • CI static-analysis workflow passes
Open in Web Open in Cursor 

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
Rexios80 marked this pull request as ready for review September 4, 2026 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants