IBM-Swift/Kitura

View on GitHub
Sources/Kitura/contentType/ContentType.swift

Summary

Maintainability
A
30 mins
Test Coverage

Avoid too many return statements within this function.
Open

        return false
Severity: Major
Found in Sources/Kitura/contentType/ContentType.swift - About 30 mins to fix

    TODO found
    Open

                // TODO: +json?

    TODO comments should be formatted either as <todo: description> or <todo description></todo></todo:>
    Open

                // swiftlint:disable todo

    todo-syntax

    TODO comments should be defined separately using non-nested single line comments. They should adhere to the <TODO: description> or <TODO(developer-name): description> syntax. Empty TODO comments will be flagged.

    Preferred

    // TODO: <insert mandatory todo comment>
    // TODO(dev-name): <insert mandatory todo comment></insert></insert>

    Not Preferred

    // TODO:
    
    /// TODO: Documentation comments should not have TODOs
    
    //// TODO: Nested comments should not have TODOs
    
    // //TODO: Nested comments should not have TODOs
    
    // TODO: Nested comments should not have TODOs // some comment
    
    //// TODO: Nested comments should not have TODOs

    TODO comments should be formatted either as <todo: description> or <todo description></todo></todo:>
    Open

            // swiftlint:enable todo

    todo-syntax

    TODO comments should be defined separately using non-nested single line comments. They should adhere to the <TODO: description> or <TODO(developer-name): description> syntax. Empty TODO comments will be flagged.

    Preferred

    // TODO: <insert mandatory todo comment>
    // TODO(dev-name): <insert mandatory todo comment></insert></insert>

    Not Preferred

    // TODO:
    
    /// TODO: Documentation comments should not have TODOs
    
    //// TODO: Nested comments should not have TODOs
    
    // //TODO: Nested comments should not have TODOs
    
    // TODO: Nested comments should not have TODOs // some comment
    
    //// TODO: Nested comments should not have TODOs

    Parentheses should not be preceded by whitespace
    Open

        private init () {

    There are no issues that match your filters.

    Category
    Status