Skip to content

Commit 6b007fe

Browse files
authored
Merge pull request #294 from mattrubin/tools
Update tool configuration
2 parents 0a6641d + 826378d commit 6b007fe

16 files changed

+27
-11
lines changed

.codecov.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ codecov:
77
ignore:
88
- AuthenticatorTests
99

10+
comment: off # Disable coverage comments on pull requests
11+
1012
coverage:
1113
status:
1214
project:

.swiftlint.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,16 @@ opt_in_rules:
1010
- closure_spacing
1111
- conditional_returns_on_newline
1212
- contains_over_first_not_nil
13+
- convenience_type
1314
- discouraged_object_literal
1415
- discouraged_optional_boolean
1516
- empty_count
1617
- empty_string
18+
- empty_xctest_method
1719
- explicit_enum_raw_value
1820
- explicit_init
1921
- extension_access_modifier
22+
- fallthrough
2023
- fatal_error_message
2124
- file_header
2225
- first_where
@@ -27,6 +30,8 @@ opt_in_rules:
2730
- let_var_whitespace
2831
- literal_expression_end_indentation
2932
- lower_acl_than_parent
33+
- modifier_order
34+
- multiline_function_chains
3035
- operator_usage_whitespace
3136
- overridden_super_call
3237
- override_in_extension
@@ -35,9 +40,11 @@ opt_in_rules:
3540
- private_outlet
3641
- prohibited_super_call
3742
- redundant_nil_coalescing
43+
- redundant_type_annotation
3844
- single_test_class
3945
- sorted_first_last
4046
- switch_case_on_newline
47+
- unavailable_function
4148
- untyped_error_in_catch
4249
- vertical_parameter_alignment_on_call
4350
- yoda_condition

Authenticator/Source/Colors.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Colors.swift
33
// Authenticator
44
//
5-
// Copyright (c) 2014-2017 Authenticator authors
5+
// Copyright (c) 2014-2018 Authenticator authors
66
//
77
// Permission is hereby granted, free of charge, to any person obtaining a copy
88
// of this software and associated documentation files (the "Software"), to deal
@@ -36,7 +36,7 @@ extension UIColor {
3636
)
3737
}
3838

39-
private struct OTP {
39+
private enum OTP {
4040
static let darkColor = UIColor(red: 35, green: 35, blue: 50)
4141
static let lightColor = UIColor(red: 250, green: 248, blue: 240)
4242
}

Authenticator/Source/DisplayOptionsViewController.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ final class DisplayOptionsViewController: UITableViewController {
3737
super.init(nibName: nil, bundle: nil)
3838
}
3939

40+
@available(*, unavailable)
4041
required init?(coder aDecoder: NSCoder) {
4142
fatalError("init(coder:) has not been implemented")
4243
}

Authenticator/Source/InfoListViewController.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ final class InfoListViewController: UITableViewController {
3737
super.init(nibName: nil, bundle: nil)
3838
}
3939

40+
@available(*, unavailable)
4041
required init?(coder aDecoder: NSCoder) {
4142
fatalError("init(coder:) has not been implemented")
4243
}

Authenticator/Source/InfoViewController.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// InfoViewController.swift
33
// Authenticator
44
//
5-
// Copyright (c) 2017 Authenticator authors
5+
// Copyright (c) 2017-2018 Authenticator authors
66
//
77
// Permission is hereby granted, free of charge, to any person obtaining a copy
88
// of this software and associated documentation files (the "Software"), to deal
@@ -40,6 +40,7 @@ final class InfoViewController: UIViewController, WKNavigationDelegate {
4040
super.init(nibName: nil, bundle: nil)
4141
}
4242

43+
@available(*, unavailable)
4344
required init?(coder aDecoder: NSCoder) {
4445
fatalError("init(coder:) has not been implemented")
4546
}

Authenticator/Source/QRScanner.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// QRScanner.swift
33
// Authenticator
44
//
5-
// Copyright (c) 2015-2017 Authenticator authors
5+
// Copyright (c) 2015-2018 Authenticator authors
66
//
77
// Permission is hereby granted, free of charge, to any person obtaining a copy
88
// of this software and associated documentation files (the "Software"), to deal

Authenticator/Source/RootViewController.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ class RootViewController: OpaqueNavigationController {
6767
self.viewControllers = [tokenListViewController]
6868
}
6969

70+
@available(*, unavailable)
7071
required init?(coder aDecoder: NSCoder) {
7172
fatalError("init(coder:) has not been implemented")
7273
}

Authenticator/Source/TokenFormViewController.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ final class TokenFormViewController<Form: TableViewModelRepresentable>: UITableV
5555
super.init(style: .grouped)
5656
}
5757

58+
@available(*, unavailable)
5859
required init?(coder aDecoder: NSCoder) {
5960
fatalError("init(coder:) has not been implemented")
6061
}

Authenticator/Source/TokenListViewController.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// TokenListViewController.swift
33
// Authenticator
44
//
5-
// Copyright (c) 2013-2017 Authenticator authors
5+
// Copyright (c) 2013-2018 Authenticator authors
66
//
77
// Permission is hereby granted, free of charge, to any person obtaining a copy
88
// of this software and associated documentation files (the "Software"), to deal
@@ -36,6 +36,7 @@ class TokenListViewController: UITableViewController {
3636
super.init(nibName: nil, bundle: nil)
3737
}
3838

39+
@available(*, unavailable)
3940
required init?(coder aDecoder: NSCoder) {
4041
fatalError("init(coder:) has not been implemented")
4142
}

0 commit comments

Comments
 (0)