topfreegames/khan

View on GitHub
api/game.go

Summary

Maintainability
B
5 hrs
Test Coverage

Function UpdateGameHandler has 98 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func UpdateGameHandler(app *App) func(c echo.Context) error {
    return func(c echo.Context) error {
        c.Set("route", "UpdateGame")
        start := time.Now()
        gameID := c.Param("gameID")
Severity: Major
Found in api/game.go - About 2 hrs to fix

    Function CreateGameHandler has 79 lines of code (exceeds 50 allowed). Consider refactoring.
    Open

    func CreateGameHandler(app *App) func(c echo.Context) error {
        return func(c echo.Context) error {
            c.Set("route", "CreateGame")
            start := time.Now()
    
    
    Severity: Major
    Found in api/game.go - About 2 hrs to fix

      Your code does not pass gofmt in 2 places. Go fmt your code!
      Open

      // khan
      Severity: Minor
      Found in api/game.go by gofmt

      There are no issues that match your filters.

      Category
      Status