From e02586b7f4be64c19ef6c1b65b18f513c8c3a703 Mon Sep 17 00:00:00 2001 From: Serhiy Mytrovtsiy Date: Tue, 4 Oct 2022 21:45:40 +0200 Subject: [PATCH] feat: changed swiftlint rules for body and file length --- .swiftlint.yml | 8 ++++---- Kit/Widgets/Battery.swift | 2 +- Modules/Net/popup.swift | 1 - Modules/Sensors/popup.swift | 1 - 4 files changed, 5 insertions(+), 7 deletions(-) diff --git a/.swiftlint.yml b/.swiftlint.yml index d4f4f93b..6a730adf 100644 --- a/.swiftlint.yml +++ b/.swiftlint.yml @@ -41,9 +41,9 @@ function_body_length: - 100 type_body_length: - - 300 - - 400 + - 450 + - 600 file_length: - - 800 - - 1000 \ No newline at end of file + - 1200 + - 1600 \ No newline at end of file diff --git a/Kit/Widgets/Battery.swift b/Kit/Widgets/Battery.swift index a4ad1ddc..f8470b85 100644 --- a/Kit/Widgets/Battery.swift +++ b/Kit/Widgets/Battery.swift @@ -8,7 +8,7 @@ // // Copyright © 2020 Serhiy Mytrovtsiy. All rights reserved. // -// swiftlint:disable function_body_length type_body_length +// swiftlint:disable function_body_length import Cocoa diff --git a/Modules/Net/popup.swift b/Modules/Net/popup.swift index 0464a959..57a79f3f 100644 --- a/Modules/Net/popup.swift +++ b/Modules/Net/popup.swift @@ -12,7 +12,6 @@ import Cocoa import Kit -// swiftlint:disable type_body_length internal class Popup: NSStackView, Popup_p { public var sizeCallback: ((NSSize) -> Void)? = nil diff --git a/Modules/Sensors/popup.swift b/Modules/Sensors/popup.swift index 5f2965aa..1510d458 100644 --- a/Modules/Sensors/popup.swift +++ b/Modules/Sensors/popup.swift @@ -8,7 +8,6 @@ // // Copyright © 2020 Serhiy Mytrovtsiy. All rights reserved. // -// swiftlint:disable file_length import Cocoa import Kit