Fix linter warnings

This commit is contained in:
Nindi Gill 2022-12-08 12:48:27 +11:00
parent a2b3412b14
commit 704e261d39
5 changed files with 5 additions and 8 deletions

View file

@ -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

View file

@ -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?,

View file

@ -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
} }

View file

@ -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()

View file

@ -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: