sabirvirtuoso/Kraken

View on GitHub
Example/Tests/Utils.swift

Summary

Maintainability
A
35 mins
Test Coverage

Function AssertThrows has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

func AssertThrows<T>(_ file: StaticString = #file, line: UInt = #line, expression: @autoclosure () throws -> T, checkError: (Error) -> Bool, _ message: String) {
Severity: Minor
Found in Example/Tests/Utils.swift - About 35 mins to fix

    Function names should be lowerCamelCase
    Open

    func AssertThrows<T>(_ file: StaticString = #file, line: UInt = #line, expression: @autoclosure () throws -> T, checkError: (Error) -> Bool, _ message: String) {
    Severity: Minor
    Found in Example/Tests/Utils.swift by tailor

    lower-camel-case

    method and var names should follow lowerCamelCase naming convention: first letter of the entire word is lowercase, but subsequent first letters are uppercase.

    Method and selector names

    Preferred

    func someMethod() {
        // method definition goes here
    }

    Not Preferred

    func some-method() {
        // method definition goes here
    }

    Variable names

    Preferred

    var someVariable = someValue

    Not Preferred

    var Some_Var1able = someValue

    Function names should be lowerCamelCase
    Open

    func AssertThrows<T>(_ file: StaticString = #file, line: UInt = #line, expression: @autoclosure () throws -> T) {
    Severity: Minor
    Found in Example/Tests/Utils.swift by tailor

    lower-camel-case

    method and var names should follow lowerCamelCase naming convention: first letter of the entire word is lowercase, but subsequent first letters are uppercase.

    Method and selector names

    Preferred

    func someMethod() {
        // method definition goes here
    }

    Not Preferred

    func some-method() {
        // method definition goes here
    }

    Variable names

    Preferred

    var someVariable = someValue

    Not Preferred

    var Some_Var1able = someValue

    Function names should be lowerCamelCase
    Open

    func AssertThrows<T>(_ file: StaticString = #file, line: UInt = #line, expression: @autoclosure () throws -> T, checkError: (Error) -> Bool) {
    Severity: Minor
    Found in Example/Tests/Utils.swift by tailor

    lower-camel-case

    method and var names should follow lowerCamelCase naming convention: first letter of the entire word is lowercase, but subsequent first letters are uppercase.

    Method and selector names

    Preferred

    func someMethod() {
        // method definition goes here
    }

    Not Preferred

    func some-method() {
        // method definition goes here
    }

    Variable names

    Preferred

    var someVariable = someValue

    Not Preferred

    var Some_Var1able = someValue

    Function names should be lowerCamelCase
    Open

    func AssertThrows<T>(_ file: StaticString = #file, line: UInt = #line, expression: @autoclosure () throws -> T, _ message: String) {
    Severity: Minor
    Found in Example/Tests/Utils.swift by tailor

    lower-camel-case

    method and var names should follow lowerCamelCase naming convention: first letter of the entire word is lowercase, but subsequent first letters are uppercase.

    Method and selector names

    Preferred

    func someMethod() {
        // method definition goes here
    }

    Not Preferred

    func some-method() {
        // method definition goes here
    }

    Variable names

    Preferred

    var someVariable = someValue

    Not Preferred

    var Some_Var1able = someValue

    There are no issues that match your filters.

    Category
    Status