Skip to content

Commit ff790aa

Browse files
committed
Fix lint issues
1 parent 17e9cd2 commit ff790aa

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

.swiftlint.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,7 @@ swiftlint_version: 0.53.0
22
included:
33
- Sources
44
- Tests
5+
6+
identifier_name:
7+
allowed_symbols: "_"
8+
min_length: 2

Sources/libhostmgr/Extensions/FileManager.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@ import Foundation
22
import System
33

44
protocol FileManagerProto {
5-
// swiftlint:disable identifier_name
65
func fileExists(at: URL) -> Bool
76
func directoryExists(at: URL) throws -> Bool
8-
// swiftlint:enable identifier_name
97
}
108

119
extension FileManager: FileManagerProto {

Sources/libhostmgr/Servers/CacheServer.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public struct CacheServer: ReadableRemoteFileProvider {
5555
return URL(string: "http://\(ipAddress.debugDescription)")?.appendingPathComponent(basePath)
5656
}
5757

58-
guard let hostname else{
58+
guard let hostname else {
5959
return nil
6060
}
6161

Sources/libhostmgr/VM/LaunchConfiguration.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ public struct LaunchConfiguration: Sendable, Codable {
2323
/// The VM handle – the cloned VM will use this handle, allowing multiple VMs with the same name
2424
/// to be launched and individually terminated as needed
2525
///
26-
/// If the `LaunchConfiguration` is set to "persistent", the handle will always be the same as the `name` (thus, it's
27-
/// impossible to launch two persistent VMs with the same name).
26+
/// If the `LaunchConfiguration` is set to "persistent", the handle will always be the same as the `name` (thus,
27+
/// it's impossible to launch two persistent VMs with the same name).
2828
public let handle: String
2929

3030
/// Launch the VM persistently

0 commit comments

Comments
 (0)