Skip to content

Commit 3f83ef7

Browse files
authored
Enable MemberImportVisibility check on all targets (#694)
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 5dd8d18 commit 3f83ef7

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

.swiftformatignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
Tests/OpenAPIGeneratorReferenceTests/Resources
22
Sources/swift-openapi-generator/Documentation.docc
33
Examples/**/Generated/*
4-
Examples/**/GeneratedSources/*
4+
Examples/**/GeneratedSources/*
5+
**Package.swift

Package.swift

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,3 +147,14 @@ let package = Package(
147147
),
148148
]
149149
)
150+
151+
// --- STANDARD CROSS-REPO SETTINGS DO NOT EDIT --- //
152+
for target in package.targets {
153+
if target.type != .plugin {
154+
var settings = target.swiftSettings ?? []
155+
// https://github.com/swiftlang/swift-evolution/blob/main/proposals/0444-member-import-visibility.md
156+
settings.append(.enableUpcomingFeature("MemberImportVisibility"))
157+
target.swiftSettings = settings
158+
}
159+
}
160+
// --- END: STANDARD CROSS-REPO SETTINGS DO NOT EDIT --- //

0 commit comments

Comments
 (0)