Preparing report...

Report for github.com/guitmz/n26

A+    Excellent!    Found 6 issues across 8 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!


golint37%

Golint is a linter for Go source code.

    • n26/api.go
    • Line 17: warning: exported type Auth should have comment or be unexported (golint)
    • Line 23: warning: exported type Balance should have comment or be unexported (golint)
    • Line 33: warning: exported type PersonalInfo should have comment or be unexported (golint)
    • Line 51: warning: exported type Token should have comment or be unexported (golint)
    • Line 57: warning: exported type Statuses should have comment or be unexported (golint)
    • Line 78: warning: exported type Addresses should have comment or be unexported (golint)
    • Line 94: warning: exported type Barzahlen should have comment or be unexported (golint)
    • Line 107: warning: exported type Cards should have comment or be unexported (golint)
    • Line 131: warning: exported type Limits should have comment or be unexported (golint)
    • Line 136: warning: exported type Contacts should have comment or be unexported (golint)
    • Line 148: warning: exported type Transactions should have comment or be unexported (golint)
    • Line 185: warning: exported type Statements should have comment or be unexported (golint)
    • Line 193: warning: exported type Spaces should have comment or be unexported (golint)
    • Line 214: warning: exported type Client should have comment or be unexported (golint)
    • Line 216: warning: exported type TokenSource should have comment or be unexported (golint)
    • Line 220: warning: exported method TokenSource.Token should have comment or be unexported (golint)
    • Line 227: warning: exported function NewClient should have comment or be unexported (golint)
    • Line 283: warning: exported method Client.GetBalance should have comment or be unexported (golint)
    • Line 283: warning: receiver name auth should be consistent with previous receiver name c for Client (golint)
    • Line 294: warning: exported method Client.GetInfo should have comment or be unexported (golint)
    • Line 294: warning: receiver name auth should be consistent with previous receiver name c for Client (golint)
    • Line 305: warning: exported method Client.GetStatus should have comment or be unexported (golint)
    • Line 305: warning: receiver name auth should be consistent with previous receiver name c for Client (golint)
    • Line 316: warning: exported method Client.GetAddresses should have comment or be unexported (golint)
    • Line 316: warning: receiver name auth should be consistent with previous receiver name c for Client (golint)
    • Line 327: warning: exported method Client.GetCards should have comment or be unexported (golint)
    • Line 327: warning: receiver name auth should be consistent with previous receiver name c for Client (golint)
    • Line 338: warning: exported method Client.GetLimits should have comment or be unexported (golint)
    • Line 338: warning: receiver name auth should be consistent with previous receiver name c for Client (golint)
    • Line 349: warning: exported method Client.GetContacts should have comment or be unexported (golint)
    • Line 349: warning: receiver name auth should be consistent with previous receiver name c for Client (golint)
    • Line 360: warning: exported method Client.GetLastTransactions should have comment or be unexported (golint)
    • Line 360: warning: receiver name auth should be consistent with previous receiver name c for Client (golint)
    • Line 364: warning: comment on exported method Client.GetTransactions should be of the form "GetTransactions ..." (golint)
    • Line 367: warning: receiver name auth should be consistent with previous receiver name c for Client (golint)
    • Line 384: warning: comment on exported method Client.GetSmartStatementCsv should be of the form "GetSmartStatementCsv ..." (golint)
    • Line 385: warning: receiver name auth should be consistent with previous receiver name c for Client (golint)
    • Line 393: warning: exported method Client.GetStatements should have comment or be unexported (golint)
    • Line 393: warning: receiver name auth should be consistent with previous receiver name c for Client (golint)
    • Line 404: warning: exported method Client.GetStatementPDF should have comment or be unexported (golint)
    • Line 404: warning: receiver name auth should be consistent with previous receiver name c for Client (golint)
    • Line 413: warning: exported method Client.BlockCard should have comment or be unexported (golint)
    • Line 413: warning: receiver name auth should be consistent with previous receiver name c for Client (golint)
    • Line 418: warning: exported method Client.UnblockCard should have comment or be unexported (golint)
    • Line 418: warning: receiver name auth should be consistent with previous receiver name c for Client (golint)
    • Line 423: warning: exported method Client.GetSpaces should have comment or be unexported (golint)
    • Line 423: warning: receiver name auth should be consistent with previous receiver name c for Client (golint)
    • n26/auth.go
    • Line 30: warning: exported method Token.GetMFAToken should have comment or be unexported (golint)
    • Line 88: warning: exported method Token.CompleteMfaApproval should have comment or be unexported (golint)
    • n26/timestamp.go
    • Line 9: warning: exported type TimeStamp should have comment or be unexported (golint)
    • Line 17: warning: exported method TimeStamp.UnmarshalJSON should have comment or be unexported (golint)
    • Line 33: warning: comment on exported method TimeStamp.AsMillis should be of the form "AsMillis ..." (golint)

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.


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!