Preparing report...

Report for github.com/luanapp/using-gin

(v0.0.0-20211116024429-f2a0a1d33977)

A+    Excellent!    Found 8 issues across 13 files

Tweet

gofmt100%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command

No problems detected. Good job!


go_vet100%

go vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string.

No problems detected. Good job!


gocyclo100%

Gocyclo calculates cyclomatic complexities of functions in Go source code. The cyclomatic complexity of a function is calculated according to the following rules: 1 is the base complexity of a function +1 for each 'if', 'for', 'case', '&&' or '||' Go Report Card warns on functions with cyclomatic complexity > 15.

No problems detected. Good job!


golint38%

Golint is a linter for Go source code.

    • using-gin/pkg/domain/species/species_handler.go
    • Line 11: warning: exported type Handlerer should have comment or be unexported (golint)
    • Line 19: warning: exported type Handler should have comment or be unexported (golint)
    • Line 23: warning: exported type Species should have comment or be unexported (golint)
    • Line 35: warning: exported function NewHandler should have comment or be unexported (golint)
    • Line 41: warning: exported method Handler.GetAll should have comment or be unexported (golint)
    • Line 50: warning: exported method Handler.GetById should have comment or be unexported (golint)
    • Line 61: warning: exported method Handler.Save should have comment or be unexported (golint)
    • Line 77: warning: exported method Handler.Update should have comment or be unexported (golint)
    • Line 97: warning: exported method Handler.Delete should have comment or be unexported (golint)
    • using-gin/pkg/domain/health/health_handler.go
    • Line 16: warning: exported type Handlerer should have comment or be unexported (golint)
    • Line 21: warning: exported type Handler should have comment or be unexported (golint)
    • Line 25: warning: exported function NewHandler should have comment or be unexported (golint)
    • Line 29: warning: exported method Handler.Health should have comment or be unexported (golint)
    • Line 33: warning: exported method Handler.StatusHandler should have comment or be unexported (golint)
    • using-gin/pkg/server/server.go
    • Line 15: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 20: warning: exported type Server should have comment or be unexported (golint)
    • Line 31: warning: exported function NewServer should have comment or be unexported (golint)
    • Line 35: warning: exported method Server.Start should have comment or be unexported (golint)
    • using-gin/config/database/migration.go
    • Line 47: warning: exported function UpFromFilename should have comment or be unexported (golint)
    • Line 58: warning: exported function Up should have comment or be unexported (golint)
    • Line 96: warning: exported function DownFromFilename should have comment or be unexported (golint)
    • Line 107: warning: exported function Down should have comment or be unexported (golint)
    • Line 146: warning: exported function MigrationExists should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!