aws-amplify / amplify-swift

A declarative library for application development using cloud services.
Apache License 2.0
456 stars 198 forks source link

chore(predictions): resolve swiftformat errors and warnings #3851

Closed phantumcode closed 1 month ago

phantumcode commented 2 months ago

Issue \

Description

Resolving SwiftFormat errors and warnings for the Predictions plugin.

General Checklist

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

codecov[bot] commented 2 months ago

Codecov Report

Attention: Patch coverage is 19.71831% with 57 lines in your changes missing coverage. Please review.

Project coverage is 68.69%. Comparing base (ca6c65a) to head (bcab1d7). Report is 8 commits behind head on chore/resolve_swiftformat.

Files with missing lines Patch % Lines
...gin/Support/Utils/IdentifyResultTransformers.swift 0.00% 7 Missing :warning:
...Support/Utils/IdentifyTextResultTransformers.swift 0.00% 7 Missing :warning:
...s/IdentifyTextResultTransformers+KeyValueSet.swift 0.00% 6 Missing :warning:
...ictionsPlugin/Support/PredictionsAWSServices.swift 0.00% 5 Missing :warning:
...sPlugin/Liveness/Service/FaceLivenessSession.swift 0.00% 4 Missing :warning:
...ort/Utils/IdentifyEntitiesResultTransformers.swift 0.00% 4 Missing :warning:
.../Utils/IdentifyTextResultTransformers+Tables.swift 0.00% 4 Missing :warning:
...gin/Dependency/AWSTranscribeStreamingAdapter.swift 0.00% 2 Missing :warning:
...in/Service/MultiService/IdentifyMultiService.swift 0.00% 2 Missing :warning:
...rvice/MultiService/InterpretTextMultiService.swift 0.00% 2 Missing :warning:
... and 12 more
Additional details and impacted files ```diff @@ Coverage Diff @@ ## chore/resolve_swiftformat #3851 +/- ## ============================================================= + Coverage 68.51% 68.69% +0.18% ============================================================= Files 1080 1080 Lines 37608 37622 +14 ============================================================= + Hits 25766 25844 +78 + Misses 11842 11778 -64 ``` | [Flag](https://app.codecov.io/gh/aws-amplify/amplify-swift/pull/3851/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aws-amplify) | Coverage Δ | | |---|---|---| | [API_plugin_unit_test](https://app.codecov.io/gh/aws-amplify/amplify-swift/pull/3851/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aws-amplify) | `68.96% <ø> (ø)` | | | [AWSPluginsCore](https://app.codecov.io/gh/aws-amplify/amplify-swift/pull/3851/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aws-amplify) | `68.56% <ø> (ø)` | | | [Amplify](https://app.codecov.io/gh/aws-amplify/amplify-swift/pull/3851/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aws-amplify) | `47.62% <ø> (+0.06%)` | :arrow_up: | | [Analytics_plugin_unit_test](https://app.codecov.io/gh/aws-amplify/amplify-swift/pull/3851/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aws-amplify) | `84.52% <ø> (ø)` | | | [Auth_plugin_unit_test](https://app.codecov.io/gh/aws-amplify/amplify-swift/pull/3851/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aws-amplify) | `79.71% <ø> (+0.03%)` | :arrow_up: | | [DataStore_plugin_unit_test](https://app.codecov.io/gh/aws-amplify/amplify-swift/pull/3851/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aws-amplify) | `82.23% <ø> (+1.01%)` | :arrow_up: | | [Geo_plugin_unit_test](https://app.codecov.io/gh/aws-amplify/amplify-swift/pull/3851/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aws-amplify) | `72.00% <ø> (ø)` | | | [Logging_plugin_unit_test](https://app.codecov.io/gh/aws-amplify/amplify-swift/pull/3851/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aws-amplify) | `62.95% <ø> (ø)` | | | [Predictions_plugin_unit_test](https://app.codecov.io/gh/aws-amplify/amplify-swift/pull/3851/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aws-amplify) | `37.19% <19.71%> (-0.14%)` | :arrow_down: | | [PushNotifications_plugin_unit_test](https://app.codecov.io/gh/aws-amplify/amplify-swift/pull/3851/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aws-amplify) | `86.21% <ø> (ø)` | | | [Storage_plugin_unit_test](https://app.codecov.io/gh/aws-amplify/amplify-swift/pull/3851/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aws-amplify) | `76.81% <ø> (ø)` | | | [unit_tests](https://app.codecov.io/gh/aws-amplify/amplify-swift/pull/3851/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aws-amplify) | `68.69% <19.71%> (+0.18%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aws-amplify#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.