From 915aeff168625b0f88a5810ee7ab8e9c00af671b Mon Sep 17 00:00:00 2001 From: Rick Newton-Rogers Date: Wed, 11 Dec 2024 15:32:13 +0000 Subject: [PATCH] Enable MemberImportVisibility check on all targets (#43) Enable MemberImportVisibility check on all targets. Use a standard string header and footer to bracket the new block for ease of updating in the future with scripts. --- .swiftformatignore | 1 + Package.swift | 11 +++++++++++ .../Test_AsyncHTTPClientTransport.swift | 1 + 3 files changed, 13 insertions(+) create mode 100644 .swiftformatignore diff --git a/.swiftformatignore b/.swiftformatignore new file mode 100644 index 0000000..ef0b696 --- /dev/null +++ b/.swiftformatignore @@ -0,0 +1 @@ +**Package.swift diff --git a/Package.swift b/Package.swift index ac0e6a6..6cce1a8 100644 --- a/Package.swift +++ b/Package.swift @@ -50,3 +50,14 @@ let package = Package( ), ] ) + +// --- STANDARD CROSS-REPO SETTINGS DO NOT EDIT --- // +for target in package.targets { + if target.type != .plugin { + var settings = target.swiftSettings ?? [] + // https://github.com/swiftlang/swift-evolution/blob/main/proposals/0444-member-import-visibility.md + settings.append(.enableUpcomingFeature("MemberImportVisibility")) + target.swiftSettings = settings + } +} +// --- END: STANDARD CROSS-REPO SETTINGS DO NOT EDIT --- // diff --git a/Tests/OpenAPIAsyncHTTPClientTests/Test_AsyncHTTPClientTransport.swift b/Tests/OpenAPIAsyncHTTPClientTests/Test_AsyncHTTPClientTransport.swift index 7bd9f41..8c94dd5 100644 --- a/Tests/OpenAPIAsyncHTTPClientTests/Test_AsyncHTTPClientTransport.swift +++ b/Tests/OpenAPIAsyncHTTPClientTests/Test_AsyncHTTPClientTransport.swift @@ -14,6 +14,7 @@ import XCTest import OpenAPIRuntime import NIOCore +import NIOHTTP1 import NIOPosix import AsyncHTTPClient @testable import OpenAPIAsyncHTTPClient