Skip to content

Commit 75d884b

Browse files
committed
Bump swiftlint version
1 parent 0715733 commit 75d884b

File tree

5 files changed

+5
-7
lines changed

5 files changed

+5
-7
lines changed

.swiftlint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ opt_in_rules:
3737
- trailing_closure
3838
- unneeded_parentheses_in_closure_argument
3939
- unused_import
40-
- unused_private_declaration
40+
- unused_declaration
4141
- vertical_parameter_alignment_on_call
4242
- vertical_whitespace_closing_braces
4343
- vertical_whitespace_opening_braces

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ jobs:
3838
- stage: post-tests
3939
name: lint
4040
os: osx
41+
osx_image: xcode11.1
4142
install: ./Tests/Scripts/install_dependencies.sh swiftlint
4243
before_script: skip
4344
script: ${PWD}/swiftlint/swiftlint --strict
@@ -60,4 +61,4 @@ script:
6061

6162
cache:
6263
directories:
63-
- ${LIBMONGOC_CACHE_DIR}
64+
- ${LIBMONGOC_CACHE_DIR}

Sources/MongoSwift/BSON/BSONDecoder.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,12 @@ import Foundation
22

33
/// `BSONDecoder` facilitates the decoding of BSON into semantic `Decodable` types.
44
public class BSONDecoder {
5-
// swiftlint:disable explicit_acl
6-
// some kind of swiftlint bug here.
75
@available(macOS 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
86
internal static var iso8601Formatter: ISO8601DateFormatter = {
97
let formatter = ISO8601DateFormatter()
108
formatter.formatOptions = .withInternetDateTime
119
return formatter
1210
}()
13-
// swiftlint:enable explicit_acl
1411

1512
/// Enum representing the various strategies for decoding `Date`s from BSON.
1613
///

Sources/MongoSwift/SDAM.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ public struct TopologyDescription {
265265
/// or `nil` if any of them are `nil`.
266266
public var logicalSessionTimeoutMinutes: Int64? {
267267
let timeoutValues = self.servers.map { $0.logicalSessionTimeoutMinutes }
268-
if timeoutValues.contains (where: { $0 == nil }) {
268+
if timeoutValues.contains(where: { $0 == nil }) {
269269
return nil
270270
}
271271
return timeoutValues.compactMap { $0 }.min()

Tests/Scripts/install_dependencies.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ then
4545

4646
elif [[ $1 = "swiftlint" ]]
4747
then
48-
install_from_gh swiftlint https://github.com/realm/SwiftLint/releases/download/0.32.0/portable_swiftlint.zip
48+
install_from_gh swiftlint https://github.com/realm/SwiftLint/releases/download/0.35.0/portable_swiftlint.zip
4949

5050
else
5151
echo Missing/unknown install option: "$1"

0 commit comments

Comments
 (0)