Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump swift-format to 5.9 #17

Merged
merged 3 commits into from
Oct 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Tests/OpenAPIURLSessionTests/URLSessionTransportTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,16 @@ class MockURLProtocol: URLProtocol {

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

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

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

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

/// Starts protocol-specific loading of a request.
override func startLoading() {
Self.recordedHTTPRequests.withValue { $0.append(self.request) }
guard let url = self.request.url else { return }
Expand Down
4 changes: 2 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ RUN mkdir -p $HOME/.tools
RUN echo 'export PATH="$HOME/.tools:$PATH"' >> $HOME/.profile

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