Preparing report...

Report for github.com/lesterpig/dfss

A+    Excellent!    Found 38 issues across 155 files

Tweet

gofmt94%

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!


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!


golint90%

Golint is a linter for Go source code.

    • dfss/dfssd/server/server.go
    • Line 13: warning: exported type Server should have comment or be unexported (golint)
    • Line 15: warning: comment on exported method Server.SendLog should be of the form "SendLog ..." (golint)
    • dfss/dfssd/gui/colors.go
    • Line 17: warning: don't use underscores in Go names; var pen_black should be penBlack (golint)
    • Line 18: warning: don't use underscores in Go names; var pen_gray should be penGray (golint)
    • Line 20: warning: don't use underscores in Go names; var brush_none should be brushNone (golint)
    • Line 21: warning: don't use underscores in Go names; var brush_black should be brushBlack (golint)
    • dfss/dfssd/gui/save.go
    • Line 11: warning: exported method Window.Save should have comment or be unexported (golint)
    • Line 26: warning: exported method Window.Open should have comment or be unexported (golint)
    • dfss/gui/authform/authform.go
    • Line 11: warning: exported type Widget should have comment or be unexported (golint)
    • Line 15: warning: exported function NewWidget should have comment or be unexported (golint)
    • Line 42: warning: exported method Widget.Q should have comment or be unexported (golint)
    • Line 46: warning: exported method Widget.Tick should have comment or be unexported (golint)
    • dfss/gui/signform/signform.go
    • Line 17: warning: exported type Widget should have comment or be unexported (golint)
    • Line 32: warning: exported function NewWidget should have comment or be unexported (golint)
    • Line 156: warning: exported method Widget.Q should have comment or be unexported (golint)
    • dfss/gui/contractform/contractform.go
    • Line 14: warning: exported type Widget should have comment or be unexported (golint)
    • Line 20: warning: exported function NewWidget should have comment or be unexported (golint)
    • Line 72: warning: exported method Widget.SignersList should have comment or be unexported (golint)
    • Line 85: warning: exported method Widget.Q should have comment or be unexported (golint)
    • Line 89: warning: exported method Widget.Tick should have comment or be unexported (golint)
    • dfss/gui/showcontract/showcontract.go
    • Line 15: warning: exported type Widget should have comment or be unexported (golint)
    • Line 21: warning: exported function NewWidget should have comment or be unexported (golint)
    • Line 86: warning: exported method Widget.Q should have comment or be unexported (golint)
    • Line 90: warning: exported method Widget.Tick should have comment or be unexported (golint)
    • dfss/gui/welcome/welcome.go
    • Line 8: warning: exported type Widget should have comment or be unexported (golint)
    • Line 12: warning: exported function NewWidget should have comment or be unexported (golint)
    • Line 24: warning: exported method Widget.Q should have comment or be unexported (golint)
    • Line 28: warning: exported method Widget.Tick should have comment or be unexported (golint)
    • dfss/dfssd/gui/graphics.go
    • Line 11: warning: comment on exported const ARROW_T should be of the form "ARROW_T ..." (golint)
    • Line 13: warning: exported const ARROW_L should have comment or be unexported (golint)
    • dfss/gui/userform/userform.go
    • Line 14: warning: exported type Widget should have comment or be unexported (golint)
    • Line 18: warning: exported function NewWidget should have comment or be unexported (golint)
    • Line 70: warning: exported method Widget.Q should have comment or be unexported (golint)
    • Line 74: warning: exported method Widget.Tick 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

    • dfss/dfssc/common/sequence_analysis.go
    • Line 7: warning: "occurence" is a misspelling of "occurrence" (misspell)
    • Line 12: warning: "occurence" is a misspelling of "occurrence" (misspell)
    • Line 13: warning: "occurence" is a misspelling of "occurrence" (misspell)
    • Line 15: warning: "occurence" is a misspelling of "occurrence" (misspell)
    • Line 32: warning: "occuring" is a misspelling of "occurring" (misspell)
    • Line 32: warning: "occurence" is a misspelling of "occurrence" (misspell)
    • Line 61: warning: "occuring" is a misspelling of "occurring" (misspell)
    • Line 61: warning: "occurence" is a misspelling of "occurrence" (misspell)
    • Line 126: warning: "occurence" is a misspelling of "occurrence" (misspell)
    • Line 136: warning: "occurence" is a misspelling of "occurrence" (misspell)
    • dfss/dfssp/cmd/ttp.go
    • Line 53: warning: "occured" is a misspelling of "occurred" (misspell)
    • Line 60: warning: "occured" is a misspelling of "occurred" (misspell)
    • Line 67: warning: "occured" is a misspelling of "occurred" (misspell)
    • dfss/dfsst/server/server.go
    • Line 67: warning: "occured" is a misspelling of "occurred" (misspell)
    • Line 118: warning: "recieved" is a misspelling of "received" (misspell)
    • Line 275: warning: "occured" is a misspelling of "occurred" (misspell)
    • Line 281: warning: "occured" is a misspelling of "occurred" (misspell)
    • dfss/dfssp/user/user_test.go
    • Line 33: warning: "adress" is a misspelling of "address" (misspell)
    • Line 141: warning: "occured" is a misspelling of "occurred" (misspell)
    • Line 185: warning: "occured" is a misspelling of "occurred" (misspell)
    • Line 205: warning: "occured" is a misspelling of "occurred" (misspell)
    • dfss/dfsst/resolve/resolve.go
    • Line 20: warning: "occured" is a misspelling of "occurred" (misspell)
    • Line 52: warning: "occured" is a misspelling of "occurred" (misspell)
    • Line 73: warning: "occured" is a misspelling of "occurred" (misspell)
    • Line 87: warning: "occurence" is a misspelling of "occurrence" (misspell)
    • Line 143: warning: "occurence" is a misspelling of "occurrence" (misspell)
    • Line 144: warning: "occurence" is a misspelling of "occurrence" (misspell)
    • Line 145: warning: "occurence" is a misspelling of "occurrence" (misspell)