Preparing report...

Report for github.com/33cn/plugincgo

A+    Excellent!    Found 16 issues across 41 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!


gocyclo97%

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.


golint65%

Golint is a linter for Go source code.

    • plugincgo/plugin/dapp/jvm/executor/adapter.go
    • Line 21: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 25: warning: exported const JliSuccess should have comment (or a comment on this block) or be unexported (golint)
    • Line 29: warning: don't use underscores in Go names; const Bool_true should be BoolTrue (golint)
    • Line 30: warning: don't use underscores in Go names; const Bool_false should be BoolFalse (golint)
    • Line 34: warning: don't use underscores in Go names; var jvm_init_alreay should be jvmInitAlreay (golint)
    • Line 36: warning: exported var Chain33LoaderJarPath should have comment or be unexported (golint)
    • Line 91: warning: don't use underscores in Go names; var const_jdkPath should be constJdkPath (golint)
    • Line 94: warning: don't use underscores in Go names; var const_jarPath should be constJarPath (golint)
    • Line 131: warning: comment on exported function SetQueryResult should be of the form "SetQueryResult ..." (golint)
    • Line 152: warning: comment on exported function BindTxQueryJVMEnvHandle should be of the form "BindTxQueryJVMEnvHandle ..." (golint)
    • Line 164: warning: comment on exported function ExecFrozen should be of the form "ExecFrozen ..." (golint)
    • Line 177: warning: comment on exported function ExecActive should be of the form "ExecActive ..." (golint)
    • Line 187: warning: comment on exported function ExecTransfer should be of the form "ExecTransfer ..." (golint)
    • Line 198: warning: comment on exported function GetRandom should be of the form "GetRandom ..." (golint)
    • Line 212: warning: comment on exported function GetFrom should be of the form "GetFrom ..." (golint)
    • Line 220: warning: comment on exported function GetCurrentHeight should be of the form "GetCurrentHeight ..." (golint)
    • Line 226: warning: comment on exported function StopTransWithErrInfo should be of the form "StopTransWithErrInfo ..." (golint)
    • Line 235: warning: comment on exported function SetState should be of the form "SetState ..." (golint)
    • Line 249: warning: comment on exported function GetFromState should be of the form "GetFromState ..." (golint)
    • Line 259: warning: comment on exported function SetStateInStr should be of the form "SetStateInStr ..." (golint)
    • Line 272: warning: comment on exported function GetFromStateInStr should be of the form "GetFromStateInStr ..." (golint)
    • Line 293: warning: comment on exported function SetLocal should be of the form "SetLocal ..." (golint)
    • Line 307: warning: comment on exported function GetFromLocal should be of the form "GetFromLocal ..." (golint)
    • Line 316: warning: comment on exported function SetLocalInStr should be of the form "SetLocalInStr ..." (golint)
    • Line 329: warning: comment on exported function GetFromLocalInStr should be of the form "GetFromLocalInStr ..." (golint)
    • Line 515: warning: comment on exported function ForwardQueryResult should be of the form "ForwardQueryResult ..." (golint)
    • plugincgo/plugin/dapp/jvm/executor/exec_del_local.go
    • Line 9: warning: don't use underscores in Go names; method ExecDelLocal_CreateJvmContract should be ExecDelLocalCreateJvmContract (golint)
    • Line 14: warning: don't use underscores in Go names; method ExecDelLocal_CallJvmContract should be ExecDelLocalCallJvmContract (golint)
    • Line 19: warning: don't use underscores in Go names; method ExecDelLocal_UpdateJvmContract should be ExecDelLocalUpdateJvmContract (golint)
    • plugincgo/plugin/dapp/jvm/executor/exec_local.go
    • Line 11: warning: don't use underscores in Go names; method ExecLocal_CreateJvmContract should be ExecLocalCreateJvmContract (golint)
    • Line 16: warning: don't use underscores in Go names; method ExecLocal_CallJvmContract should be ExecLocalCallJvmContract (golint)
    • Line 21: warning: don't use underscores in Go names; method ExecLocal_UpdateJvmContract should be ExecLocalUpdateJvmContract (golint)
    • plugincgo/plugin/dapp/jvm/executor/query.go
    • Line 11: warning: don't use underscores in Go names; method Query_CheckContractNameExist should be QueryCheckContractNameExist (golint)
    • Line 19: warning: comment on exported method JVMExecutor.Query_JavaContract should be of the form "Query_JavaContract ..." (golint)
    • Line 20: warning: don't use underscores in Go names; method Query_JavaContract should be QueryJavaContract (golint)
    • plugincgo/plugin/crypto/bls/bls.go
    • Line 17: warning: exported const BLSPrivateKeyLength should have comment (or a comment on this block) or be unexported (golint)
    • Line 26: warning: exported function New should have comment or be unexported (golint)
    • Line 85: warning: exported method Driver.Aggregate should have comment or be unexported (golint)
    • Line 104: warning: exported method Driver.AggregatePublic should have comment or be unexported (golint)
    • Line 122: warning: exported method Driver.VerifyAggregatedOne should have comment or be unexported (golint)
    • Line 143: warning: comment on exported method Driver.VerifyAggregatedN should be of the form "VerifyAggregatedN ..." (golint)
    • plugincgo/plugin/dapp/jvm/types/jvm.go
    • Line 13: warning: exported const CheckNameExistsFunc should have comment (or a comment on this block) or be unexported (golint)
    • Line 19: warning: don't use underscores in Go names; const Exception_Fail should be ExceptionFail (golint)
    • Line 31: warning: don't use underscores in Go names; const Coin_Precision should be CoinPrecision (golint)
    • Line 35: warning: exported type JvmContratOpType should have comment or be unexported (golint)
    • Line 38: warning: exported const CreateJvmContractAction should have comment (or a comment on this block) or be unexported (golint)
    • plugincgo/plugin/dapp/jvm/executor/exec.go
    • Line 13: warning: don't use underscores in Go names; method Exec_CreateJvmContract should be ExecCreateJvmContract (golint)
    • Line 61: warning: don't use underscores in Go names; method Exec_CallJvmContract should be ExecCallJvmContract (golint)
    • Line 117: warning: don't use underscores in Go names; method Exec_UpdateJvmContract should be ExecUpdateJvmContract (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign97%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!