Report for github.com/tiburon-777/OTUS_Project

A+    Excellent!    Found 9 issues across 16 files

Tweet

gofmt93%

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


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!


golint50%

Golint is a linter for Go source code.

    • OTUS_Project/internal/config/config.go
    • Line 10: warning: exported type Config should have comment or be unexported (golint)
    • Line 29: warning: exported function NewConfig should have comment or be unexported (golint)
    • Line 44: warning: exported method Config.SetDefault should have comment or be unexported (golint)
    • OTUS_Project/internal/logger/logger.go
    • Line 12: warning: exported type Fields should have comment or be unexported (golint)
    • Line 14: warning: exported type Interface should have comment or be unexported (golint)
    • Line 22: warning: exported type Logger should have comment or be unexported (golint)
    • Line 26: warning: exported type Config should have comment or be unexported (golint)
    • Line 34: warning: exported function New should have comment or be unexported (golint)
    • Line 56: warning: exported method Logger.Debugf should have comment or be unexported (golint)
    • Line 60: warning: exported method Logger.Infof should have comment or be unexported (golint)
    • Line 64: warning: exported method Logger.Warnf should have comment or be unexported (golint)
    • Line 68: warning: exported method Logger.Errorf should have comment or be unexported (golint)
    • Line 72: warning: exported method Logger.Fatalf should have comment or be unexported (golint)
    • OTUS_Project/internal/cache/cache.go
    • Line 12: warning: exported type Key should have comment or be unexported (golint)
    • Line 14: warning: exported type Cache should have comment or be unexported (golint)
    • Line 28: warning: exported type Item should have comment or be unexported (golint)
    • Line 33: warning: exported function NewCache should have comment or be unexported (golint)
    • OTUS_Project/internal/cache/list.go
    • Line 3: warning: exported type ListInterface should have comment or be unexported (golint)
    • Line 13: warning: exported type ListItem should have comment or be unexported (golint)
    • Line 19: warning: exported type List should have comment or be unexported (golint)
    • Line 24: warning: exported function NewList should have comment or be unexported (golint)
    • Line 28: warning: exported method List.Len should have comment or be unexported (golint)
    • Line 32: warning: exported method List.Front should have comment or be unexported (golint)
    • Line 36: warning: exported method List.Back should have comment or be unexported (golint)
    • Line 40: warning: exported method List.PushFront should have comment or be unexported (golint)
    • Line 53: warning: exported method List.PushBack should have comment or be unexported (golint)
    • Line 66: warning: exported method List.Remove should have comment or be unexported (golint)
    • Line 86: warning: exported method List.MoveToFront should have comment or be unexported (golint)
    • OTUS_Project/internal/application/application.go
    • Line 13: warning: exported type App should have comment or be unexported (golint)
    • Line 20: warning: exported function New should have comment or be unexported (golint)
    • Line 32: warning: exported method App.Start should have comment or be unexported (golint)
    • Line 40: warning: exported method App.Stop 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!