jemmons/BagOfTricks

View on GitHub

Showing 104 of 104 total issues

Files should have a single trailing newline.
Open

Three lines between top-level items.
Open

}

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

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

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

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

Operators should be surrounded by a single whitespace when defining them.
Open

public func ==*(lhs: String?, rhs: String?) -> Bool {

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

  public init(binding: @escaping (Object, Value)->Void) {

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

  private let factory: ()->T?

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

  public var isNotEmpty:Bool{

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

  public static func + (lhs:[Key:Value], rhs:[Key:Value]) -> [Key:Value]{

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

  public typealias Iterator = CartesianProductIterator<X.Iterator, Y>

Attributes should be on their own lines in functions and types, but on the same line as variables and imports.
Open

  @objc func debounceTimeUp() {

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

extension Sequence where Iterator.Element : Equatable {

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

extension String{

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

extension Dictionary{

Three lines between top-level items.
Open

// The swift-tools-version declares the minimum version of Swift required to build this package.
Severity: Minor
Found in Package.swift by swiftlint

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

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

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

  private static let validCharacters: Set<Character> = validFirstCharacters.union(["+", "-", ".", "1", "2", "3", "4", "5", "6", "7", "8", "9", "0"])

Expected space after comment.
Open

//@propertyWrapper

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

  public var maybeBlank:String?{

Expected space after comment.
Open

    //We short circuit this becasue otherwise we'd have to grow the stack to the size of `xIt` before we find out there's no `next`.
Severity
Category
Status
Source
Language