Skip to content

Commit

Permalink
more linting
Browse files Browse the repository at this point in the history
  • Loading branch information
tominsam committed Dec 21, 2020
1 parent 3cfc3cc commit 25f0c94
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 20 deletions.
4 changes: 4 additions & 0 deletions .swiftlint.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
disabled_rules:
- trailing_comma
- inclusive_language
- function_body_length
- line_length
- identifier_name
2 changes: 1 addition & 1 deletion flametouch/CustomSplitViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class CustomSplitViewController: UISplitViewController {

override var delegate: UISplitViewControllerDelegate? {
get { return self }
set { fatalError() }
set { fatalError(String(describing: newValue)) }
}

init() {
Expand Down
2 changes: 0 additions & 2 deletions flametouch/DetailViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,9 @@ class DetailViewController: UIViewController, UITableViewDataSource, UITableView
case 0:
cell.title = core[indexPath.row].key
cell.right = core[indexPath.row].value
break
case 1:
cell.title = txtData[indexPath.row].key
cell.right = txtData[indexPath.row].value
break
default:
break
}
Expand Down
22 changes: 7 additions & 15 deletions flametouch/ServiceGroup.swift
Original file line number Diff line number Diff line change
Expand Up @@ -50,31 +50,23 @@ class ServiceGroup: NSObject {
}

var title: String {
get {
return ServiceName.nameForServiceGroup(self)
}
return ServiceName.nameForServiceGroup(self)
}

var address: String {
get {
return addresses.first ?? "."
}
return addresses.first ?? "."
}

var subTitle: String {
get {
if services.count > 1 {
return "\(address) (\(services.count) services)"
} else {
return "\(address) (One service)"
}
if services.count > 1 {
return "\(address) (\(services.count) services)"
} else {
return "\(address) (One service)"
}
}

override var description: String {
get {
return "<ServiceGroup \(title) \(addresses) (\(services))>"
}
return "<ServiceGroup \(title) \(addresses) (\(services))>"
}

func matches(_ filter: String) -> Bool {
Expand Down
2 changes: 0 additions & 2 deletions flametouch/WirelessDetect.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
//

import Foundation
import SystemConfiguration
import SystemConfiguration.CaptiveNetwork
import aiReachability

class WirelessDetect {
Expand Down

0 comments on commit 25f0c94

Please sign in to comment.