Skip to content

Commit b2278f1

Browse files
authored
Merge pull request SwiftGen#718 from SwiftGen/release/6.2.0
Release 6.2.0
2 parents c6477a6 + 9bdc98c commit b2278f1

File tree

737 files changed

+21794
-8809
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

737 files changed

+21794
-8809
lines changed

.circleci/config.yml

Lines changed: 23 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,19 @@ defaults:
66
CIRCLE_TEST_REPORTS: /tmp/circleci-test-results
77
BUNDLE_PATH: vendor/bundle
88
macos:
9-
xcode: "10.0.0"
9+
xcode: "11.4.0"
1010
shell: /bin/bash --login -eo pipefail
1111
- &prepare-storage
1212
run:
1313
name: Create directories for artifacts and reports
1414
command: mkdir -p $CIRCLE_ARTIFACTS $CIRCLE_TEST_REPORTS
15+
- &enable-ruby-auto-switching
16+
run:
17+
name: Enable Ruby Auto-Switching
18+
command: >
19+
echo "source /usr/local/share/chruby/chruby.sh" >> ~/.bash_profile;
20+
echo "source /usr/local/share/chruby/auto.sh" >> ~/.bash_profile;
21+
chruby
1522
- &restore-gems
1623
restore_cache:
1724
keys:
@@ -45,6 +52,7 @@ jobs:
4552
steps:
4653
- *prepare-storage
4754
- checkout
55+
- *enable-ruby-auto-switching
4856
- *restore-gems
4957
- *install-gems
5058
- *store-gems
@@ -67,6 +75,7 @@ jobs:
6775
steps:
6876
- *prepare-storage
6977
- checkout
78+
- *enable-ruby-auto-switching
7079
- *restore-gems
7180
- *install-gems
7281
- *store-gems
@@ -91,20 +100,10 @@ jobs:
91100
steps:
92101
- *prepare-storage
93102
- checkout
103+
- *enable-ruby-auto-switching
94104
- *restore-gems
95105
- *install-gems
96106
- *store-gems
97-
- restore_cache:
98-
keys:
99-
- homebrew-{{ checksum ".circleci/config.yml" }}
100-
- homebrew-
101-
- run:
102-
name: Install libxml2
103-
command: brew install libxml2 && brew link --force libxml2
104-
- save_cache:
105-
key: homebrew-{{ checksum ".circleci/config.yml" }}
106-
paths:
107-
- /usr/local/Homebrew
108107
- run:
109108
# TODO: This should run the tests once SPM supports testing an executable
110109
name: Build with SPM
@@ -116,6 +115,7 @@ jobs:
116115
steps:
117116
- *prepare-storage
118117
- checkout
118+
- *enable-ruby-auto-switching
119119
- *restore-gems
120120
- *install-gems
121121
- *store-gems
@@ -129,32 +129,35 @@ jobs:
129129
steps:
130130
- *prepare-storage
131131
- checkout
132+
- *enable-ruby-auto-switching
132133
- *restore-gems
133134
- *install-gems
134135
- *store-gems
135-
- run:
136-
name: Download podspec repo
137-
command: curl https://cocoapods-specs.circleci.com/fetch-cocoapods-repo-from-s3.sh | bash -s cf
136+
- restore_cache:
137+
keys:
138+
- cocoapods-{{ checksum "Podfile.lock" }}
139+
- cocoapods-
138140
- run:
139141
name: Lint podspec
140142
command: bundle exec rake pod:lint
143+
- save_cache:
144+
key: cocoapods-{{ checksum "Podfile.lock" }}
145+
paths:
146+
- ~/.cocoapods
141147
- *store-artifacts
142148

143149

144150
workflows:
145151
version: 2
146152
lint-buildandtest-compileoutput-checkdeploy:
147153
jobs:
154+
- check-deploy
148155
- lint
149156
- spm-build-and-test
150157
- xcode-build-and-test
151158
- compile-output:
152159
requires:
153-
- lint
154-
- spm-build-and-test
155-
- xcode-build-and-test
156-
- check-deploy:
157-
requires:
160+
- check-deploy
158161
- lint
159162
- spm-build-and-test
160163
- xcode-build-and-test

.ruby-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.3.7
1+
2.6.6

.swiftlint.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
swiftlint_version: 0.30.1
1+
swiftlint_version: 0.39.2
22

33
opt_in_rules:
44
- anyobject_protocol
@@ -9,23 +9,31 @@ opt_in_rules:
99
- closure_spacing
1010
- collection_alignment
1111
- conditional_returns_on_newline
12+
- contains_over_filter_count
13+
- contains_over_filter_is_empty
1214
- contains_over_first_not_nil
15+
- contains_over_range_nil_comparison
1316
- convenience_type
1417
- discouraged_optional_boolean
1518
- discouraged_optional_collection
19+
- empty_collection_literal
1620
- empty_count
1721
- empty_string
1822
- empty_xctest_method
23+
- enum_case_associated_values_count
1924
- fallthrough
2025
- fatal_error_message
2126
- file_header
2227
- first_where
28+
- flatmap_over_map_reduce
2329
- force_unwrapping
2430
- identical_operands
2531
- implicit_return
2632
- implicitly_unwrapped_optional
33+
- indentation_width
2734
- joined_default_parameter
2835
- last_where
36+
- legacy_multiple
2937
- legacy_random
3038
- literal_expression_end_indentation
3139
- lower_acl_than_parent
@@ -37,13 +45,18 @@ opt_in_rules:
3745
- multiline_parameters
3846
- multiline_parameters_brackets
3947
- nslocalizedstring_key
48+
- nslocalizedstring_require_bundle
4049
- number_separator
4150
- operator_usage_whitespace
51+
- optional_enum_case_matching
4252
- overridden_super_call
4353
- override_in_extension
54+
- prefer_self_type_over_type_of_self
4455
- private_action
4556
- private_outlet
4657
- prohibited_super_call
58+
- raw_value_for_camel_cased_codable_enum
59+
- reduce_into
4760
- redundant_nil_coalescing
4861
- sorted_first_last
4962
- sorted_imports
@@ -54,6 +67,7 @@ opt_in_rules:
5467
- trailing_closure
5568
- unavailable_function
5669
- unneeded_parentheses_in_closure_argument
70+
- unowned_variable_capture
5771
- vertical_parameter_alignment_on_call
5872
- vertical_whitespace_closing_braces
5973
- vertical_whitespace_opening_braces
@@ -72,6 +86,9 @@ file_header:
7286
\/\/ MIT Licence
7387
\/\/| Generated using SwiftGen — https:\/\/github.com\/SwiftGen\/SwiftGen)
7488
89+
indentation_width:
90+
indentation_width: 2
91+
7592
line_length:
7693
warning: 120
7794
error: 200

0 commit comments

Comments
 (0)