Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yhkaplan/swift-formatting-scripts
Convenient scripts to run all or limited rules for SwiftFormat and SwiftLint, etc
https://github.com/yhkaplan/swift-formatting-scripts
Last synced: about 1 month ago
JSON representation
Convenient scripts to run all or limited rules for SwiftFormat and SwiftLint, etc
- Host: GitHub
- URL: https://github.com/yhkaplan/swift-formatting-scripts
- Owner: yhkaplan
- Created: 2018-07-20T06:17:31.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-02-25T11:31:43.000Z (almost 6 years ago)
- Last Synced: 2024-11-06T05:42:20.227Z (3 months ago)
- Language: Swift
- Homepage:
- Size: 22.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# format.swift
> Format all the things
# format-only.swift
> Select certain SwiftFormat rule to format with
This is a convenient script to run both Swiftformat and Swiftlint.
# auto-add-mark.rb
> Add `// MARK: - {protocol name}` above extensions conforming to protocols
# Githooks
### post-checkout & post-merge
Run `pod install` and `rome download` after checkout and merge when needed.
### pre-commit
Format changed Swift files and add call auto-add-mark.rb
## Setting up
`brew install fd` (a super-performant Rust version of find)
## Usage
## Customizing for your needs
These scripts are just a starting point for your own projects. Feel free to choose your own rules and configurations! Also, I recommend managing Swiftlint and Swiftformat versions because new rules appear often. One solution is [Mint](mint-url....). Included in this repo is also a pre-commit git hook to automatically format changed/added files.
## TODO
- [ ] Add --help/-h arguments