Skip to content

Commit

Permalink
Fix rest of the swiftlint violations
Browse files Browse the repository at this point in the history
Signed-off-by: Adin Cebic <[email protected]>
  • Loading branch information
adincebic committed Jun 21, 2024
1 parent b9457c5 commit 165fbd3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ struct XCWorkspaceData: Decodable {
let name: String
let location: String
var fileReferences: [FileRef] {
_fileReferences.map {
let newLocation = $0.location.replacingOccurrences(of: "group:", with: "\(name)/")
_fileReferences.map { fileRef in
let newLocation = fileRef.location.replacingOccurrences(of: "group:", with: "\(name)/")
let newFileRef = FileRef(location: newLocation)
return newFileRef
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ public struct XcodeWorkspaceParserLive: XcodeWorkspaceParser {

private extension XcodeWorkspaceParserLive {
func localSwiftPackages(in workspace: XCWorkspaceData, atSourceRoot sourceRoot: URL) throws -> [SwiftPackage] {
let fileReferences = workspace.groups.flatMap {
$0.fileReferences
let fileReferences = workspace.groups.flatMap { group in
group.fileReferences
}
return try fileReferences.compactMap { fileReference in
guard let packageSwiftFileURL = fileReference.potentialPackageSwiftFileURL(forSourceRoot: sourceRoot) else {
Expand All @@ -54,7 +54,7 @@ private extension XcodeWorkspaceParserLive {
enum XcodeWorkspaceParsingError: Error {
case xcodeProjectNotFound

var localizedDescription: String {
var errorDescription: String {
return "Could not derive location of the Xcode project file from the given workspace."
}
}
Expand Down

This file was deleted.

This file was deleted.

0 comments on commit 165fbd3

Please sign in to comment.