mirror of
https://github.com/ninxsoft/Mist.git
synced 2025-05-13 06:34:44 -04:00
Fix linter warnings
This commit is contained in:
parent
a2b3412b14
commit
704e261d39
5 changed files with 5 additions and 8 deletions
|
@ -1,9 +1,9 @@
|
||||||
excluded:
|
excluded:
|
||||||
- .build
|
- .build
|
||||||
|
|
||||||
closure_body_length:
|
large_tuple:
|
||||||
warning: 20
|
warning: 3
|
||||||
error: 40
|
error: 5
|
||||||
|
|
||||||
line_length:
|
line_length:
|
||||||
warning: 200
|
warning: 200
|
||||||
|
|
|
@ -127,7 +127,7 @@ class TaskManager: ObservableObject {
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
// swiftlint:disable:next function_parameter_count
|
// swiftlint:disable:next function_body_length function_parameter_count
|
||||||
static func taskGroups(
|
static func taskGroups(
|
||||||
for installer: Installer,
|
for installer: Installer,
|
||||||
destination destinationURL: URL?,
|
destination destinationURL: URL?,
|
||||||
|
|
|
@ -140,7 +140,7 @@ struct DownloadView: View {
|
||||||
|
|
||||||
private func checkForUserCancellation(_ failure: Error) -> Bool {
|
private func checkForUserCancellation(_ failure: Error) -> Bool {
|
||||||
|
|
||||||
if let _: CancellationError = failure as? CancellationError {
|
if failure as? CancellationError != nil {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -71,7 +71,6 @@ struct InstallerListRow: View {
|
||||||
openPanel.accessoryView = NSHostingView(rootView: InstallerExportView(exports: $exports))
|
openPanel.accessoryView = NSHostingView(rootView: InstallerExportView(exports: $exports))
|
||||||
openPanel.isAccessoryViewDisclosed = true
|
openPanel.isAccessoryViewDisclosed = true
|
||||||
|
|
||||||
// swiftlint:disable:next closure_body_length
|
|
||||||
Task {
|
Task {
|
||||||
let response: NSApplication.ModalResponse = openPanel.runModal()
|
let response: NSApplication.ModalResponse = openPanel.runModal()
|
||||||
|
|
||||||
|
|
|
@ -13,8 +13,6 @@ class ShellExecutor: NSObject {
|
||||||
static var shared: ShellExecutor = ShellExecutor()
|
static var shared: ShellExecutor = ShellExecutor()
|
||||||
private var process: Process = Process()
|
private var process: Process = Process()
|
||||||
|
|
||||||
// swiftlint:disable large_tuple
|
|
||||||
|
|
||||||
/// Executes custom shell commands.
|
/// Executes custom shell commands.
|
||||||
///
|
///
|
||||||
/// - Parameters:
|
/// - Parameters:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue