[go: nahoru, domu]

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

[ci] Improve analysis_options alignment with flutter/packages #6728

Merged

Conversation

stuartmorgan
Copy link
Contributor

Updates analysis options to reduce diff from flutter/packages (which also means reducing diff from flutter/flutter since that repo had a more recent re-alignment). The only code changes needed (other than a handful of local ignores of new options) was to remove a lot of unnecessary awaits in returns.

This also includes a small fix to the way the repo tooling's update-release-info works to avoid unnecessary CHANGELOG updates when run against this PR (flutter/flutter#113941).

Part of flutter/flutter#76229 and flutter/flutter#113764
Fixes flutter/flutter#113941

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.

@stuartmorgan
Copy link
Contributor Author

This pulled in a ton of people due to CODEOWNERS, but it just needs one review from whoever gets to it since the actual plugin changes are trivial and mechanical.

Copy link
Contributor
@hellohuanlin hellohuanlin left a comment

Choose a reason for hiding this comment

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

left a question

@@ -1664,7 +1664,7 @@ void main() {
'with notFound error '
'if the camera does not exist', (WidgetTester tester) async {
expect(
() async => await CameraPlatform.instance.getMaxZoomLevel(
() async => CameraPlatform.instance.getMaxZoomLevel(
Copy link
Contributor

Choose a reason for hiding this comment

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

is await optional here? are these functions still async?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Everything is still async; see https://dart-lang.github.io/linter/lints/unnecessary_await_in_return.html for a full example of the lint that these changes are fixing.

Copy link
Contributor

Choose a reason for hiding this comment

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

fascinating!

@stuartmorgan stuartmorgan added the autosubmit Merge PR when tree becomes green via auto submit App label Nov 21, 2022
@auto-submit auto-submit bot merged commit 9990a4b into flutter:main Nov 21, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Nov 22, 2022
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Nov 22, 2022
* 9990a4b1d [ci] Improve analysis_options alignment with flutter/packages (flutter/plugins#6728)

* 7abe5a79c Roll Flutter from 633d7ef to 2962228 (13 revisions) (flutter/plugins#6730)

* 5d847ef39 [sign_in]: Bump play-services-auth from 20.3.0 to 20.4.0 in /packages/google_sign_in/google_sign_in_android/android (flutter/plugins#6726)
shogohida pushed a commit to shogohida/flutter that referenced this pull request Dec 7, 2022
…#115837)

* 9990a4b1d [ci] Improve analysis_options alignment with flutter/packages (flutter/plugins#6728)

* 7abe5a79c Roll Flutter from 633d7ef to 2962228 (13 revisions) (flutter/plugins#6730)

* 5d847ef39 [sign_in]: Bump play-services-auth from 20.3.0 to 20.4.0 in /packages/google_sign_in/google_sign_in_android/android (flutter/plugins#6726)
gspencergoog pushed a commit to gspencergoog/flutter that referenced this pull request Jan 19, 2023
…#115837)

* 9990a4b1d [ci] Improve analysis_options alignment with flutter/packages (flutter/plugins#6728)

* 7abe5a79c Roll Flutter from 633d7ef to 2962228 (13 revisions) (flutter/plugins#6730)

* 5d847ef39 [sign_in]: Bump play-services-auth from 20.3.0 to 20.4.0 in /packages/google_sign_in/google_sign_in_android/android (flutter/plugins#6726)
mauricioluz pushed a commit to mauricioluz/plugins that referenced this pull request Jan 26, 2023
…r#6728)

* Add more options that are in flutter/packages

* Fix unnecessary awaits

* More option alignment

* Add and locally supress avoid_implementing_value_types

* Fix release-info for test-only changes

* Fix update-release-info handling of 'minimal'

* Update release metadata
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
2 participants