Showing 104 of 104 total issues
Operators should be surrounded by a single whitespace when they are being used. Open
Open
public init(threshold: TimeInterval, refractoryPeriod: TimeInterval? = 1, perform: @escaping ()->Void) {
- Exclude checks
Return arrow and return type should be separated by a single space or on a separate line. Open
Open
public func flatMap<FromValue, ToValue>(_ completion: @escaping (Result<ToValue, Error>)->Void, transform: @escaping (FromValue)throws->ToValue) -> (Result<FromValue, Error>)->Void {
- Exclude checks
Colons should be next to the identifier when specifying a type and next to the key in dictionary literals. Open
Open
public static func + (lhs:[Key:Value], rhs:[Key:Value]) -> [Key:Value]{
- Exclude checks
Top-level declarations should specify Access Control Level keywords explicitly. Open
Open
let package = Package(
- Exclude checks
Three lines between top-level items. Open
Open
}
- Exclude checks
Return arrow and return type should be separated by a single space or on a separate line. Open
Open
private let handler: ()->Void
- Exclude checks
Operators should be surrounded by a single whitespace when they are being used. Open
Open
print("\n⏱\(name): \(nanoInterval/1_000_000_000.0)s\n")
- Exclude checks
Return arrow and return type should be separated by a single space or on a separate line. Open
Open
public init(factory: @escaping ()->T?) {
- Exclude checks
Colons should be next to the identifier when specifying a type and next to the key in dictionary literals. Open
Open
public static func + (lhs:[Key:Value], rhs:[Key:Value]) -> [Key:Value]{
- Exclude checks
Return arrow and return type should be separated by a single space or on a separate line. Open
Open
public init(factory: @escaping ()->T) {
- Exclude checks
Force tries should be avoided. Open
Open
try! self.init(fraction.clamp(to: 0...1))
- Exclude checks
Operators should be surrounded by a single whitespace when they are being used. Open
Open
private let factory: ()->T?
- Exclude checks
Three lines between top-level items. Open
Open
}
- Exclude checks
Expected space after comment. Open
Open
//public struct Forgetful<Value> {
- Exclude checks
Return arrow and return type should be separated by a single space or on a separate line. Open
Open
public func map<FromValue, ToValue>(_ completion: @escaping (Result<ToValue, Error>)->Void, transform: @escaping (FromValue)->ToValue) -> (Result<FromValue, Error>)->Void {
- Exclude checks
Files should have a single trailing newline. Open
Open
- Exclude checks
There must be two or zero lines between second-level items. Open
Open
private var maybe: MaybeMemo<T>
- Exclude checks
Three lines between top-level items. Open
Open
import Foundation
- Exclude checks
Three lines between top-level items. Open
Open
}
- Exclude checks
Operators should be surrounded by a single whitespace when they are being used. Open
Open
public init(factory: @escaping ()->T?) {
- Exclude checks