Skip to content

Conversation

phantumcode
Copy link
Contributor

Issue #

Description

Resolving SwiftFormat errors and warnings for Amplify Core.

General Checklist

  • Added new tests to cover change, if needed
  • Build succeeds with all target using Swift Package Manager
  • All unit tests pass
  • All integration tests pass
  • Security oriented best practices and standards are followed (e.g. using input sanitization, principle of least privilege, etc)
  • Documentation update for the change if required
  • PR title conforms to conventional commit style
  • New or updated tests include Given When Then inline code documentation and are named accordingly testThing_condition_expectation()
  • If breaking change, documentation/changelog update with migration instructions

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

@phantumcode phantumcode requested a review from a team as a code owner September 3, 2024 18:00
Copy link

codecov bot commented Sep 10, 2024

Codecov Report

Attention: Patch coverage is 77.09611% with 112 lines in your changes missing coverage. Please review.

Project coverage is 67.75%. Comparing base (ca6c65a) to head (c418da3).
Report is 9 commits behind head on chore/resolve_swiftformat.

Files with missing lines Patch % Lines
...re/Model/GraphQLRequest/GraphQLRequest+Model.swift 78.22% 27 Missing ⚠️
...gins/Core/AWSPluginsCore/Auth/AWSAuthService.swift 0.00% 18 Missing ⚠️
...aphQLRequest/GraphQLRequest+AnyModelWithSync.swift 89.81% 11 Missing ⚠️
...WSPluginsCore/Sync/MutationSync/MutationSync.swift 46.66% 8 Missing ⚠️
.../Configuration/AWSAuthorizationConfiguration.swift 0.00% 7 Missing ⚠️
...ore/AWSPluginsCore/WebSocket/WebSocketClient.swift 80.64% 6 Missing ⚠️
.../Core/AWSPluginsCore/Model/AnyModel/AnyModel.swift 0.00% 5 Missing ⚠️
...insCore/Model/Support/QueryPredicate+GraphQL.swift 68.75% 5 Missing ⚠️
...SPluginsCore/Auth/AuthAWSCredentialsProvider.swift 0.00% 4 Missing ⚠️
...PluginsCore/Model/Decorator/ModelIdDecorator.swift 60.00% 4 Missing ⚠️
... and 15 more
Additional details and impacted files
@@                      Coverage Diff                      @@
##           chore/resolve_swiftformat    #3847      +/-   ##
=============================================================
- Coverage                      68.51%   67.75%   -0.76%     
=============================================================
  Files                           1080     1006      -74     
  Lines                          37608    34296    -3312     
=============================================================
- Hits                           25766    23237    -2529     
+ Misses                         11842    11059     -783     
Flag Coverage Δ
API_plugin_unit_test 68.99% <ø> (+0.03%) ⬆️
AWSPluginsCore 68.88% <77.09%> (+0.32%) ⬆️
Amplify 47.56% <ø> (ø)
Analytics_plugin_unit_test 84.52% <ø> (ø)
Auth_plugin_unit_test 79.78% <ø> (+0.10%) ⬆️
DataStore_plugin_unit_test 81.29% <ø> (+0.07%) ⬆️
Geo_plugin_unit_test 72.00% <ø> (ø)
Logging_plugin_unit_test 62.95% <ø> (ø)
Predictions_plugin_unit_test 37.32% <ø> (ø)
PushNotifications_plugin_unit_test 86.21% <ø> (ø)
Storage_plugin_unit_test ?
unit_tests 67.75% <77.09%> (-0.76%) ⬇️

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@phantumcode phantumcode merged commit 80908f3 into chore/resolve_swiftformat Oct 11, 2024
69 of 70 checks passed
@phantumcode phantumcode deleted the chore/resolve_swiftformat_core branch October 11, 2024 20:02
thisisabhash pushed a commit that referenced this pull request Sep 18, 2025
* chore(core): resolve swiftformat errors and warnings

* updated swiftformat rules

* fix build error

* fix build error

* update rules
harsh62 pushed a commit that referenced this pull request Sep 19, 2025
* chore: resolve SwiftFormat errors and warnings at the categories module (#3843)

* resolve swiftformat errors and warnings

* resolve review comments

* move braces back to same-line

* fix argument spacing

* chore(analytics): resolve swiftformat errors and warnings (#3844)

* chore(analytics): resolve swiftformat errors and warnings

* chore(analytics): resolve swiftformat errors and warnings

* resolve review comments

* fix build errors

* chore(notifications): resolve swiftformat errors and warnings (#3853)

* chore(notifications): resolve swiftformat errors and warnings

* updated swiftformat rules

* chore(datastore): resolve swiftformat errors and warnings (#3848)

* chore(datastore): resolve swiftformat errors and warnings

* updated swiftformat rules

* fix build error

* update rules

* fix build error

* fix brace alignment

* chore(api): resolve swiftformat errors and warnings (#3845)

* chore(api): resolve swiftformat errors and warnings

* updated swiftformat rules

* fix build error

* update rules

* chore(logging): resolve swiftformat errors and warnings (#3850)

* chore(logging): resolve swiftformat errors and warnings

* updated swiftformat rules

* chore(geo): resolve swiftformat errors and warnings (#3849)

* chore(geo): resolve swiftformat errors and warnings

* updated swiftformat rules

* update rules

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

* chore(predictions): resolve swiftformat errors and warnings

* updated swiftformat rules

* remove duplicate import statement

* chore(core): resolve swiftformat errors and warnings (#3847)

* chore(core): resolve swiftformat errors and warnings

* updated swiftformat rules

* fix build error

* fix build error

* update rules

* chore: resolve swiftformat errors and warnings in test modules (#3854)

* chore: resolve swiftformat errors and warnings

* updated swiftformat rules

* update rules

* chore(storage): resolve swiftformat errors and warnings (#3852)

* chore(storage): resolve swiftformat errors and warnings

* updated swiftformat rules

* update rules

* chore(auth): resolve swiftformat errors and warnings (#3846)

* chore(auth): resolve swiftformat errors and warnings

* updated swiftformat rules

* fix build error

* fix build error

* update rules

* fix build error

* remove commented code

* align comments

* fix spacing

* resolve latest swift format changes

* chore: resolve build failure after rebase with main

* chore: update changes after swiftformat command

* chore: update code

---------

Co-authored-by: Abhash Kumar Singh <[email protected]>
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