Skip to content

Commit

Permalink
Merge pull request #112 from SwiftGen/feature/update-cocoapods-swiftlint
Browse files Browse the repository at this point in the history
Update CocoaPods & SwiftLint
  • Loading branch information
djbe authored Jan 8, 2019
2 parents dbcac97 + 7593c52 commit d5f90b5
Show file tree
Hide file tree
Showing 37 changed files with 748 additions and 741 deletions.
18 changes: 18 additions & 0 deletions .swiftlint.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
swiftlint_version: 0.29.3

opt_in_rules:
- anyobject_protocol
- array_init
- attributes
- closure_body_length
- closure_end_indentation
- closure_spacing
- collection_alignment
- contains_over_first_not_nil
- convenience_type
- discouraged_optional_boolean
Expand All @@ -15,15 +19,23 @@ opt_in_rules:
- file_header
- first_where
- force_unwrapping
- identical_operands
- implicit_return
- implicitly_unwrapped_optional
- inert_defer
- joined_default_parameter
- last_where
- legacy_hashing
- legacy_random
- literal_expression_end_indentation
- lower_acl_than_parent
- modifier_order
- multiline_arguments
- multiline_arguments_brackets
- multiline_function_chains
- multiline_literal_brackets
- multiline_parameters
- multiline_parameters_brackets
- number_separator
- object_literal
- operator_usage_whitespace
Expand All @@ -33,12 +45,18 @@ opt_in_rules:
- private_outlet
- prohibited_super_call
- redundant_nil_coalescing
- redundant_objc_attribute
- sorted_first_last
- sorted_imports
- static_operator
- toggle_bool
- trailing_closure
- unavailable_function
- unneeded_parentheses_in_closure_argument
- unused_control_flow_label
- vertical_parameter_alignment_on_call
- vertical_whitespace_closing_braces
- vertical_whitespace_opening_braces
- yoda_condition

# Rules customization
Expand Down
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ _None_

### Internal Changes

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

## 2.7.1

Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ end

# In addition to :build, for contributing
group :development do
gem 'cocoapods', '~> 1.5'
gem 'cocoapods', '~> 1.6.0.beta.2'
gem 'rubocop', '~> 0.62'
end

Expand Down
18 changes: 9 additions & 9 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -12,26 +12,26 @@ GEM
ast (2.4.0)
atomos (0.1.3)
claide (1.0.2)
cocoapods (1.5.3)
cocoapods (1.6.0.beta.2)
activesupport (>= 4.0.2, < 5)
claide (>= 1.0.2, < 2.0)
cocoapods-core (= 1.5.3)
cocoapods-core (= 1.6.0.beta.2)
cocoapods-deintegrate (>= 1.0.2, < 2.0)
cocoapods-downloader (>= 1.2.0, < 2.0)
cocoapods-downloader (>= 1.2.2, < 2.0)
cocoapods-plugins (>= 1.0.0, < 2.0)
cocoapods-search (>= 1.0.0, < 2.0)
cocoapods-stats (>= 1.0.0, < 2.0)
cocoapods-trunk (>= 1.3.0, < 2.0)
cocoapods-trunk (>= 1.3.1, < 2.0)
cocoapods-try (>= 1.1.0, < 2.0)
colored2 (~> 3.1)
escape (~> 0.0.4)
fourflusher (~> 2.0.1)
gh_inspector (~> 1.0)
molinillo (~> 0.6.5)
molinillo (~> 0.6.6)
nap (~> 1.0)
ruby-macho (~> 1.1)
xcodeproj (>= 1.5.7, < 2.0)
cocoapods-core (1.5.3)
ruby-macho (~> 1.3, >= 1.3.1)
xcodeproj (>= 1.7.0, < 2.0)
cocoapods-core (1.6.0.beta.2)
activesupport (>= 4.0.2, < 6)
fuzzy_match (~> 2.0.4)
nap (~> 1.0)
Expand Down Expand Up @@ -102,7 +102,7 @@ PLATFORMS
ruby

DEPENDENCIES
cocoapods (~> 1.5)
cocoapods (~> 1.6.0.beta.2)
octokit (~> 4.13)
rake (~> 12.3)
rubocop (~> 0.62)
Expand Down
2 changes: 1 addition & 1 deletion Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ raise 'Please use bundle exec to run the pod command' unless defined?(Bundler)

target 'Tests' do
pod 'StencilSwiftKit', path: '.'
pod 'SwiftLint', '~> 0.27'
pod 'SwiftLint', '~> 0.29'
end
12 changes: 6 additions & 6 deletions Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ PODS:
- PathKit (~> 0.9.0)
- StencilSwiftKit (2.7.1):
- Stencil (~> 0.13.1)
- SwiftLint (0.27.0)
- SwiftLint (0.29.3)

DEPENDENCIES:
- StencilSwiftKit (from `.`)
- SwiftLint (~> 0.27)
- SwiftLint (~> 0.29)

SPEC REPOS:
https://github.com/cocoapods/specs.git:
Expand All @@ -23,9 +23,9 @@ EXTERNAL SOURCES:
SPEC CHECKSUMS:
PathKit: 273f59a38e3218eb95abd9f6a61730a8bcfd2f06
Stencil: b5128a0a43ece9225db5cbd94d6569fe6fba609b
StencilSwiftKit: b6a40947ffbe44b370461951874fa09fca030ca2
SwiftLint: 3207c1faa2240bf8973b191820a116113cd11073
StencilSwiftKit: e16b4580ae8cec0af6deea1924200ae733042162
SwiftLint: bfa7ca7b4d170cfaf0d236ca3ffd969e88a2f002

PODFILE CHECKSUM: bfb045d6ef409d0ed3751cc1023e316c5e7803ad
PODFILE CHECKSUM: dc07e3bb2d5b477586d93c79a4bbd9e79a49960f

COCOAPODS: 1.5.3
COCOAPODS: 1.6.0.beta.2
12 changes: 6 additions & 6 deletions Pods/Manifest.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit d5f90b5

Please sign in to comment.