Skip to content

Commit 97ca35d

Browse files
authored
Enable MemberImportVisibility check on all targets (#62)
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.
1 parent 1f1a02e commit 97ca35d

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.swiftformatignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
**Package.swift

Package.swift

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,14 @@ let package = Package(
5858

5959
// Test-only dependencies.
6060
package.dependencies += [.package(url: "https://github.com/apple/swift-nio", from: "2.62.0")]
61+
62+
// --- STANDARD CROSS-REPO SETTINGS DO NOT EDIT --- //
63+
for target in package.targets {
64+
if target.type != .plugin {
65+
var settings = target.swiftSettings ?? []
66+
// https://github.com/swiftlang/swift-evolution/blob/main/proposals/0444-member-import-visibility.md
67+
settings.append(.enableUpcomingFeature("MemberImportVisibility"))
68+
target.swiftSettings = settings
69+
}
70+
}
71+
// --- END: STANDARD CROSS-REPO SETTINGS DO NOT EDIT --- //

0 commit comments

Comments
 (0)