Preparing report...

Report for github.com/warrensbox/tgswitch

A+    Excellent!    Found 4 issues across 16 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!


gocyclo87%

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.


golint81%

Golint is a linter for Go source code.

    • tgswitch/modal/modal.go
    • Line 5: warning: exported type Repo should have comment or be unexported (golint)
    • Line 48: warning: comment on exported type Assets should be of the form "Assets ..." (with optional leading article) (golint)
    • Line 87: warning: exported type Client should have comment or be unexported (golint)
    • tgswitch/main.go
    • Line 41: warning: exported var CLIENT_ID should have comment or be unexported (golint)
    • Line 42: warning: exported var CLIENT_SECRET should have comment or be unexported (golint)
    • tgswitch/lib/list_versions.go
    • Line 24: warning: exported type AppVersionList should have comment or be unexported (golint)
    • Line 235: warning: exported type Version should have comment or be unexported (golint)
    • Line 243: warning: exported type PreRelease should have comment or be unexported (golint)
    • Line 256: warning: exported function New should have comment or be unexported (golint)
    • Line 260: warning: exported function NewVersion should have comment or be unexported (golint)
    • Line 330: warning: exported method Version.UnmarshalYAML should have comment or be unexported (golint)
    • Line 338: warning: exported method Version.MarshalJSON should have comment or be unexported (golint)
    • Line 342: warning: exported method Version.UnmarshalJSON should have comment or be unexported (golint)
    • Line 377: warning: exported method PreRelease.Slice should have comment or be unexported (golint)
    • Line 506: warning: exported type Versions should have comment or be unexported (golint)

license0%

Checks whether your project has a LICENSE file.


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell93%

Misspell Finds commonly misspelled English words