Skip to content

Commit aadb7b0

Browse files
committed
[lint] Enable several new SwiftLint opt-in rules
1 parent 8195675 commit aadb7b0

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.swiftlint.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ opt_in_rules:
1313
- discouraged_object_literal
1414
- discouraged_optional_boolean
1515
- empty_count
16+
- empty_string
1617
- explicit_enum_raw_value
1718
- explicit_init
1819
- extension_access_modifier
@@ -25,6 +26,7 @@ opt_in_rules:
2526
- joined_default_parameter
2627
- let_var_whitespace
2728
- literal_expression_end_indentation
29+
- lower_acl_than_parent
2830
- operator_usage_whitespace
2931
- overridden_super_call
3032
- override_in_extension
@@ -36,6 +38,7 @@ opt_in_rules:
3638
- single_test_class
3739
- sorted_first_last
3840
- switch_case_on_newline
41+
- untyped_error_in_catch
3942
- vertical_parameter_alignment_on_call
4043
- yoda_condition
4144
disabled_rules:

Authenticator/Source/RootViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ private func compose<A, B, C>(_ transform: @escaping (A) -> B, _ handler: @escap
194194
}
195195

196196
extension RootViewController: UINavigationControllerDelegate {
197-
public func navigationController(_ navigationController: UINavigationController, didShow viewController: UIViewController, animated: Bool) {
197+
func navigationController(_ navigationController: UINavigationController, didShow viewController: UIViewController, animated: Bool) {
198198
if case .info(_, .some) = currentViewModel.modal,
199199
viewController is InfoListViewController {
200200
// If the view model modal state has an Info.ViewModel and the just-shown view controller is an info list,

0 commit comments

Comments
 (0)