Update .swiftlint.yml
This commit is contained in:
parent
f65a6b57dd
commit
3b70eff3bc
|
@ -7,6 +7,9 @@ disabled_rules:
|
|||
- file_length
|
||||
- cyclomatic_complexity
|
||||
- compiler_protocol_init
|
||||
analyzer_rules:
|
||||
- unused_declaration
|
||||
- unused_import
|
||||
excluded:
|
||||
- Carthage
|
||||
- Pods
|
||||
|
@ -79,8 +82,6 @@ opt_in_rules:
|
|||
- unavailable_function
|
||||
- unneeded_parentheses_in_closure_argument
|
||||
- untyped_error_in_catch
|
||||
- unused_import
|
||||
- unused_private_declaration
|
||||
- vertical_parameter_alignment_on_call
|
||||
# - vertical_whitespace_between_cases
|
||||
- vertical_whitespace_closing_braces
|
||||
|
|
|
@ -61,10 +61,13 @@ final class DisplayLink: NSObject {
|
|||
}
|
||||
|
||||
extension CVTimeStamp {
|
||||
@inlinable @inline(__always) var timestamp: Double {
|
||||
// swiftlint:disable attributes
|
||||
@inlinable @inline(__always)
|
||||
var timestamp: Double {
|
||||
Double(self.videoTime) / Double(self.videoTimeScale)
|
||||
}
|
||||
|
||||
// swiftlint:disable attributes
|
||||
@inlinable @inline(__always) var duration: Double {
|
||||
Double(self.videoRefreshPeriod) / Double(self.videoTimeScale)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue