jemmons/BagOfTricks

View on GitHub

Showing 104 of 104 total issues

Computed read-only properties should avoid using the get keyword.
Open

    get {

Three lines between top-level items.
Open

}

There must be two or zero lines between second-level items.
Open

  private var yIt: Y.Iterator

There must be two or zero lines between second-level items.
Open

  private let ys: Y

Three lines between top-level items.
Open

}

Computed read-only properties should avoid using the get keyword.
Open

    get {

Opening braces should be preceded by a single space and on the same line as the declaration.
Open

  public var isNotEmpty: Bool{

Return arrow and return type should be separated by a single space or on a separate line.
Open

public func map<FromValue, ToValue>(_ completion: @escaping (Result<ToValue, Error>)->Void, transform: @escaping (FromValue)->ToValue) -> (Result<FromValue, Error>)->Void {

Opening braces should be preceded by a single space and on the same line as the declaration.
Open

    self.merge(newDictionary){ $1 }

Three lines between top-level items.
Open

import PackageDescription
Severity: Minor
Found in Package.swift by swiftlint

Colons should be next to the identifier when specifying a type and next to the key in dictionary literals.
Open

public func given<T>(_ object:T, with: (_:T)->Void)->T{

Return arrow and return type should be separated by a single space or on a separate line.
Open

  private let binding: (Object, Value)->Void

Colons should be next to the identifier when specifying a type and next to the key in dictionary literals.
Open

private var _timebaseInfo: mach_timebase_info = mach_timebase_info(numer:0, denom:0)

Return arrow and return type should be separated by a single space or on a separate line.
Open

  private let factory: ()->T?

Expected space after comment.
Open

//}

Limit vertical whitespace to maximum 3 empty lines. Currently 4.
Open

Return arrow and return type should be separated by a single space or on a separate line.
Open

public func with<T, U>(_ first: T, _ second: U, perform: (_:T, _:U)->Void) {

Computed read-only properties should avoid using the get keyword.
Open

    get {

Three lines between top-level items.
Open

infix operator ==* : ComparisonPrecedence

Implicitly unwrapped optionals should be avoided when possible.
Open

    public let value: String!
Severity
Category
Status
Source
Language