Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

[url_launcher] Switch to new analysis options #4551

Merged
merged 10 commits into from
Nov 30, 2021

Conversation

stuartmorgan-g
Copy link
Contributor

@stuartmorgan-g stuartmorgan-g commented Nov 29, 2021

Removes the legacy analysis options for all url_launcher packages, and fixes all resulting violations. Most fixes are automatic dart fix changes.

No version change: Most of these changes are to code that don't affect clients, or are clearly no-ops (e.g., adding a type specifier that was already strongly inferred). Only the packages where there is some potential for change—although none is actually expected—have version bumps.

Part of flutter/flutter#76229

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the relevant style guides and ran the auto-formatter. (Unlike the flutter/flutter repo, the flutter/plugins repo does use dart format.)
  • I signed the CLA.
  • The title of the PR starts with the name of the plugin surrounded by square brackets, e.g. [shared_preferences]
  • I listed at least one issue that this PR fixes in the description above.
  • I updated pubspec.yaml with an appropriate new version according to the pub versioning philosophy, or this PR is exempt from version changes.
  • I updated CHANGELOG.md to add a description of the change, following repository CHANGELOG style.
  • I updated/added relevant documentation (doc comments with ///).
  • I added new tests to check the change I am making, or this PR is test-exempt.
  • All existing and new tests are passing.

Copy link
Contributor

@mvanbeusekom mvanbeusekom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM % one more analysis warning though:

error - lib/src/link.dart:275:12 - A value of type 'dynamic' can't be returned from the function 'getViewIdFromTarget' because it has a return type of 'int?'. - return_of_invalid_type

@stuartmorgan-g
Copy link
Contributor Author

There were a bunch more in that package. I was sure it was clean before I uploaded; maybe the analyzer in VS Code had stalled (which happens to me sometimes) and I didn't notice. Should all be fixed now though.

@stuartmorgan-g stuartmorgan-g merged commit 2ab3044 into flutter:master Nov 30, 2021
@stuartmorgan-g stuartmorgan-g deleted the analysis-url-launcher branch November 30, 2021 17:01
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Dec 1, 2021
amantoux pushed a commit to amantoux/plugins that referenced this pull request Dec 11, 2021
Removes the legacy analysis options for all `url_launcher` packages, and fixes all resulting violations. Most fixes are automatic `dart fix` changes.

No version change: Most of these changes are to code that don't affect clients, or are clearly no-ops (e.g., adding a type specifier that was already strongly inferred). Only the packages where there is some potential for change—although none is actually expected—have version bumps.

Part of flutter/flutter#76229
KyleFin pushed a commit to KyleFin/plugins that referenced this pull request Dec 21, 2021
Removes the legacy analysis options for all `url_launcher` packages, and fixes all resulting violations. Most fixes are automatic `dart fix` changes.

No version change: Most of these changes are to code that don't affect clients, or are clearly no-ops (e.g., adding a type specifier that was already strongly inferred). Only the packages where there is some potential for change—although none is actually expected—have version bumps.

Part of flutter/flutter#76229
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants