Skip to content

BinaryBirds/swift-format-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Swift format template

Install swift-format:

brew install swift-format

Create a .swift-format using this template.

curl -s https://raw.githubusercontent.com/BinaryBirds/swift-format-template/main/.swift-format > .swift-format

Add these lines to your Makefile:

format:
	swift-format -i -r ./Sources && swift-format -i -r ./Tests

lint:
	swift-format lint -r ./Sources && swift-format lint -r ./Tests

One-liner integration:

curl -s https://raw.githubusercontent.com/BinaryBirds/swift-format-template/main/.swift-format > .swift-format && curl -s https://raw.githubusercontent.com/BinaryBirds/swift-format-template/main/Makefile >> ./Makefile

Usage:

make format
make lint

That's it.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published