Enable MemberImportVisibility check on all targets (#211)

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.
This commit is contained in:
Rick Newton-Rogers authored and GitHub committed 2024-12-11 14:50:22 +00:00
1 parent 14e5b05d67
commit 62da4e684d
3 files changed
+13

No files matched your search

+11
View File
@@ -90,3 +90,14 @@ if ProcessInfo.processInfo.environment["SWIFTCI_USE_LOCAL_DEPS"] == nil {
.package(path: "../swift-asn1"),
]
}
// --- 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 --- //
@@ -13,6 +13,7 @@
//===----------------------------------------------------------------------===//
import XCTest
import SwiftASN1
import X509
final class ExtendedKeyUsageTests: XCTestCase {
@@ -13,6 +13,7 @@
//===----------------------------------------------------------------------===//
import XCTest
import SwiftASN1
import X509
final class ExtensionBuilderTests: XCTestCase {