Preparing report...

Report for github.com/m2q/algo-siam

(v0.0.0-20211123172250-294e5dfaacc0)

A    Great!    Found 8 issues across 12 files

Tweet

gofmt75%

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!


golint33%

Golint is a linter for Go source code.

    • algo-siam/client/contracts.go
    • Line 3: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 5: warning: comment on exported var ApproveTeal should be of the form "ApproveTeal ..." (golint)
    • Line 8: warning: comment on exported var ClearTeal should be of the form "ClearTeal ..." (golint)
    • Line 13: warning: exported const LocalInts should have comment or be unexported (golint)
    • Line 14: warning: exported const LocalBytes should have comment or be unexported (golint)
    • Line 15: warning: exported const GlobalInts should have comment or be unexported (golint)
    • Line 16: warning: exported const GlobalBytes should have comment or be unexported (golint)
    • algo-siam/client/simple_mock.go
    • Line 51: warning: exported function CreateAlgorandClientMock should have comment or be unexported (golint)
    • Line 94: warning: should omit 2nd value from range; this loop is equivalent to `for i := range ...` (golint)
    • Line 104: warning: context.Context should be the first parameter of a function (golint)
    • Line 104: warning: exported method AlgorandMock.AccountInformation should have comment or be unexported (golint)
    • Line 109: warning: context.Context should be the first parameter of a function (golint)
    • Line 109: warning: exported method AlgorandMock.GetApplicationByID should have comment or be unexported (golint)
    • Line 114: warning: exported method AlgorandMock.SuggestedParams should have comment or be unexported (golint)
    • Line 119: warning: exported method AlgorandMock.HealthCheck should have comment or be unexported (golint)
    • Line 124: warning: exported method AlgorandMock.Status should have comment or be unexported (golint)
    • Line 129: warning: context.Context should be the first parameter of a function (golint)
    • Line 129: warning: exported method AlgorandMock.StatusAfterBlock should have comment or be unexported (golint)
    • Line 134: warning: context.Context should be the first parameter of a function (golint)
    • Line 134: warning: exported method AlgorandMock.SendRawTransaction should have comment or be unexported (golint)
    • Line 139: warning: context.Context should be the first parameter of a function (golint)
    • Line 139: warning: exported method AlgorandMock.PendingTransactionInformation should have comment or be unexported (golint)
    • Line 150: warning: context.Context should be the first parameter of a function (golint)
    • Line 150: warning: exported method AlgorandMock.TealCompile should have comment or be unexported (golint)
    • Line 155: warning: context.Context should be the first parameter of a function (golint)
    • Line 155: warning: exported method AlgorandMock.ExecuteTransaction should have comment or be unexported (golint)
    • Line 160: warning: exported method AlgorandMock.DeleteApplication should have comment or be unexported (golint)
    • Line 180: warning: exported method AlgorandMock.CreateApplication should have comment or be unexported (golint)
    • Line 193: warning: exported method AlgorandMock.DeleteGlobals should have comment or be unexported (golint)
    • Line 198: warning: should omit 2nd value from range; this loop is equivalent to `for i := range ...` (golint)
    • Line 216: warning: exported method AlgorandMock.StoreGlobals should have comment or be unexported (golint)
    • Line 221: warning: should omit 2nd value from range; this loop is equivalent to `for i := range ...` (golint)
    • algo-siam/client/simple_mock_test.go
    • Line 79: warning: should omit 2nd value from range; this loop is equivalent to `for i := range ...` (golint)
    • Line 89: warning: should omit 2nd value from range; this loop is equivalent to `for i := range ...` (golint)
    • Line 101: warning: should omit 2nd value from range; this loop is equivalent to `for i := range ...` (golint)
    • algo-siam/client/wrapper.go
    • Line 20: warning: exported function CreateAlgorandClientWrapper should have comment or be unexported (golint)
    • Line 25: warning: exported method AlgorandClientWrapper.SuggestedParams should have comment or be unexported (golint)
    • Line 34: warning: exported method AlgorandClientWrapper.HealthCheck should have comment or be unexported (golint)
    • Line 38: warning: exported method AlgorandClientWrapper.Status should have comment or be unexported (golint)
    • Line 42: warning: context.Context should be the first parameter of a function (golint)
    • Line 42: warning: exported method AlgorandClientWrapper.StatusAfterBlock should have comment or be unexported (golint)
    • Line 46: warning: context.Context should be the first parameter of a function (golint)
    • Line 46: warning: exported method AlgorandClientWrapper.AccountInformation should have comment or be unexported (golint)
    • Line 50: warning: context.Context should be the first parameter of a function (golint)
    • Line 50: warning: exported method AlgorandClientWrapper.GetApplicationByID should have comment or be unexported (golint)
    • Line 54: warning: context.Context should be the first parameter of a function (golint)
    • Line 54: warning: exported method AlgorandClientWrapper.SendRawTransaction should have comment or be unexported (golint)
    • Line 58: warning: context.Context should be the first parameter of a function (golint)
    • Line 58: warning: exported method AlgorandClientWrapper.PendingTransactionInformation should have comment or be unexported (golint)
    • Line 62: warning: context.Context should be the first parameter of a function (golint)
    • Line 62: warning: exported method AlgorandClientWrapper.TealCompile should have comment or be unexported (golint)
    • Line 66: warning: context.Context should be the first parameter of a function (golint)
    • Line 66: warning: exported method AlgorandClientWrapper.ExecuteTransaction should have comment or be unexported (golint)
    • Line 86: warning: exported method AlgorandClientWrapper.DeleteApplication should have comment or be unexported (golint)
    • Line 102: warning: exported method AlgorandClientWrapper.CreateApplication should have comment or be unexported (golint)
    • Line 126: warning: exported method AlgorandClientWrapper.DeleteGlobals should have comment or be unexported (golint)
    • Line 135: warning: exported method AlgorandClientWrapper.StoreGlobals should have comment or be unexported (golint)
    • algo-siam/log_wrapper.go
    • Line 7: warning: exported function NewLogWrapper should have comment or be unexported (golint)
    • Line 17: warning: exported method LogWrapper.Enable should have comment or be unexported (golint)
    • Line 21: warning: exported method LogWrapper.Disable should have comment or be unexported (golint)
    • algo-siam/util.go
    • Line 57: warning: should omit 2nd value from range; this loop is equivalent to `for k := range ...` (golint)
    • algo-siam/client/algorand.go
    • Line 17: warning: comment on exported const MaxArgs should be of the form "MaxArgs ..." (golint)
    • Line 19: warning: exported const MaxKVArgs should have comment or be unexported (golint)
    • Line 21: warning: exported const AlgorandDefaultTimeout should have comment or be unexported (golint)
    • Line 22: warning: exported const AlgorandDefaultMinSleep should have comment or be unexported (golint)
    • Line 127: warning: exported function CompileProgram should have comment or be unexported (golint)
    • Line 139: warning: context.Context should be the first parameter of a function (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign91%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!