thestrukture/IDE

View on GitHub
api/handlers/html.go

Summary

Maintainability
A
1 hr
Test Coverage
F
4%

Function Handler has 54 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func Handler(w http.ResponseWriter, r *http.Request) {
    var p *gosweb.Page
    p, err := templates.LoadPage(r.URL.Path)
    var session *sessions.Session
    var er error
Severity: Minor
Found in api/handlers/html.go - About 1 hr to fix

    package comment should be of the form "Package handlers ..."
    Open

    // File generated by Gopher Sauce
    Severity: Minor
    Found in api/handlers/html.go by golint

    comment on exported function MakeHandler should be of the form "MakeHandler ..."
    Open

    // Access you .gxml's end tags with
    Severity: Minor
    Found in api/handlers/html.go by golint

    exported function Handler should have comment or be unexported
    Open

    func Handler(w http.ResponseWriter, r *http.Request) {
    Severity: Minor
    Found in api/handlers/html.go by golint

    There are no issues that match your filters.

    Category
    Status