-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
eef8193
commit 46e50b6
Showing
7 changed files
with
105 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
.DS_Store | ||
/.build | ||
/Packages | ||
xcuserdata/ | ||
DerivedData/ | ||
.swiftpm/configuration/registries.json | ||
.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata | ||
.netrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
{ | ||
"pins" : [ | ||
{ | ||
"identity" : "aexml", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/tadija/AEXML.git", | ||
"state" : { | ||
"revision" : "38f7d00b23ecd891e1ee656fa6aeebd6ba04ecc3", | ||
"version" : "4.6.1" | ||
} | ||
}, | ||
{ | ||
"identity" : "pathkit", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/kylef/PathKit.git", | ||
"state" : { | ||
"revision" : "3bfd2737b700b9a36565a8c94f4ad2b050a5e574", | ||
"version" : "1.0.1" | ||
} | ||
}, | ||
{ | ||
"identity" : "spectre", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/kylef/Spectre.git", | ||
"state" : { | ||
"revision" : "26cc5e9ae0947092c7139ef7ba612e34646086c7", | ||
"version" : "0.10.1" | ||
} | ||
}, | ||
{ | ||
"identity" : "xcconfig", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/mattmassicotte/XCConfig", | ||
"state" : { | ||
"branch" : "main", | ||
"revision" : "26059718eab7a4fa723dd75cde45cf099d3e75a8" | ||
} | ||
}, | ||
{ | ||
"identity" : "xcodeproj", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/tuist/XcodeProj", | ||
"state" : { | ||
"revision" : "3797181813ee963fe305d939232bc576d23ddbb0", | ||
"version" : "8.15.0" | ||
} | ||
} | ||
], | ||
"version" : 2 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// swift-tools-version: 5.9 | ||
|
||
import PackageDescription | ||
|
||
let package = Package( | ||
name: "XCLint", | ||
platforms: [.macOS(.v13)], | ||
products: [ | ||
.executable(name: "xclint", targets: ["clitool"]), | ||
// I'd prefer to name this "XCLint", but it seems like Xcode cannot handle two products with the same name, even if they differ in case | ||
.library(name: "XCLinting", targets: ["XCLinting"]), | ||
], | ||
dependencies: [ | ||
.package(url: "https://github.com/tuist/XcodeProj", from: "8.15.0"), | ||
.package(url: "https://github.com/mattmassicotte/XCConfig", branch: "main"), | ||
], | ||
targets: [ | ||
.executableTarget(name: "clitool", dependencies: ["XCLinting"]), | ||
.target(name: "XCLinting", dependencies: ["XCConfig", "XcodeProj"]), | ||
.testTarget(name: "XCLintTests", dependencies: ["XCLinting"]), | ||
|
||
] | ||
) | ||
|
||
let swiftSettings: [SwiftSetting] = [ | ||
.enableExperimentalFeature("StrictConcurrency") | ||
] | ||
|
||
for target in package.targets { | ||
var settings = target.swiftSettings ?? [] | ||
settings.append(contentsOf: swiftSettings) | ||
target.swiftSettings = settings | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
public struct XCLintThing { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
// The Swift Programming Language | ||
// https://docs.swift.org/swift-book | ||
|
||
print("Hello, world!") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import XCTest | ||
import XCLint | ||
|
||
final class XCLintTests: XCTestCase { | ||
func testExample() throws { | ||
} | ||
} |