Preparing report...

Report for github.com/forbole/juno

A+    Excellent!    Found 24 issues across 59 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!


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!


golint59%

Golint is a linter for Go source code.

    • juno/cmd/migrate/v1/config.go
    • Line 19: warning: exported type Config should have comment or be unexported (golint)
    • Line 55: warning: exported type RPCConfig should have comment or be unexported (golint)
    • Line 61: warning: exported type GrpcConfig should have comment or be unexported (golint)
    • Line 66: warning: exported type CosmosConfig should have comment or be unexported (golint)
    • Line 71: warning: exported type DatabaseConfig should have comment or be unexported (golint)
    • Line 83: warning: exported type LoggingConfig should have comment or be unexported (golint)
    • Line 88: warning: exported type ParsingConfig should have comment or be unexported (golint)
    • Line 98: warning: exported type PruningConfig should have comment or be unexported (golint)
    • Line 104: warning: exported type TelemetryConfig should have comment or be unexported (golint)
    • juno/node/remote/config.go
    • Line 13: warning: exported function NewDetails should have comment or be unexported (golint)
    • Line 20: warning: exported function DefaultDetails should have comment or be unexported (golint)
    • juno/node/source.go
    • Line 4: warning: exported const LocalKeeper should have comment (or a comment on this block) or be unexported (golint)
    • juno/node/config/config.go
    • Line 11: warning: exported const TypeRemote should have comment (or a comment on this block) or be unexported (golint)
    • Line 15: warning: exported type Config should have comment or be unexported (golint)
    • Line 20: warning: exported function NewConfig should have comment or be unexported (golint)
    • Line 27: warning: exported function DefaultConfig should have comment or be unexported (golint)
    • Line 31: warning: exported method Config.UnmarshalYAML should have comment or be unexported (golint)
    • Line 55: warning: exported method Config.MarshalYAML should have comment or be unexported (golint)
    • Line 68: warning: exported type Details should have comment or be unexported (golint)
    • juno/types/utils.go
    • Line 24: warning: exported function FindEventByType should have comment or be unexported (golint)
    • Line 34: warning: exported function FindEventsByType should have comment or be unexported (golint)
    • Line 45: warning: exported function FindAttributeByKey should have comment or be unexported (golint)
    • juno/modules/module.go
    • Line 37: warning: exported type AdditionalOperationsModule should have comment or be unexported (golint)
    • Line 45: warning: exported type AsyncOperationsModule should have comment or be unexported (golint)
    • Line 52: warning: exported type PeriodicOperationsModule should have comment or be unexported (golint)
    • Line 59: warning: exported type FastSyncModule should have comment or be unexported (golint)
    • Line 67: warning: exported type GenesisModule should have comment or be unexported (golint)
    • Line 75: warning: exported type BlockModule should have comment or be unexported (golint)
    • Line 84: warning: exported type TransactionModule should have comment or be unexported (golint)
    • Line 92: warning: exported type MessageModule should have comment or be unexported (golint)
    • juno/cmd/migrate/migrate.go
    • Line 21: warning: exported type Config should have comment or be unexported (golint)
    • Line 52: warning: exported function MigrateConfig should have comment or be unexported (golint)
    • juno/node/local/config.go
    • Line 15: warning: exported function NewDetails should have comment or be unexported (golint)
    • Line 21: warning: exported function DefaultDetails should have comment or be unexported (golint)
    • juno/node/local/source.go
    • Line 111: warning: exported method Source.RegisterKey should have comment or be unexported (golint)
    • Line 116: warning: exported method Source.RegisterTKey should have comment or be unexported (golint)
    • Line 121: warning: exported method Source.RegisterSubspace should have comment or be unexported (golint)
    • juno/database/config/config.go
    • Line 3: warning: exported type Config should have comment or be unexported (golint)
    • Line 15: warning: exported function NewDatabaseConfig should have comment or be unexported (golint)
    • juno/logging/logger.go
    • Line 12: warning: exported const LogKeyModule should have comment (or a comment on this block) or be unexported (golint)
    • juno/types/config/config.go
    • Line 43: warning: exported function DefaultConfig should have comment or be unexported (golint)
    • Line 51: warning: exported method Config.GetBytes should have comment or be unexported (golint)
    • Line 57: warning: exported type ChainConfig should have comment or be unexported (golint)
    • Line 75: warning: exported method ChainConfig.IsModuleEnabled should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


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!