amplify-flutter icon indicating copy to clipboard operation
amplify-flutter copied to clipboard

chore(api): use library.yaml lint rules and reformat to match

Open ragingsquirrel3 opened this issue 3 years ago • 1 comments

Changes API category lint rules to library.yaml and then changes all the offending code to pass analysis. There is no CI enforcement of that here (want to do in separate PR) but there should be no output from flutter analyze.

No functional changes, just code formatting.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

ragingsquirrel3 avatar Sep 23 '22 21:09 ragingsquirrel3

Codecov Report

Merging #2171 (1c806a0) into feat/api-next (baddbb9) will increase coverage by 0.10%. The diff coverage is 90.82%.

@@                Coverage Diff                @@
##           feat/api-next    #2171      +/-   ##
=================================================
+ Coverage          39.11%   39.22%   +0.10%     
=================================================
  Files                118      117       -1     
  Lines               6897     6906       +9     
=================================================
+ Hits                2698     2709      +11     
+ Misses              4199     4197       -2     
Flag Coverage Δ
android-unit-tests ∅ <ø> (∅)
flutter-unit-tests 27.04% <90.82%> (+0.13%) :arrow_up:
ios-unit-tests 95.36% <ø> (+0.23%) :arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
packages/api/amplify_api/lib/amplify_api.dart 100.00% <ø> (ø)
...kages/api/amplify_api/lib/src/api_plugin_impl.dart 78.76% <ø> (ø)
...ib/src/graphql/app_sync_api_key_auth_provider.dart 100.00% <ø> (ø)
...api/amplify_api/lib/src/graphql/model_queries.dart 83.33% <ø> (ø)
...plify_api/lib/src/graphql/model_subscriptions.dart 85.71% <ø> (ø)
...b/src/graphql/oidc_function_api_auth_provider.dart 100.00% <ø> (ø)
...ges/api/amplify_api/lib/src/native_api_plugin.dart 9.09% <ø> (ø)
...ib/src/util/amplify_authorization_rest_client.dart 85.71% <ø> (ø)
..._api/lib/src/graphql/ws/web_socket_connection.dart 60.22% <80.00%> (+0.45%) :arrow_up:
...ackages/api/amplify_api/lib/src/graphql/utils.dart 90.76% <83.87%> (-0.76%) :arrow_down:
... and 12 more

codecov-commenter avatar Sep 23 '22 23:09 codecov-commenter