Skip to content

Commit

Permalink
Fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
pepicrft committed Dec 3, 2023
1 parent 6fa265a commit 9c2a9e5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .swiftformat
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# file options

--symlinks ignore
--exclude Tests/XCTestManifests.swift,features,Sources/TuistSupport/Vendored,fixtures/Targets/SlothCreator,Sources/TuistAutomation/XcodeBuild/XcodeBuildController.swift
--exclude Package.swift
--exclude fixtures/tuist_plugin
--disable hoistAwait
--disable hoistTry
Expand Down
4 changes: 4 additions & 0 deletions Sources/Path/Path.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1024,18 +1024,21 @@ extension AbsolutePath {
@_disfavoredOverload
@available(*, deprecated, message: "use throwing `init(validating:)` variant instead")
public init(_ absStr: String) {
// swiftlint:disable:next force_try
try! self.init(validating: absStr)
}

@_disfavoredOverload
@available(*, deprecated, message: "use throwing `init(validating:relativeTo:)` variant instead")
public init(_ str: String, relativeTo basePath: AbsolutePath) {
// swiftlint:disable:next force_try
try! self.init(validating: str, relativeTo: basePath)
}

@_disfavoredOverload
@available(*, deprecated, message: "use throwing variant instead")
public init(_ absPath: AbsolutePath, _ relStr: String) {
// swiftlint:disable:next force_try
try! self.init(absPath, validating: relStr)
}
}
Expand All @@ -1046,6 +1049,7 @@ extension RelativePath {
@_disfavoredOverload
@available(*, deprecated, message: "use throwing variant instead")
public init(_ string: String) {
// swiftlint:disable:next force_try
try! self.init(validating: string)
}
}

0 comments on commit 9c2a9e5

Please sign in to comment.