Skip to content

Commit 1cc29a9

Browse files
committed
feat: SwiftLint in Example project
1 parent 7729b8c commit 1cc29a9

5 files changed

Lines changed: 130 additions & 11 deletions

File tree

Example/ChatExample.xcodeproj/project.pbxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@
523523
);
524524
runOnlyForDeploymentPostprocessing = 0;
525525
shellPath = /bin/sh;
526-
shellScript = "if which swiftlint >/dev/null; then\nswiftlint\nelse\necho \"warning: SwiftLint not installed, download from https://github.com/realm/SwiftLint\"\nfi\n";
526+
shellScript = "\"${PODS_ROOT}/SwiftLint/swiftlint\"\n";
527527
};
528528
/* End PBXShellScriptBuildPhase section */
529529

Example/Gemfile

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#
2+
# MIT License
3+
#
4+
# Copyright (c) 2017-2020 MessageKit
5+
#
6+
# Permission is hereby granted, free of charge, to any person obtaining a copy
7+
# of this software and associated documentation files (the "Software"), to deal
8+
# in the Software without restriction, including without limitation the rights
9+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
# copies of the Software, and to permit persons to whom the Software is
11+
# furnished to do so, subject to the following conditions:
12+
13+
# The above copyright notice and this permission notice shall be included in all
14+
# copies or substantial portions of the Software.
15+
16+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
# SOFTWARE.
23+
24+
source 'https://rubygems.org'
25+
gem 'cocoapods', '~> 1.9'

Example/Gemfile.lock

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
CFPropertyList (3.0.2)
5+
activesupport (4.2.11.1)
6+
i18n (~> 0.7)
7+
minitest (~> 5.1)
8+
thread_safe (~> 0.3, >= 0.3.4)
9+
tzinfo (~> 1.1)
10+
algoliasearch (1.27.1)
11+
httpclient (~> 2.8, >= 2.8.3)
12+
json (>= 1.5.1)
13+
atomos (0.1.3)
14+
claide (1.0.3)
15+
cocoapods (1.9.0)
16+
activesupport (>= 4.0.2, < 5)
17+
claide (>= 1.0.2, < 2.0)
18+
cocoapods-core (= 1.9.0)
19+
cocoapods-deintegrate (>= 1.0.3, < 2.0)
20+
cocoapods-downloader (>= 1.2.2, < 2.0)
21+
cocoapods-plugins (>= 1.0.0, < 2.0)
22+
cocoapods-search (>= 1.0.0, < 2.0)
23+
cocoapods-stats (>= 1.0.0, < 2.0)
24+
cocoapods-trunk (>= 1.4.0, < 2.0)
25+
cocoapods-try (>= 1.1.0, < 2.0)
26+
colored2 (~> 3.1)
27+
escape (~> 0.0.4)
28+
fourflusher (>= 2.3.0, < 3.0)
29+
gh_inspector (~> 1.0)
30+
molinillo (~> 0.6.6)
31+
nap (~> 1.0)
32+
ruby-macho (~> 1.4)
33+
xcodeproj (>= 1.14.0, < 2.0)
34+
cocoapods-core (1.9.0)
35+
activesupport (>= 4.0.2, < 6)
36+
algoliasearch (~> 1.0)
37+
concurrent-ruby (~> 1.1)
38+
fuzzy_match (~> 2.0.4)
39+
nap (~> 1.0)
40+
netrc (~> 0.11)
41+
typhoeus (~> 1.0)
42+
cocoapods-deintegrate (1.0.4)
43+
cocoapods-downloader (1.3.0)
44+
cocoapods-plugins (1.0.0)
45+
nap
46+
cocoapods-search (1.0.0)
47+
cocoapods-stats (1.1.0)
48+
cocoapods-trunk (1.4.1)
49+
nap (>= 0.8, < 2.0)
50+
netrc (~> 0.11)
51+
cocoapods-try (1.1.0)
52+
colored2 (3.1.2)
53+
concurrent-ruby (1.1.6)
54+
escape (0.0.4)
55+
ethon (0.12.0)
56+
ffi (>= 1.3.0)
57+
ffi (1.12.2)
58+
fourflusher (2.3.1)
59+
fuzzy_match (2.0.4)
60+
gh_inspector (1.1.3)
61+
httpclient (2.8.3)
62+
i18n (0.9.5)
63+
concurrent-ruby (~> 1.0)
64+
json (2.3.0)
65+
minitest (5.14.0)
66+
molinillo (0.6.6)
67+
nanaimo (0.2.6)
68+
nap (1.1.0)
69+
netrc (0.11.0)
70+
ruby-macho (1.4.0)
71+
thread_safe (0.3.6)
72+
typhoeus (1.3.1)
73+
ethon (>= 0.9.0)
74+
tzinfo (1.2.6)
75+
thread_safe (~> 0.1)
76+
xcodeproj (1.15.0)
77+
CFPropertyList (>= 2.3.3, < 4.0)
78+
atomos (~> 0.1.3)
79+
claide (>= 1.0.2, < 2.0)
80+
colored2 (~> 3.1)
81+
nanaimo (~> 0.2.6)
82+
83+
PLATFORMS
84+
ruby
85+
86+
DEPENDENCIES
87+
cocoapods (~> 1.9)
88+
89+
BUNDLED WITH
90+
2.1.4

Example/Podfile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ platform :ios, '9.0'
55
target 'ChatExample' do
66
use_frameworks!
77
pod 'MessageKit', :path => '../'
8+
pod 'SwiftLint', '~> 0.39.1'
89

9-
target 'ChatExampleTests' do
10-
inherit! :search_paths
11-
end
12-
13-
target 'ChatExampleUITests' do
14-
inherit! :search_paths
15-
end
10+
target 'ChatExampleTests' do
11+
inherit! :search_paths
12+
end
1613

14+
target 'ChatExampleUITests' do
15+
inherit! :search_paths
16+
end
1717
end

Example/Podfile.lock

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,26 @@ PODS:
44
- InputBarAccessoryView/Core (4.3.1)
55
- MessageKit (3.1.0-beta.1):
66
- InputBarAccessoryView (~> 4.3.0)
7+
- SwiftLint (0.39.1)
78

89
DEPENDENCIES:
910
- MessageKit (from `../`)
11+
- SwiftLint (~> 0.39.1)
1012

1113
SPEC REPOS:
1214
trunk:
1315
- InputBarAccessoryView
16+
- SwiftLint
1417

1518
EXTERNAL SOURCES:
1619
MessageKit:
1720
:path: "../"
1821

1922
SPEC CHECKSUMS:
2023
InputBarAccessoryView: 58a348be7ea2736c7eec60e5c315511c2dbb39fd
21-
MessageKit: 6b809a162328346e0727dbcd040b5f9fd5f5ba15
24+
MessageKit: 01a62c3f7de7b4055e44c28689f94d3df59005fb
25+
SwiftLint: 55e96a4a4d537d4a3156859fc1c54bd24851a046
2226

23-
PODFILE CHECKSUM: 90bd12ca685503630d7fe716609f4974660ed5ee
27+
PODFILE CHECKSUM: 71c5ec35ac2c10fb00dc79becd288bc472fdc6bf
2428

25-
COCOAPODS: 1.8.4
29+
COCOAPODS: 1.9.0

0 commit comments

Comments
 (0)