Skip to content

Commit

Permalink
Update SwiftLint to 0.57.0 (#132)
Browse files Browse the repository at this point in the history
Test Plan:
- Ensure all CI checks pass
  • Loading branch information
marciniwanicki authored Nov 20, 2024
1 parent 5ecfa9c commit 215fa3d
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .mise.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tools]
swiftlint = "0.54.0"
swiftlint = "0.57.0"
swiftformat = "0.53.3"

[settings]
Expand Down
1 change: 0 additions & 1 deletion Sources/CurieCore/VM/VM.swift
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ final class VM: NSObject {
}

console.text("Will stop container")
// swiftlint:disable:next identifier_name
vm.stop { [_events] error in
if let error {
_events.send(.imageStopFailed)
Expand Down
4 changes: 2 additions & 2 deletions Sources/CurieCoreTests/Interactors/PullInteractorTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ final class PullInteractorTests: XCTestCase {

func testPullPluginNotExecutable() throws {
// Given
env.fileManager.createFile(atPath: pullExecutablePath, contents: "".data(using: .utf8)!)
env.fileManager.createFile(atPath: pullExecutablePath, contents: Data("".utf8))

// When
try subject.execute(.pull(.init(reference: anyReference)))
Expand All @@ -79,7 +79,7 @@ final class PullInteractorTests: XCTestCase {

func testPullPluginSuccessCall() throws {
// Given
env.fileManager.createFile(atPath: pullExecutablePath, contents: "".data(using: .utf8)!)
env.fileManager.createFile(atPath: pullExecutablePath, contents: Data("".utf8))
try env.fileManager.markAsExecuable(atPath: pullExecutablePath)

// When
Expand Down
4 changes: 2 additions & 2 deletions Sources/CurieCoreTests/Interactors/PushInteractorTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ final class PushInteractorTests: XCTestCase {

func testPushPluginNotExecutable() throws {
// Given
env.fileManager.createFile(atPath: pushExecutablePath, contents: "".data(using: .utf8)!)
env.fileManager.createFile(atPath: pushExecutablePath, contents: Data("".utf8))

// When
try subject.execute(.push(.init(reference: anyReference)))
Expand All @@ -79,7 +79,7 @@ final class PushInteractorTests: XCTestCase {

func testPushPluginSuccessCall() throws {
// Given
env.fileManager.createFile(atPath: pushExecutablePath, contents: "".data(using: .utf8)!)
env.fileManager.createFile(atPath: pushExecutablePath, contents: Data("".utf8))
try env.fileManager.markAsExecuable(atPath: pushExecutablePath)

// When
Expand Down
4 changes: 2 additions & 2 deletions Sources/CurieCoreTests/VM/VMBundleParserTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ final class DefaultVMBundleParserTests: XCTestCase {
func testReadConfig() throws {
// Given
fileSystem.mockRead = { _ in
"""
Data("""
{
"cpuCount" : 8,
"network" : {
Expand All @@ -57,7 +57,7 @@ final class DefaultVMBundleParserTests: XCTestCase {
"bytes" : 1073741824
}
}
""".data(using: .utf8)!
""".utf8)
}

// When
Expand Down

0 comments on commit 215fa3d

Please sign in to comment.