Preparing report...

Report for github.com/youcodeio/proxy

A    Great!    Found 6 issues across 6 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!


golint33%

Golint is a linter for Go source code.

    • proxy/database/db.go
    • Line 10: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 27: warning: exported type YouCodeDB should have comment or be unexported (golint)
    • Line 38: warning: exported type AppDatabase should have comment or be unexported (golint)
    • Line 42: warning: comment on exported method YouCodeDB.AddChannel should be of the form "AddChannel ..." (golint)
    • Line 61: warning: exported method YouCodeDB.GetChannels should have comment or be unexported (golint)
    • Line 88: warning: exported function InitDB should have comment or be unexported (golint)
    • Line 104: warning: exported method YouCodeDB.StartRefreshData should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign0%

IneffAssign detects ineffectual assignments in Go code.

    • proxy/utils/utils.go
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: could not import google.golang.org/api/youtube/v3 (invalid package name: "") (ineffassign)
    • Line 10: warning: undeclared name: youtube (ineffassign)
    • Line 7: warning: "google.golang.org/api/youtube/v3" imported but not used (ineffassign)
    • proxy/api/handlers.go
    • Line 14: warning: cannot find package "." in: (ineffassign)
    • Line 15: warning: cannot find package "." in: (ineffassign)
    • Line 16: warning: cannot find package "." in: (ineffassign)
    • Line 12: warning: cannot find package "." in: (ineffassign)
    • Line 12: warning: could not import google.golang.org/api/youtube/v3 (invalid package name: "") (ineffassign)
    • Line 14: warning: could not import github.com/gorilla/mux (invalid package name: "") (ineffassign)
    • Line 15: warning: could not import github.com/youcodeio/proxy/database (invalid package name: "") (ineffassign)
    • Line 16: warning: could not import github.com/youcodeio/proxy/utils (invalid package name: "") (ineffassign)
    • Line 92: warning: undeclared name: youtube (ineffassign)
    • Line 95: warning: undeclared name: youtube (ineffassign)
    • Line 147: warning: undeclared name: youtube (ineffassign)
    • Line 150: warning: undeclared name: youtube (ineffassign)
    • Line 200: warning: undeclared name: youtube (ineffassign)
    • Line 12: warning: "google.golang.org/api/youtube/v3" imported but not used (ineffassign)
    • proxy/database/db.go
    • Line 10: warning: cannot find package "." in: (ineffassign)
    • Line 10: warning: could not import github.com/lib/pq (invalid package name: "") (ineffassign)
    • proxy/database/youtube.go
    • Line 9: warning: cannot find package "." in: (ineffassign)
    • Line 10: warning: cannot find package "." in: (ineffassign)
    • Line 9: warning: could not import google.golang.org/api/googleapi/transport (invalid package name: "") (ineffassign)
    • Line 10: warning: could not import google.golang.org/api/youtube/v3 (invalid package name: "") (ineffassign)
    • proxy/main.go
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 8: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: could not import github.com/youcodeio/proxy/api (invalid package name: "") (ineffassign)
    • Line 8: warning: could not import github.com/youcodeio/proxy/database (invalid package name: "") (ineffassign)
    • Line 7: warning: could not import github.com/youcodeio/proxy/api (invalid package name: "") (ineffassign)
    • Line 8: warning: could not import github.com/youcodeio/proxy/database (invalid package name: "") (ineffassign)
    • proxy/main_test.go
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 8: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: could not import github.com/stretchr/testify/assert (invalid package name: "") (ineffassign)
    • Line 8: warning: could not import github.com/stretchr/testify/mock (invalid package name: "") (ineffassign)
    • Line 21: warning: m.Called undefined (type *MyMockedDB has no field or method Called) (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!