Preparing report...

Report for github.com/DoubleChuang/gogrs

A    Great!    Found 10 issues across 28 files

Tweet

gofmt78%

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!


gocyclo85%

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.


golint82%

Golint is a linter for Go source code.

    • gogrs/utils/utils.go
    • Line 43: warning: exported type StockCsvFile should have comment or be unexported (golint)
    • Line 47: warning: exported function GetMD5FilePath should have comment or be unexported (golint)
    • gogrs/twse/qfiis.go
    • Line 168: warning: exported type TradingVolume should have comment or be unexported (golint)
    • Line 173: warning: exported type BaseMTSS should have comment or be unexported (golint)
    • Line 179: warning: exported type BaseT38U should have comment or be unexported (golint)
    • Line 185: warning: exported type BaseT43U should have comment or be unexported (golint)
    • Line 191: warning: exported type BaseT44U should have comment or be unexported (golint)
    • Line 197: warning: exported type TWT38U should have comment or be unexported (golint)
    • Line 201: warning: exported type TWT43U should have comment or be unexported (golint)
    • Line 205: warning: exported type TWT44U should have comment or be unexported (golint)
    • Line 210: warning: exported type TWMTSS should have comment or be unexported (golint)
    • Line 224: warning: exported method TWMTSS.URL should have comment or be unexported (golint)
    • Line 231: warning: exported method TWMTSS.Round should have comment or be unexported (golint)
    • Line 235: warning: exported method TWMTSS.SetDate should have comment or be unexported (golint)
    • Line 239: warning: exported method TWT38U.SetDate should have comment or be unexported (golint)
    • Line 243: warning: exported method TWT43U.SetDate should have comment or be unexported (golint)
    • Line 247: warning: exported method TWT44U.SetDate should have comment or be unexported (golint)
    • Line 275: warning: exported method TWMTSS.Get should have comment or be unexported (golint)
    • Line 335: warning: exported method TWMTSS.GetData should have comment or be unexported (golint)
    • Line 338: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 345: warning: exported method TWT38U.GetData should have comment or be unexported (golint)
    • Line 348: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 356: warning: exported method TWT43U.GetData should have comment or be unexported (golint)
    • Line 359: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 366: warning: exported method TWT44U.GetData should have comment or be unexported (golint)
    • Line 369: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 376: warning: exported method TWT38U.IsOverBoughtDates should have comment or be unexported (golint)
    • Line 414: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 418: warning: exported method TWT43U.IsOverBoughtDates should have comment or be unexported (golint)
    • Line 441: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 445: warning: exported method TWT44U.IsOverBoughtDates should have comment or be unexported (golint)
    • Line 482: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 493: warning: exported method TWTXXU.Round should have comment or be unexported (golint)
    • Line 497: warning: exported method TWT38U.Round should have comment or be unexported (golint)
    • Line 501: warning: exported method TWT43U.Round should have comment or be unexported (golint)
    • Line 505: warning: exported method TWT44U.Round should have comment or be unexported (golint)
    • Line 539: warning: exported method TWT43U.URL should have comment or be unexported (golint)
    • Line 544: warning: exported method TWT44U.URL should have comment or be unexported (golint)
    • Line 565: warning: exported method TWT38U.Get should have comment or be unexported (golint)
    • Line 619: warning: exported method TWT43U.Get should have comment or be unexported (golint)
    • Line 673: warning: exported method TWT44U.Get should have comment or be unexported (golint)
    • Line 727: warning: exported method TWTXXU.URL should have comment or be unexported (golint)
    • gogrs/cmd/example.go
    • Line 589: warning: comment on exported type TXXData should be of the form "TXXData ..." (with optional leading article) (golint)
    • gogrs/utils/tempfile.go
    • Line 25: warning: comment on exported const TWSEDURTION should be of the form "TWSEDURTION ..." (golint)
    • Line 28: warning: comment on exported const OTCDURTION should be of the form "OTCDURTION ..." (golint)
    • Line 44: warning: exported function Dbgln should have comment or be unexported (golint)
    • Line 53: warning: exported function Dbg should have comment or be unexported (golint)
    • Line 53: warning: don't use underscores in Go names; func parameter fmt_ should be fmt (golint)
    • Line 134: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 140: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 283: warning: exported function DownloadFile should have comment or be unexported (golint)
    • Line 306: warning: exported function Untar should have comment or be unexported (golint)
    • Line 371: warning: exported function RecoveryStockBackup 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!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!