JeffDeCola/jeffCoin

View on GitHub
webserver/webpages.go

Summary

Maintainability
A
3 hrs
Test Coverage

Function indexHandler has 63 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func indexHandler(res http.ResponseWriter, req *http.Request) {

    s := "----------------------------------------------------------------"
    log.Info("WEBSERVER:                   " + s)
    s = "HTTP SERVER - DISPLAY MAIN WEBPAGE"
Severity: Minor
Found in webserver/webpages.go - About 1 hr to fix

    Function validateHandler has 53 lines of code (exceeds 50 allowed). Consider refactoring.
    Open

    func validateHandler(res http.ResponseWriter, req *http.Request) {
    
        s := "----------------------------------------------------------------"
        log.Info("WEBSERVER:                   " + s)
        s = "HTTP SERVER - DISPLAY VALIDATE"
    Severity: Minor
    Found in webserver/webpages.go - About 1 hr to fix

      Function sendHandler has 53 lines of code (exceeds 50 allowed). Consider refactoring.
      Open

      func sendHandler(res http.ResponseWriter, req *http.Request) {
      
          s := "----------------------------------------------------------------"
          log.Info("WEBSERVER:                   " + s)
          s = "HTTP SERVER - DISPLAY API COMMANDS"
      Severity: Minor
      Found in webserver/webpages.go - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status