Skip to content

Commit

Permalink
More older APIs for Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmassicotte committed Oct 23, 2023
1 parent 3911a09 commit 1e61f6b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Sources/clitool/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ extension XCLintCommand {
return URL(fileURLWithPath: path, isDirectory: false)
}

let defaultURL = projectRootURL.deletingLastPathComponent().appending(component: ".xclint.yml")
let path = defaultURL.path(percentEncoded: true)
let defaultURL = projectRootURL.deletingLastPathComponent().appendingPathComponent(".xclint.yml", isDirectory: false)
let path = defaultURL.path

guard FileManager.default.isReadableFile(atPath: path) else {
return nil
Expand Down
8 changes: 4 additions & 4 deletions Tests/XCLintTests/EmbeddedBuildSettingsRuleTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ extension Bundle {
let resourceURL = try XCTUnwrap(bundle.resourceURL)

return resourceURL
.appending(component: "TestData")
.appending(component: named)
.appendingPathComponent("TestData", isDirectory: true)
.appendingPathComponent(named)
.standardizedFileURL
}
}
Expand All @@ -20,7 +20,7 @@ final class EmbeddedBuildSettingsRuleTests: XCTestCase {
func testProjectWithBuildSettings() throws {
let url = try Bundle.module.testDataURL(named: "StockMacOSApp.xcodeproj")

let project = try XcodeProj(pathString: url.path(percentEncoded: false))
let project = try XcodeProj(pathString: url.path)

let rules = XCLinter.defaultRules

Expand All @@ -38,7 +38,7 @@ final class EmbeddedBuildSettingsRuleTests: XCTestCase {
func testProjectWithBuildSettingsRemoved() throws {
let url = try Bundle.module.testDataURL(named: "BuildSettingsRemoved.xcodeproj")

let project = try XcodeProj(pathString: url.path(percentEncoded: false))
let project = try XcodeProj(pathString: url.path)

let rules = XCLinter.defaultRules

Expand Down

0 comments on commit 1e61f6b

Please sign in to comment.