Skip to content

Commit e056916

Browse files
committed
Update SwiftLint
1 parent 77cdbc5 commit e056916

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

.swiftlint.yml

+2
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@ disabled_rules:
55
- nesting
66
- opening_brace
77
- valid_docs
8+
trailing_comma:
9+
mandatory_comma: true

Example/main.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ private let kClockWidth = 26
66
private let kPositionOffsetByBit = [(1, 1), (1, 0), (2, 0), (2, 1), (2, 3), (1, 3), (0, 1)]
77
private let kLEDDigits: [Int32] = [
88
0b1111110, 0b0110000, 0b1101101, 0b1111001, 0b0110011,
9-
0b1011011, 0b1011111, 0b1110000, 0b1111111, 0b1111011
9+
0b1011011, 0b1011111, 0b1110000, 0b1111111, 0b1111011,
1010
]
1111

1212
private struct Curses {

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ install-tvOS:
1111

1212
install-lint:
1313
brew remove swiftlint --force || true
14-
brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/3d0cc175398ceba2c42204b04dd2a3b5d79536d9/Formula/swiftlint.rb
14+
brew install --force-bottle https://raw.githubusercontent.com/Homebrew/homebrew-core/c4fdf3db8d45d16b7bb824a974d8fa65f445d75f/Formula/swiftlint.rb
1515

1616
# Run Tasks
1717

Sources/Data+Bytes.swift

-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ extension Data {
5656
return bigEndian ? data.bigEndian : data.littleEndian
5757
}
5858

59-
6059
/// Appends the given byte (8 bits) into the receiver Data.
6160
///
6261
/// - parameter data: The byte to be appended.

Sources/NSTimer+ClosureKit.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ final class BlockTimer: NSObject {
2222
///
2323
/// - returns: A new NSTimer object, configured according to the specified parameters.
2424
class func scheduledTimer(withTimeInterval interval: TimeInterval, repeated: Bool = false,
25-
handler: @escaping CKTimerHandler) -> Timer
25+
handler: @escaping CKTimerHandler) -> Timer
2626
{
2727
return Timer.scheduledTimer(timeInterval: interval, target: self,
2828
selector: #selector(BlockTimer.invokeFrom(timer:)),

Sources/NTPClient.swift

+3-3
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ final class NTPClient {
2525
/// - parameter timeout: The individual timeout for each of the NTP operations.
2626
/// - parameter completion: A closure that will be response PDU on success or nil on error.
2727
func query(pool: String = "time.apple.com", version: Int8 = 3, port: Int = 123,
28-
numberOfSamples: Int = kDefaultSamples, maximumServers: Int = kMaximumNTPServers,
29-
timeout: CFTimeInterval = kDefaultTimeout,
30-
progress: @escaping (TimeInterval?, Int, Int) -> Void)
28+
numberOfSamples: Int = kDefaultSamples, maximumServers: Int = kMaximumNTPServers,
29+
timeout: CFTimeInterval = kDefaultTimeout,
30+
progress: @escaping (TimeInterval?, Int, Int) -> Void)
3131
{
3232
var servers: [InternetAddress: [NTPPacket]] = [:]
3333
var completed: Int = 0

Tests/KronosTests/ClockTests.swift

-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ final class ClockTests: XCTestCase {
3636
first: { _ in lastExpectation.fulfill() },
3737
completion: { _ in firstExpectation.fulfill() })
3838

39-
4039
self.waitForExpectations(timeout: 10) { _ in }
4140
}
4241
}

0 commit comments

Comments
 (0)