feat: changed function_body_length swiftlint rule from 60/80 to 80/100

This commit is contained in:
Serhiy Mytrovtsiy
2022-04-02 12:45:41 +02:00
parent 41a4dd6385
commit 6fb2c9b11b
7 changed files with 1 additions and 7 deletions

View File

@@ -37,8 +37,8 @@ identifier_name:
line_length: 200
function_body_length:
- 60
- 80
- 100
type_body_length:
- 300

View File

@@ -120,7 +120,6 @@ public class LineChart: WidgetWrapper {
fatalError("init(coder:) has not been implemented")
}
// swiftlint:disable function_body_length
public override func draw(_ dirtyRect: NSRect) {
super.draw(dirtyRect)

View File

@@ -25,7 +25,6 @@ public enum widget_t: String {
case label = "label"
case tachometer = "tachometer"
// swiftlint:disable function_body_length
public func new(module: String, config: NSDictionary, defaultWidget: widget_t) -> Widget? {
var image: NSImage? = nil
var preview: widget_p? = nil

View File

@@ -137,7 +137,6 @@ public class NetworkChartView: NSView {
fatalError("init(coder:) has not been implemented")
}
// swiftlint:disable function_body_length
public override func draw(_ dirtyRect: NSRect) {
super.draw(dirtyRect)

View File

@@ -37,7 +37,6 @@ internal class LoadReader: Reader<CPU_Load> {
}
}
// swiftlint:disable function_body_length
public override func read() {
let result: kern_return_t = host_processor_info(mach_host_self(), PROCESSOR_CPU_LOAD_INFO, &self.numCPUsU, &self.cpuInfo, &self.numCpuInfo)
if result == KERN_SUCCESS {

View File

@@ -322,7 +322,6 @@ public class ProcessReader: Reader<[Network_Process]> {
self.popup = true
}
// swiftlint:disable function_body_length
public override func read() {
if self.numberOfProcesses == 0 {
return

View File

@@ -49,7 +49,6 @@ enum FlagsType: String {
}
}
// swiftlint:disable function_body_length
func main() {
var args = CommandLine.arguments.dropFirst()
let cmd = CMDType(value: args.first ?? "")