joeblau/gitignore.io

View on GitHub
Sources/App/RouteHandlers/APIRouteHandlers.swift

Summary

Maintainability
A
1 hr
Test Coverage

Function createTemplate has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private func createTemplate(ignoreString: String) -> (template: String, status: HTTPResponseStatus) {
        guard let urlDecoded = ignoreString.removingPercentEncoding else {
            return ("""

                #!! ERROR: url decoding \(ignoreString) !#
Severity: Minor
Found in Sources/App/RouteHandlers/APIRouteHandlers.swift - About 1 hr to fix

    Avoid too many return statements within this function.
    Open

            return (template: template, status: createStatus)
    Severity: Major
    Found in Sources/App/RouteHandlers/APIRouteHandlers.swift - About 30 mins to fix

      There are no issues that match your filters.

      Category
      Status