Skip to content

Commit 7990826

Browse files
authored
Bump swift-format to 5.9 (#17)
Bump swift-format to 5.9 ### Motivation As per apple/swift-openapi-generator#175. ### Modifications Bumped swift-format for CI, no other changes needed. ### Result Using swift-format 5.9. ### Test Plan Soundness passed. Reviewed by: dnadoba Builds: ✔︎ pull request validation (5.10) - Build finished. ✔︎ pull request validation (5.8) - Build finished. ✔︎ pull request validation (5.9) - Build finished. ✔︎ pull request validation (nightly) - Build finished. ✔︎ pull request validation (soundness) - Build finished. #17
1 parent aceadfd commit 7990826

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Tests/OpenAPIURLSessionTests/URLSessionTransportTests.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,16 @@ class MockURLProtocol: URLProtocol {
115115

116116
static let recordedHTTPRequests = LockedValueBox<[URLRequest]>([])
117117

118+
/// Determines whether this protocol can handle the given request.
118119
override class func canInit(with request: URLRequest) -> Bool { true }
119120

121+
/// Returns a canonical version of the given request.
120122
override class func canonicalRequest(for request: URLRequest) -> URLRequest { request }
121123

124+
/// Stops protocol-specific loading of a request.
122125
override func stopLoading() {}
123126

127+
/// Starts protocol-specific loading of a request.
124128
override func startLoading() {
125129
Self.recordedHTTPRequests.withValue { $0.append(self.request) }
126130
guard let url = self.request.url else { return }

docker/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ RUN mkdir -p $HOME/.tools
1717
RUN echo 'export PATH="$HOME/.tools:$PATH"' >> $HOME/.profile
1818

1919
# swift-format
20-
ARG swiftformat_version=508.0.0
20+
ARG swiftformat_version=509.0.0
2121
RUN git clone --branch $swiftformat_version --depth 1 https://github.com/apple/swift-format $HOME/.tools/swift-format-source
2222
RUN cd $HOME/.tools/swift-format-source && swift build -c release
23-
RUN ln -s $HOME/.tools/swift-format-source/.build/release/swift-format $HOME/.tools/swift-format
23+
RUN ln -s $HOME/.tools/swift-format-source/.build/release/swift-format $HOME/.tools/swift-format

0 commit comments

Comments
 (0)