Preparing report...

Report for github.com/konimarti/fixedincome

(v0.1.0)

A+    Excellent!    Found 12 issues across 47 files

Tweet

gofmt93%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command


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!


gocyclo95%

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.


golint78%

Golint is a linter for Go source code.

    • pkg/term/nss.go
    • Line 23: warning: comment on exported method NelsonSiegelSvensson.Rate should be of the form "Rate ..." (golint)
    • Line 38: warning: comment on exported method NelsonSiegelSvensson.Z should be of the form "Z ..." (golint)
    • security.go
    • Line 5: warning: exported type Security should have comment or be unexported (golint)
    • Line 9: warning: exported type Option should have comment or be unexported (golint)
    • yields.go
    • Line 9: warning: exported var Precision should have comment or be unexported (golint)
    • pkg/instrument/option/european.go
    • Line 10: warning: exported const Call should have comment (or a comment on this block) or be unexported (golint)
    • Line 30: warning: comment on exported method European.PresentValue should be of the form "PresentValue ..." (golint)
    • Line 51: warning: comment on exported method European.Delta should be of the form "Delta ..." (golint)
    • Line 61: warning: comment on exported method European.Gamma should be of the form "Gamma ..." (golint)
    • Line 67: warning: comment on exported method European.Rho should be of the form "Rho ..." (golint)
    • Line 78: warning: comment on exported method European.Vega should be of the form "Vega ..." (golint)
    • Line 86: warning: comment on exported function D1 should be of the form "D1 ..." (golint)
    • Line 91: warning: comment on exported function D2 should be of the form "D2 ..." (golint)
    • Line 96: warning: comment on exported function N should be of the form "N ..." (golint)
    • Line 104: warning: comment on exported function Napostroph should be of the form "Napostroph ..." (golint)
    • riskmanagement.go
    • Line 5: warning: exported type InterestSensitiveSecurity should have comment or be unexported (golint)
    • pkg/mc/engine.go
    • Line 9: warning: exported const IncompleteSetup should have comment (or a comment on this block) or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign97%

IneffAssign detects ineffectual assignments in Go code.


misspell97%

Misspell Finds commonly misspelled English words