Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SwiftFormat config and pre-commit #126

Closed
wants to merge 2 commits into from
Closed

Conversation

matiasbzurovski
Copy link
Contributor

Changelog

Adds the configuration for Swift formatting and the pre-commit hook.

Notes

Format changes will be done in a separate PR, leaving this one with only the configuration changes.

Rationale

The project already had an almost empty .swift-format file, that would have allowed us to use Apple's swift-format, instead of the SwiftFormat developed by nicklockwood.

Even though I mostly prefer going with native tools, the Apple one doesn't allow as many rules as the selected one. Also, given we are already using it for the iOS Wallet project, it makes sense to use the same tool to easily replicate the same coding standards and styles in both projects.

@matiasbzurovski matiasbzurovski added the Swift 🍏 Changes in Swift Sargon label May 7, 2024
Copy link

codecov bot commented May 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.8%. Comparing base (862e61c) to head (7b333ba).

Additional details and impacted files

Impacted file tree graph

@@          Coverage Diff          @@
##            main    #126   +/-   ##
=====================================
  Coverage   98.8%   98.8%           
=====================================
  Files        740     740           
  Lines      11655   11655           
  Branches      23      23           
=====================================
  Hits       11521   11521           
  Misses       134     134           
Flag Coverage Δ
kotlin 100.0% <ø> (ø)
rust 98.5% <ø> (ø)
swift 99.7% <ø> (ø)

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

@CyonAlexRDX
Copy link
Contributor

@matiasbzurovski @GhenadieVP lets close this for now and re-introduce it once we have merge #176

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Swift 🍏 Changes in Swift Sargon
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants