Skip to content

Commit

Permalink
Enable MemberImportVisibility check on all targets (#43)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
rnro authored Dec 11, 2024
1 parent 36da108 commit 915aeff
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions .swiftformatignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
**Package.swift
11 changes: 11 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 --- //
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import XCTest
import OpenAPIRuntime
import NIOCore
import NIOHTTP1
import NIOPosix
import AsyncHTTPClient
@testable import OpenAPIAsyncHTTPClient
Expand Down

0 comments on commit 915aeff

Please sign in to comment.