Skip to content

Commit 58370f0

Browse files
committed
Install SwiftLint via CocoaPods
1 parent 631e509 commit 58370f0

File tree

6 files changed

+10
-14
lines changed

6 files changed

+10
-14
lines changed

.swiftlint.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@ variable_name:
1111
excluded:
1212
- id
1313
- URL
14+
included:
15+
- iCookTV
16+
- iCookTVTests
1417
excluded:
1518
- Carthage
1619
- Pods
1720
- iCookTV/R.generated.swift
21+
- vendor

Brewfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
brew "pkg-config"
2-
brew "swiftlint"
32
brew "xcproj"

Podfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ target :iCookTV do
2121
target :iCookTVTests do
2222
pod "Nimble"
2323
pod "Quick"
24+
pod "SwiftLint", "0.24.0"
2425
end
2526
end
2627

Podfile.lock

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ PODS:
1414
- R.swift (3.2.0):
1515
- R.swift.Library (~> 3.0.2)
1616
- R.swift.Library (3.0.2)
17+
- SwiftLint (0.24.0)
1718
- TreasureData-iOS-SDK (0.1.15):
1819
- KeenClientTD (= 3.2.27)
1920

@@ -29,6 +30,7 @@ DEPENDENCIES:
2930
- Nimble
3031
- Quick
3132
- R.swift (~> 3.2.0)
33+
- SwiftLint (= 0.24.0)
3234
- TreasureData-iOS-SDK (= 0.1.15)
3335

3436
EXTERNAL SOURCES:
@@ -49,8 +51,9 @@ SPEC CHECKSUMS:
4951
Quick: 58d203b1c5e27fff7229c4c1ae445ad7069a7a08
5052
R.swift: 207a372a2b5977caef440c696a368009460641d1
5153
R.swift.Library: fbdec16c9802ad104fc1ba53415dc190e6ec5c73
54+
SwiftLint: a014c92b4664e8b13f380f8640a51bb1733778ba
5255
TreasureData-iOS-SDK: cc878af36b85ae3540a9a5bdb36b7bdc8707b719
5356

54-
PODFILE CHECKSUM: ec741a5274940c3e1554acaae0c31d0765839a2e
57+
PODFILE CHECKSUM: 890bc8cde488e1da70690561ca3f7dead572ce95
5558

5659
COCOAPODS: 1.3.1

iCookTV.xcodeproj/project.pbxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@
586586
);
587587
runOnlyForDeploymentPostprocessing = 0;
588588
shellPath = /bin/sh;
589-
shellScript = "sh ${SRCROOT}/scripts/swiftlint.sh";
589+
shellScript = "${PODS_ROOT}/SwiftLint/swiftlint --config ${SRCROOT}/.swiftlint.yml";
590590
};
591591
B5BA3B4A1CF6D19800B0A022 /* Run R.swift Script */ = {
592592
isa = PBXShellScriptBuildPhase;

scripts/swiftlint.sh

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)