Preparing report...

Report for github.com/kbkontrakt/hlfabric-ccdevkit

A    Great!    Found 24 issues across 28 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!


gocyclo96%

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.


golint17%

Golint is a linter for Go source code.


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign82%

IneffAssign detects ineffectual assignments in Go code.

    • hlfabric-ccdevkit/auth/acl_svc_test.go
    • Line 29: warning: undeclared name: NewMockACLRepository (ineffassign)
    • Line 37: warning: undeclared name: NewMockIdentityService (ineffassign)
    • Line 173: warning: undeclared name: NewMockACLRepository (ineffassign)
    • Line 177: warning: undeclared name: NewMockIdentityService (ineffassign)
    • Line 193: warning: undeclared name: NewMockACLRepository (ineffassign)
    • Line 197: warning: undeclared name: NewMockIdentityService (ineffassign)
    • Line 213: warning: undeclared name: NewMockACLRepository (ineffassign)
    • Line 221: warning: undeclared name: NewMockIdentityService (ineffassign)
    • hlfabric-ccdevkit/tests/helpers.go
    • Line 30: warning: undeclared name: MockChaincodeStubInterface (ineffassign)
    • Line 176: warning: undeclared name: MockStateQueryIteratorInterface (ineffassign)
    • Line 36: warning: undeclared name: NewMockChaincodeStubInterface (ineffassign)
    • Line 185: warning: undeclared name: NewMockStateQueryIteratorInterface (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!