Preparing report...

Report for github.com/provideplatform/privacy

A    Great!    Found 11 issues across 36 files

Tweet

gofmt97%

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!


gocyclo94%

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.

    • privacy/circuit/circuit.go
    • Line 457: warning: cyclomatic complexity 32 of function (*Circuit).enrich() is high (> 15) (gocyclo)
    • Line 119: warning: cyclomatic complexity 21 of function (*Circuit).Create() is high (> 15) (gocyclo)
    • Line 812: warning: cyclomatic complexity 18 of function (*Circuit).setup() is high (> 15) (gocyclo)
    • Line 951: warning: cyclomatic complexity 16 of function (*Circuit).updateState() is high (> 15) (gocyclo)
    • privacy/circuit/handlers.go
    • Line 243: warning: cyclomatic complexity 23 of function verifyCircuitHandler() is high (> 15) (gocyclo)
    • Line 174: warning: cyclomatic complexity 21 of function proveCircuitHandler() is high (> 15) (gocyclo)
    • Line 386: warning: cyclomatic complexity 20 of function circuitNullifierStoreValueHandler() is high (> 15) (gocyclo)
    • Line 323: warning: cyclomatic complexity 20 of function circuitNoteStoreValueHandler() is high (> 15) (gocyclo)
    • Line 133: warning: cyclomatic complexity 17 of function circuitDetailsHandler() is high (> 15) (gocyclo)

golint77%

Golint is a linter for Go source code.

    • privacy/ceremony/providers/bls.go
    • Line 7: warning: exported type BLS should have comment or be unexported (golint)
    • Line 11: warning: exported method BLS.AggregateSignatures should have comment or be unexported (golint)
    • Line 22: warning: exported method BLS.VerifyAggregateSignatures should have comment or be unexported (golint)
    • privacy/store/providers/smt/store.go
    • Line 28: warning: exported function InitSMT should have comment or be unexported (golint)
    • Line 120: warning: exported method SMT.Contains should have comment or be unexported (golint)
    • Line 142: warning: exported method SMT.Get should have comment or be unexported (golint)
    • Line 146: warning: exported method SMT.Height should have comment or be unexported (golint)
    • Line 150: warning: exported method SMT.Insert should have comment or be unexported (golint)
    • Line 167: warning: exported method SMT.Root should have comment or be unexported (golint)
    • Line 174: warning: exported method SMT.Size should have comment or be unexported (golint)
    • Line 178: warning: exported method SMT.CalculateKey should have comment or be unexported (golint)
    • privacy/store/providers/dmt/store.go
    • Line 29: warning: exported function InitDMT should have comment or be unexported (golint)
    • Line 148: warning: exported method DMT.Contains should have comment or be unexported (golint)
    • Line 157: warning: exported method DMT.Get should have comment or be unexported (golint)
    • Line 170: warning: exported method DMT.Height should have comment or be unexported (golint)
    • Line 174: warning: exported method DMT.Insert should have comment or be unexported (golint)
    • Line 194: warning: exported method DMT.Root should have comment or be unexported (golint)
    • Line 201: warning: exported method DMT.Size should have comment or be unexported (golint)
    • Line 205: warning: exported method DMT.CalculateKey should have comment or be unexported (golint)
    • privacy/test/codegen/codegen.go
    • Line 13: warning: exported type Constraint should have comment or be unexported (golint)
    • Line 38: warning: exported type Circuit should have comment or be unexported (golint)
    • Line 154: warning: exported method Circuit.Make should have comment or be unexported (golint)

license0%

Checks whether your project has a LICENSE file.


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!