Skip to content

Commit 4c885db

Browse files
committed
Update SwiftLint to 0.40.3
1 parent 16dd8d8 commit 4c885db

File tree

8 files changed

+8
-13
lines changed

8 files changed

+8
-13
lines changed

.swiftlint.yml

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

33
opt_in_rules:
44
- anyobject_protocol
@@ -52,6 +52,7 @@ opt_in_rules:
5252
- overridden_super_call
5353
- override_in_extension
5454
- prefer_self_type_over_type_of_self
55+
- prefer_zero_over_explicit_init
5556
- private_action
5657
- private_outlet
5758
- prohibited_super_call

Podfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ PODS:
66
- PathKit (~> 0.9.0)
77
- StencilSwiftKit (2.7.2):
88
- Stencil (~> 0.13.1)
9-
- SwiftLint (0.39.2)
9+
- SwiftLint (0.40.3)
1010
- Yams (4.0.0)
1111

1212
DEPENDENCIES:
@@ -33,7 +33,7 @@ SPEC CHECKSUMS:
3333
PathKit: 273f59a38e3218eb95abd9f6a61730a8bcfd2f06
3434
Stencil: b5128a0a43ece9225db5cbd94d6569fe6fba609b
3535
StencilSwiftKit: 9ebd42556b6c7396440f286b6c9aca1549c963ff
36-
SwiftLint: 22ccbbe3b8008684be5955693bab135e0ed6a447
36+
SwiftLint: dfd554ff0dff17288ee574814ccdd5cea85d76f7
3737
Yams: 9d49b85824751ee13d31e9ec6617c4dfb9a8c3cd
3838

3939
PODFILE CHECKSUM: f7eacff17036060bfc85488a45bd989d99e359f3

Pods/.project_cache/installation_cache.yaml

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

Pods/Manifest.lock

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

Pods/SwiftLint/swiftlint

148 KB
Binary file not shown.

Sources/SwiftGen/Commander/Path+Commander.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,12 @@ import PathKit
99

1010
// MARK: Validators
1111

12-
// swiftlint:disable opening_brace
1312
func checkPath(type: String, assertion: @escaping (Path) -> Bool) -> ((Path) throws -> Path) {
1413
{ (path: Path) throws -> Path in
1514
guard assertion(path) else { throw ArgumentError.invalidType(value: path.description, type: type, argument: nil) }
1615
return path
1716
}
1817
}
19-
// swiftlint:enable opening_brace
2018

2119
typealias PathValidator = ([Path]) throws -> ([Path])
2220
let pathsExist: PathValidator = { paths in try paths.map(checkPath(type: "path") { $0.exists }) }

Sources/SwiftGenKit/Utils/YAML.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,11 @@ private extension Constructor {
7676
}
7777

7878
private extension String {
79-
// swiftlint:disable opening_brace
8079
static func constructExpandingEnvVars(env: [String: String]) -> (_ scalar: Node.Scalar) -> String? {
8180
{ (scalar: Node.Scalar) -> String? in
8281
scalar.string.expandingEnvVars(env: env)
8382
}
8483
}
85-
// swiftlint:enable opening_brace
8684

8785
func expandingEnvVars(env: [String: String]) -> String {
8886
var result = self

Tests/TemplatesTests/ColorsTests.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ final class ColorsTests: XCTestCase {
1313
}
1414

1515
// generate variations to test customname generation
16-
// swiftlint:disable opening_brace
1716
private func variations(customName: String) -> VariationGenerator {
1817
{ name, context in
1918
guard name == "defaults" else { return [(context: context, suffix: "")] }
@@ -41,7 +40,6 @@ final class ColorsTests: XCTestCase {
4140
]
4241
}
4342
}
44-
// swiftlint:enable opening_brace
4543

4644
func testSwift4() {
4745
test(

0 commit comments

Comments
 (0)