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