Preparing report...

Report for github.com/AnneNamuli/go-stellar

F    ... is for lots of things to Fix!    Found 111 issues across 876 files

Tweet

gofmt0%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command

An error occurred while running this test (AddError: could not parse "_repos/src/github.com/AnneNamuli/go-stellar/support/http/httpauthz/fatal error: runtime: out of memory:1::warning: file is not gofmted with -s (gofmt)" - strconv.Atoi: parsing " runtime": invalid syntax)


go_vet0%

go vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string.

An error occurred while running this test (exit status 2)


golint0%

Golint is a linter for Go source code.

An error occurred while running this test (exit status 2)


gocyclo95%

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.

    • go-stellar/services/horizon/internal/ingest/fsm.go
    • Line 131: warning: cyclomatic complexity 20 of function (startState).run() is high (> 15) (gocyclo)
    • Line 360: warning: cyclomatic complexity 20 of function (resumeState).run() is high (> 15) (gocyclo)
    • Line 654: warning: cyclomatic complexity 19 of function (reingestHistoryRangeState).run() is high (> 15) (gocyclo)
    • Line 247: warning: cyclomatic complexity 19 of function (buildState).run() is high (> 15) (gocyclo)
    • go-stellar/xdr/xdr_generated.go
    • Line 14440: warning: cyclomatic complexity 39 of function NewOperationResultTr() is high (> 15) (gocyclo)
    • Line 9313: warning: cyclomatic complexity 37 of function NewOperationBody() is high (> 15) (gocyclo)
    • Line 7418: warning: cyclomatic complexity 30 of function NewStellarMessage() is high (> 15) (gocyclo)
    • Line 14395: warning: cyclomatic complexity 20 of function (OperationResultTr).ArmForSwitch() is high (> 15) (gocyclo)
    • Line 9268: warning: cyclomatic complexity 20 of function (OperationBody).ArmForSwitch() is high (> 15) (gocyclo)
    • Line 15375: warning: cyclomatic complexity 17 of function NewInnerTransactionResultResult() is high (> 15) (gocyclo)
    • Line 7381: warning: cyclomatic complexity 16 of function (StellarMessage).ArmForSwitch() is high (> 15) (gocyclo)
    • go-stellar/services/horizon/internal/ingest/processors/effects_processor.go
    • Line 155: warning: cyclomatic complexity 24 of function (*transactionOperationWrapper).effects() is high (> 15) (gocyclo)
    • Line 330: warning: cyclomatic complexity 23 of function (*effectsWrapper).addLedgerEntrySponsorshipEffects() is high (> 15) (gocyclo)
    • Line 518: warning: cyclomatic complexity 19 of function (*effectsWrapper).addSetOptionsEffects() is high (> 15) (gocyclo)
    • Line 268: warning: cyclomatic complexity 17 of function (*effectsWrapper).addSignerSponsorshipEffects() is high (> 15) (gocyclo)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign97%

IneffAssign detects ineffectual assignments in Go code.


misspell96%

Misspell Finds commonly misspelled English words