Report for github.com/stv0g/gose

(v0.0.2)

A+    Excellent!    Found 9 issues across 12 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!


golint25%

Golint is a linter for Go source code.

    • cmd/static_embed.go
    • Line 28: warning: exported function EmbedFolder should have comment or be unexported (golint)
    • Line 38: warning: exported function StaticMiddleware should have comment or be unexported (golint)
    • pkg/config/config.go
    • Line 15: warning: exported type Size should have comment or be unexported (golint)
    • Line 17: warning: exported method Size.UnmarshalText should have comment or be unexported (golint)
    • Line 20: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 26: warning: exported type ExpirationClass should have comment or be unexported (golint)
    • Line 32: warning: exported type S3Config should have comment or be unexported (golint)
    • Line 50: warning: exported type ServerConfig should have comment or be unexported (golint)
    • Line 57: warning: exported type ShortenerConfig should have comment or be unexported (golint)
    • Line 63: warning: exported type NotificationConfig should have comment or be unexported (golint)
    • Line 68: warning: exported type Config should have comment or be unexported (golint)
    • Line 77: warning: exported method S3Config.GetUrl should have comment or be unexported (golint)
    • Line 97: warning: exported method S3Config.GetObjectUrl should have comment or be unexported (golint)
    • pkg/handlers/initiate.go
    • Line 17: warning: exported type InitiateRequest should have comment or be unexported (golint)
    • Line 25: warning: exported type InitiationResponse should have comment or be unexported (golint)
    • Line 33: warning: exported function HandleInitiate should have comment or be unexported (golint)
    • pkg/shortener/shortener.go
    • Line 16: warning: exported type Shortener should have comment or be unexported (golint)
    • Line 20: warning: exported type ShortenerArgs should have comment or be unexported (golint)
    • Line 26: warning: exported function NewShortener should have comment or be unexported (golint)
    • Line 64: warning: exported method Shortener.Shorten should have comment or be unexported (golint)
    • pkg/utils/env.go
    • Line 8: warning: exported function EnvToMap should have comment or be unexported (golint)
    • Line 13: warning: don't use underscores in Go names; var split_v should be splitV (golint)
    • pkg/handlers/complete.go
    • Line 14: warning: exported type Part should have comment or be unexported (golint)
    • Line 20: warning: exported type CompletionRequest should have comment or be unexported (golint)
    • Line 26: warning: exported type CompletionResponse should have comment or be unexported (golint)
    • Line 30: warning: exported function HandleComplete should have comment or be unexported (golint)
    • pkg/notifier/notifier.go
    • Line 20: warning: exported type NotifierArgs should have comment or be unexported (golint)
    • Line 31: warning: exported type Notifier should have comment or be unexported (golint)
    • Line 37: warning: exported function NewNotifier should have comment or be unexported (golint)
    • Line 56: warning: exported method Notifier.Notify should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign91%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!