Preparing report...

Report for github.com/fgrid/money

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!


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!


golint37%

Golint is a linter for Go source code.

    • money/currency.go
    • Line 3: warning: exported type Currency should have comment or be unexported (golint)
    • Line 26: warning: exported function NewCurrency should have comment or be unexported (golint)
    • Line 30: warning: exported method Currency.Equals should have comment or be unexported (golint)
    • money/errors.go
    • Line 6: warning: exported var ErrDiffCurrencies should have comment or be unexported (golint)
    • money/funcs.go
    • Line 75: warning: exported function Parse should have comment or be unexported (golint)
    • Line 98: warning: exported function ParseString should have comment or be unexported (golint)
    • money/majors.go
    • Line 13: warning: exported function CHF should have comment or be unexported (golint)
    • Line 17: warning: exported function CNY should have comment or be unexported (golint)
    • Line 26: warning: exported function GBP should have comment or be unexported (golint)
    • Line 30: warning: exported function HKD should have comment or be unexported (golint)
    • Line 34: warning: exported function JPY should have comment or be unexported (golint)
    • Line 38: warning: exported function USD should have comment or be unexported (golint)
    • Line 42: warning: exported function INR should have comment or be unexported (golint)
    • Line 46: warning: exported function RUB should have comment or be unexported (golint)
    • money/money.go
    • Line 5: warning: exported type Money should have comment or be unexported (golint)
    • Line 11: warning: exported function New should have comment or be unexported (golint)
    • Line 15: warning: exported method Money.Add should have comment or be unexported (golint)
    • Line 31: warning: exported method Money.Subunits should have comment or be unexported (golint)
    • Line 38: warning: exported method Money.Cents should have comment or be unexported (golint)
    • Line 57: warning: exported method Money.Credit should have comment or be unexported (golint)
    • Line 61: warning: exported method Money.Debit should have comment or be unexported (golint)
    • Line 65: warning: exported method Money.IsDebit should have comment or be unexported (golint)
    • Line 69: warning: exported method Money.Div should have comment or be unexported (golint)
    • Line 84: warning: exported method Money.Equals should have comment or be unexported (golint)
    • Line 96: warning: exported method Money.Mul should have comment or be unexported (golint)
    • Line 112: warning: exported method Money.Inv should have comment or be unexported (golint)
    • Line 116: warning: exported method Money.Percent should have comment or be unexported (golint)
    • Line 132: warning: exported method Money.Sub should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell87%

Misspell Finds commonly misspelled English words