Skip to content

Commit 6cc170e

Browse files
committed
Set up SwiftLint and add make format
1 parent 2346ec1 commit 6cc170e

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,7 @@ xcuserdata/*
1111

1212
# Ruby tooling
1313
vendor/bundle
14+
15+
16+
# SwiftLint Remote Config Cache
17+
.swiftlint/RemoteConfigCache

.swiftlint.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
swiftlint_version: 0.57.0
2+
3+
parent_config: https://raw.githubusercontent.com/Automattic/swiftlint-config/b497131f8d0fddbf3b23278cfc4ef8d86c9bcb20/.swiftlint.yml
4+
remote_timeout: 10.0
5+
6+
excluded:
7+
- .build

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,7 @@ test:
1616
-sdk iphonesimulator \
1717
-destination 'platform=iOS Simulator,name=$(SIMULATOR_NAME),OS=$(SIMULATOR_OS)' \
1818
| xcpretty
19+
20+
# TODO: Add automation to set up SwiftLint
21+
format:
22+
swiftlint --fix --format

0 commit comments

Comments
 (0)