Skip to content

Commit d5f90b5

Browse files
authored
Merge pull request #112 from SwiftGen/feature/update-cocoapods-swiftlint
Update CocoaPods & SwiftLint
2 parents dbcac97 + 7593c52 commit d5f90b5

37 files changed

+748
-741
lines changed

.swiftlint.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
1+
swiftlint_version: 0.29.3
2+
13
opt_in_rules:
24
- anyobject_protocol
35
- array_init
46
- attributes
7+
- closure_body_length
58
- closure_end_indentation
69
- closure_spacing
10+
- collection_alignment
711
- contains_over_first_not_nil
812
- convenience_type
913
- discouraged_optional_boolean
@@ -15,15 +19,23 @@ opt_in_rules:
1519
- file_header
1620
- first_where
1721
- force_unwrapping
22+
- identical_operands
1823
- implicit_return
1924
- implicitly_unwrapped_optional
25+
- inert_defer
2026
- joined_default_parameter
27+
- last_where
28+
- legacy_hashing
29+
- legacy_random
2130
- literal_expression_end_indentation
2231
- lower_acl_than_parent
2332
- modifier_order
2433
- multiline_arguments
34+
- multiline_arguments_brackets
2535
- multiline_function_chains
36+
- multiline_literal_brackets
2637
- multiline_parameters
38+
- multiline_parameters_brackets
2739
- number_separator
2840
- object_literal
2941
- operator_usage_whitespace
@@ -33,12 +45,18 @@ opt_in_rules:
3345
- private_outlet
3446
- prohibited_super_call
3547
- redundant_nil_coalescing
48+
- redundant_objc_attribute
3649
- sorted_first_last
3750
- sorted_imports
51+
- static_operator
52+
- toggle_bool
3853
- trailing_closure
3954
- unavailable_function
4055
- unneeded_parentheses_in_closure_argument
56+
- unused_control_flow_label
4157
- vertical_parameter_alignment_on_call
58+
- vertical_whitespace_closing_braces
59+
- vertical_whitespace_opening_braces
4260
- yoda_condition
4361

4462
# Rules customization

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ _None_
2020

2121
### Internal Changes
2222

23-
_None_
23+
* Update to SwiftLint 0.29.3 and enable some extra SwiftLint rules.
24+
[David Jennes](https://github.com/djbe)
25+
[#112](https://github.com/SwiftGen/StencilSwiftKit/pull/112)
2426

2527
## 2.7.1
2628

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ end
1010

1111
# In addition to :build, for contributing
1212
group :development do
13-
gem 'cocoapods', '~> 1.5'
13+
gem 'cocoapods', '~> 1.6.0.beta.2'
1414
gem 'rubocop', '~> 0.62'
1515
end
1616

Gemfile.lock

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,26 +12,26 @@ GEM
1212
ast (2.4.0)
1313
atomos (0.1.3)
1414
claide (1.0.2)
15-
cocoapods (1.5.3)
15+
cocoapods (1.6.0.beta.2)
1616
activesupport (>= 4.0.2, < 5)
1717
claide (>= 1.0.2, < 2.0)
18-
cocoapods-core (= 1.5.3)
18+
cocoapods-core (= 1.6.0.beta.2)
1919
cocoapods-deintegrate (>= 1.0.2, < 2.0)
20-
cocoapods-downloader (>= 1.2.0, < 2.0)
20+
cocoapods-downloader (>= 1.2.2, < 2.0)
2121
cocoapods-plugins (>= 1.0.0, < 2.0)
2222
cocoapods-search (>= 1.0.0, < 2.0)
2323
cocoapods-stats (>= 1.0.0, < 2.0)
24-
cocoapods-trunk (>= 1.3.0, < 2.0)
24+
cocoapods-trunk (>= 1.3.1, < 2.0)
2525
cocoapods-try (>= 1.1.0, < 2.0)
2626
colored2 (~> 3.1)
2727
escape (~> 0.0.4)
2828
fourflusher (~> 2.0.1)
2929
gh_inspector (~> 1.0)
30-
molinillo (~> 0.6.5)
30+
molinillo (~> 0.6.6)
3131
nap (~> 1.0)
32-
ruby-macho (~> 1.1)
33-
xcodeproj (>= 1.5.7, < 2.0)
34-
cocoapods-core (1.5.3)
32+
ruby-macho (~> 1.3, >= 1.3.1)
33+
xcodeproj (>= 1.7.0, < 2.0)
34+
cocoapods-core (1.6.0.beta.2)
3535
activesupport (>= 4.0.2, < 6)
3636
fuzzy_match (~> 2.0.4)
3737
nap (~> 1.0)
@@ -102,7 +102,7 @@ PLATFORMS
102102
ruby
103103

104104
DEPENDENCIES
105-
cocoapods (~> 1.5)
105+
cocoapods (~> 1.6.0.beta.2)
106106
octokit (~> 4.13)
107107
rake (~> 12.3)
108108
rubocop (~> 0.62)

Podfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ raise 'Please use bundle exec to run the pod command' unless defined?(Bundler)
55

66
target 'Tests' do
77
pod 'StencilSwiftKit', path: '.'
8-
pod 'SwiftLint', '~> 0.27'
8+
pod 'SwiftLint', '~> 0.29'
99
end

Podfile.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ PODS:
44
- PathKit (~> 0.9.0)
55
- StencilSwiftKit (2.7.1):
66
- Stencil (~> 0.13.1)
7-
- SwiftLint (0.27.0)
7+
- SwiftLint (0.29.3)
88

99
DEPENDENCIES:
1010
- StencilSwiftKit (from `.`)
11-
- SwiftLint (~> 0.27)
11+
- SwiftLint (~> 0.29)
1212

1313
SPEC REPOS:
1414
https://github.com/cocoapods/specs.git:
@@ -23,9 +23,9 @@ EXTERNAL SOURCES:
2323
SPEC CHECKSUMS:
2424
PathKit: 273f59a38e3218eb95abd9f6a61730a8bcfd2f06
2525
Stencil: b5128a0a43ece9225db5cbd94d6569fe6fba609b
26-
StencilSwiftKit: b6a40947ffbe44b370461951874fa09fca030ca2
27-
SwiftLint: 3207c1faa2240bf8973b191820a116113cd11073
26+
StencilSwiftKit: e16b4580ae8cec0af6deea1924200ae733042162
27+
SwiftLint: bfa7ca7b4d170cfaf0d236ca3ffd969e88a2f002
2828

29-
PODFILE CHECKSUM: bfb045d6ef409d0ed3751cc1023e316c5e7803ad
29+
PODFILE CHECKSUM: dc07e3bb2d5b477586d93c79a4bbd9e79a49960f
3030

31-
COCOAPODS: 1.5.3
31+
COCOAPODS: 1.6.0.beta.2

Pods/Manifest.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)