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:
- .build
closure_body_length:
warning: 20
error: 40
large_tuple:
warning: 3
error: 5
line_length:
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(
for installer: Installer,
destination destinationURL: URL?,

View file

@ -140,7 +140,7 @@ struct DownloadView: View {
private func checkForUserCancellation(_ failure: Error) -> Bool {
if let _: CancellationError = failure as? CancellationError {
if failure as? CancellationError != nil {
return true
}

View file

@ -71,7 +71,6 @@ struct InstallerListRow: View {
openPanel.accessoryView = NSHostingView(rootView: InstallerExportView(exports: $exports))
openPanel.isAccessoryViewDisclosed = true
// swiftlint:disable:next closure_body_length
Task {
let response: NSApplication.ModalResponse = openPanel.runModal()

View file

@ -13,8 +13,6 @@ class ShellExecutor: NSObject {
static var shared: ShellExecutor = ShellExecutor()
private var process: Process = Process()
// swiftlint:disable large_tuple
/// Executes custom shell commands.
///
/// - Parameters: