Enable SwiftLint rule 'switch_case_on_newline' and fix all violations
This commit is contained in:
parent
79dbac4e9e
commit
1b1bd46235
3 changed files with 5 additions and 3 deletions
|
|
@ -159,7 +159,7 @@ whitelist_rules:
|
||||||
- strong_iboutlet
|
- strong_iboutlet
|
||||||
- superfluous_disable_command
|
- superfluous_disable_command
|
||||||
- switch_case_alignment
|
- switch_case_alignment
|
||||||
# - switch_case_on_newline
|
- switch_case_on_newline
|
||||||
- syntactic_sugar
|
- syntactic_sugar
|
||||||
- todo
|
- todo
|
||||||
# - toggle_bool
|
# - toggle_bool
|
||||||
|
|
|
||||||
|
|
@ -137,7 +137,8 @@ class GeneralSettingsTableViewController: BasicStaticTableViewController {
|
||||||
cell.accessoryView = accessoryView
|
cell.accessoryView = accessoryView
|
||||||
cell.selectionStyle = .none
|
cell.selectionStyle = .none
|
||||||
hidePasswordImagesSwitch.isOn = Defaults.isHidePasswordImagesOn
|
hidePasswordImagesSwitch.isOn = Defaults.isHidePasswordImagesOn
|
||||||
default: break
|
default:
|
||||||
|
break
|
||||||
}
|
}
|
||||||
return cell
|
return cell
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -132,7 +132,8 @@ class GitRepositorySettingsTableViewController: UITableViewController {
|
||||||
Utils.alert(title: "CannotSave".localize(), message: "CheckEnteredUsername.".localize(), controller: self)
|
Utils.alert(title: "CannotSave".localize(), message: "CheckEnteredUsername.".localize(), controller: self)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
case "file": break
|
case "file":
|
||||||
|
break
|
||||||
default:
|
default:
|
||||||
Utils.alert(title: "CannotSave".localize(), message: "Protocol is not supported", controller: self)
|
Utils.alert(title: "CannotSave".localize(), message: "Protocol is not supported", controller: self)
|
||||||
return
|
return
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue