Preparing report...

Report for github.com/marvinpinto/slc

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


gocyclo83%

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.

    • slc/lib/csv.go
    • Line 122: warning: cyclomatic complexity 16 of function (*CSVRunner).processCSVRecord() is high (> 15) (gocyclo)

golint72%

Golint is a linter for Go source code.

    • slc/cmd/root.go
    • Line 19: warning: exported var Version should have comment or be unexported (golint)
    • Line 41: warning: exported function Execute should have comment or be unexported (golint)
    • slc/lib/csv.go
    • Line 17: warning: exported type CSVRunner should have comment or be unexported (golint)
    • Line 24: warning: exported function NewCSVRunner should have comment or be unexported (golint)
    • Line 45: warning: exported method CSVRunner.GenerateLedgerEntries should have comment or be unexported (golint)
    • slc/lib/ledger.go
    • Line 11: warning: exported type LedgerTransaction should have comment or be unexported (golint)
    • Line 20: warning: exported type TransactionPosting should have comment or be unexported (golint)
    • Line 26: warning: exported function NewLedgerTransaction should have comment or be unexported (golint)
    • Line 45: warning: exported method LedgerTransaction.SetDateFormat should have comment or be unexported (golint)
    • Line 57: warning: exported method LedgerTransaction.AddComment should have comment or be unexported (golint)
    • Line 64: warning: exported method LedgerTransaction.AddKeyValComment should have comment or be unexported (golint)
    • Line 137: warning: exported function Zero should have comment or be unexported (golint)
    • slc/lib/stripe_ledger.go
    • Line 13: warning: exported const STRIPE_INCOME_SRC_LOOKUP_KEY should have comment or be unexported (golint)
    • Line 14: warning: exported const STRIPE_FEES_LOOKUP_KEY should have comment or be unexported (golint)
    • Line 16: warning: exported type StripeRunner should have comment or be unexported (golint)
    • Line 24: warning: exported function NewStripeRunner should have comment or be unexported (golint)
    • Line 34: warning: exported method StripeRunner.GenerateStripeLedgerEntries should have comment or be unexported (golint)
    • slc/lib/utils.go
    • Line 8: warning: exported type ProgressBar should have comment or be unexported (golint)
    • Line 14: warning: exported type StubProgressBar should have comment or be unexported (golint)
    • Line 16: warning: exported method StubProgressBar.SetTotal should have comment or be unexported (golint)
    • Line 17: warning: exported method StubProgressBar.Increment should have comment or be unexported (golint)
    • Line 18: warning: exported method StubProgressBar.Current should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign94%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!