Preparing report...

Report for github.com/dougEfresh/gtoggl-api

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


golint46%

Golint is a linter for Go source code.

    • gtoggl-api/test/gtest.go
    • Line 16: warning: exported type TestUtil should have comment or be unexported (golint)
    • Line 19: warning: exported type TestLogger should have comment or be unexported (golint)
    • Line 23: warning: exported method TestLogger.Printf should have comment or be unexported (golint)
    • Line 93: warning: exported method TestUtil.MockClient should have comment or be unexported (golint)
    • gtoggl-api/gtclient/client.go
    • Line 9: warning: comment on exported type Client should be of the form "Client ..." (with optional leading article) (golint)
    • Line 17: warning: exported type Clients should have comment or be unexported (golint)
    • Line 19: warning: exported const Endpoint should have comment or be unexported (golint)
    • Line 21: warning: comment on exported function NewClient should be of the form "NewClient ..." (golint)
    • Line 32: warning: exported type TClient should have comment or be unexported (golint)
    • Line 37: warning: exported method TClient.List should have comment or be unexported (golint)
    • Line 47: warning: exported method TClient.Get should have comment or be unexported (golint)
    • Line 51: warning: exported method TClient.Create should have comment or be unexported (golint)
    • Line 56: warning: exported method TClient.Update should have comment or be unexported (golint)
    • Line 61: warning: exported method TClient.Delete should have comment or be unexported (golint)
    • gtoggl-api/gtworkspace/workspace.go
    • Line 9: warning: exported type Workspace should have comment or be unexported (golint)
    • Line 15: warning: exported type Workspaces should have comment or be unexported (golint)
    • Line 17: warning: exported const Endpoint should have comment or be unexported (golint)
    • Line 19: warning: comment on exported function NewClient should be of the form "NewClient ..." (golint)
    • Line 30: warning: exported type WorkspaceClient should have comment or be unexported (golint)
    • Line 35: warning: comment on exported method WorkspaceClient.Get should be of the form "Get ..." (golint)
    • Line 40: warning: comment on exported method WorkspaceClient.Update should be of the form "Update ..." (golint)
    • Line 50: warning: comment on exported method WorkspaceClient.List should be of the form "List ..." (golint)
    • gtoggl-api/gtuser/user.go
    • Line 11: warning: comment on exported type User should be of the form "User ..." (with optional leading article) (golint)
    • Line 22: warning: exported type UserUpdate should have comment or be unexported (golint)
    • Line 26: warning: exported type UserCreate should have comment or be unexported (golint)
    • Line 33: warning: exported type Users should have comment or be unexported (golint)
    • Line 35: warning: exported const Endpoint should have comment or be unexported (golint)
    • Line 36: warning: exported const SignupEndpoint should have comment or be unexported (golint)
    • Line 37: warning: exported const ResetEndpoint should have comment or be unexported (golint)
    • Line 38: warning: exported const MeWithRelatedData should have comment or be unexported (golint)
    • Line 40: warning: comment on exported function NewClient should be of the form "NewClient ..." (golint)
    • Line 54: warning: exported type UserClient should have comment or be unexported (golint)
    • Line 62: warning: exported method UserClient.Get should have comment or be unexported (golint)
    • Line 69: warning: exported method UserClient.Create should have comment or be unexported (golint)
    • Line 75: warning: exported method UserClient.Update should have comment or be unexported (golint)
    • Line 81: warning: exported method UserClient.ResetToken should have comment or be unexported (golint)
    • gtoggl-api/gtproject/project.go
    • Line 9: warning: comment on exported type Project should be of the form "Project ..." (with optional leading article) (golint)
    • Line 18: warning: exported type Projects should have comment or be unexported (golint)
    • Line 20: warning: exported const Endpoint should have comment or be unexported (golint)
    • Line 22: warning: comment on exported function NewClient should be of the form "NewClient ..." (golint)
    • Line 33: warning: exported type ProjectClient should have comment or be unexported (golint)
    • Line 38: warning: exported method ProjectClient.List should have comment or be unexported (golint)
    • Line 51: warning: exported method ProjectClient.Get should have comment or be unexported (golint)
    • Line 55: warning: exported method ProjectClient.Create should have comment or be unexported (golint)
    • Line 60: warning: exported method ProjectClient.Update should have comment or be unexported (golint)
    • Line 65: warning: exported method ProjectClient.Delete should have comment or be unexported (golint)
    • gtoggl-api/gttimentry/timeentry.go
    • Line 13: warning: exported type TimeEntry should have comment or be unexported (golint)
    • Line 29: warning: exported type TimeEntries should have comment or be unexported (golint)
    • Line 31: warning: exported const Endpoint should have comment or be unexported (golint)
    • Line 32: warning: exported const EndpointCurrent should have comment or be unexported (golint)
    • Line 33: warning: exported const EndpointStart should have comment or be unexported (golint)
    • Line 35: warning: comment on exported function NewClient should be of the form "NewClient ..." (golint)
    • Line 48: warning: exported type TimeEntryClient should have comment or be unexported (golint)
    • Line 55: warning: exported method TimeEntryClient.Get should have comment or be unexported (golint)
    • Line 59: warning: exported method TimeEntryClient.Current should have comment or be unexported (golint)
    • Line 63: warning: exported method TimeEntryClient.Delete should have comment or be unexported (golint)
    • Line 63: warning: receiver name tc should be consistent with previous receiver name c for TimeEntryClient (golint)
    • Line 68: warning: exported method TimeEntryClient.List should have comment or be unexported (golint)
    • Line 81: warning: exported method TimeEntryClient.Create should have comment or be unexported (golint)
    • Line 89: warning: exported method TimeEntryClient.Start should have comment or be unexported (golint)
    • Line 97: warning: exported method TimeEntryClient.Stop should have comment or be unexported (golint)
    • Line 101: warning: exported method TimeEntryClient.Update should have comment or be unexported (golint)
    • Line 106: warning: exported method TimeEntryClient.GetRange should have comment or be unexported (golint)
    • gtoggl-api/gthttp/httpclient.go
    • Line 17: warning: exported const DefaultAuthPassword should have comment (or a comment on this block) or be unexported (golint)
    • Line 27: warning: comment on exported type TogglHttpClient should be of the form "TogglHttpClient ..." (with optional leading article) (golint)
    • Line 43: warning: exported type TogglError should have comment or be unexported (golint)
    • Line 49: warning: exported type TogglResponse should have comment or be unexported (golint)
    • Line 61: warning: comment on exported function NewClient should be of the form "NewClient ..." (golint)
    • Line 141: warning: comment on exported function SetTraceLogger should be of the form "SetTraceLogger ..." (golint)
    • Line 149: warning: comment on exported function SetErrorLogger should be of the form "SetErrorLogger ..." (golint)
    • Line 157: warning: comment on exported function SetInfoLogger should be of the form "SetInfoLogger ..." (golint)
    • Line 272: warning: comment on exported method TogglHttpClient.PostRequest should be of the form "PostRequest ..." (golint)
    • Line 277: warning: comment on exported method TogglHttpClient.DeleteRequest should be of the form "DeleteRequest ..." (golint)
    • Line 282: warning: comment on exported method TogglHttpClient.PutRequest should be of the form "PutRequest ..." (golint)
    • Line 287: warning: comment on exported method TogglHttpClient.GetRequest should be of the form "GetRequest ..." (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign86%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!