Report for github.com/alrevuelta/eth-pools-metrics

(v0.0.3)

A    Great!    Found 16 issues across 19 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!


golint21%

Golint is a linter for Go source code.

    • pools/pools.go
    • Line 3: warning: comment on exported var PoolsAddresses should be of the form "PoolsAddresses ..." (golint)
    • metrics/deposits.go
    • Line 9: warning: comment on exported method Metrics.StreamDeposits should be of the form "StreamDeposits ..." (golint)
    • metrics/price.go
    • Line 14: warning: exported method Metrics.StreamEthPrice should have comment or be unexported (golint)
    • metrics/validatorperformance.go
    • Line 17: warning: exported type ValidatorPerformanceMetrics should have comment or be unexported (golint)
    • Line 28: warning: exported method Metrics.StreamValidatorPerformance should have comment or be unexported (golint)
    • Line 162: warning: comment on exported method Metrics.FetchValidatorPerformance should be of the form "FetchValidatorPerformance ..." (golint)
    • thegraph/thegraph.go
    • Line 21: warning: comment on exported var ENDPOINTS should be of the form "ENDPOINTS ..." (golint)
    • Line 29: warning: comment on exported const MAX_RESULTS_PAGE should be of the form "MAX_RESULTS_PAGE ..." (golint)
    • Line 33: warning: comment on exported var QUERY_SCHEMA_0 should be of the form "QUERY_SCHEMA_0 ..." (golint)
    • Line 39: warning: exported var QUERY_SCHEMA_1 should have comment or be unexported (golint)
    • Line 44: warning: exported type Thegraph should have comment or be unexported (golint)
    • Line 51: warning: comment on exported type Deposit should be of the form "Deposit ..." (with optional leading article) (golint)
    • Line 57: warning: exported type Deposits should have comment or be unexported (golint)
    • Line 61: warning: exported type Data should have comment or be unexported (golint)
    • Line 65: warning: exported function NewThegraph should have comment or be unexported (golint)
    • Line 95: warning: comment on exported method Thegraph.GetAllDepositedKeys should be of the form "GetAllDepositedKeys ..." (golint)
    • Line 121: warning: comment on exported function RemoveDuplicates should be of the form "RemoveDuplicates ..." (golint)
    • Line 135: warning: exported method Thegraph.GetDepositedKeys should have comment or be unexported (golint)
    • Line 218: warning: comment on exported function ValidateAndDecodeWithdrawalCredentials should be of the form "ValidateAndDecodeWithdrawalCredentials ..." (golint)
    • Line 225: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • main.go
    • Line 11: warning: comment on exported var ReleaseVersion should be of the form "ReleaseVersion ..." (golint)
    • metrics/utils.go
    • Line 11: warning: exported function GetChainHead should have comment or be unexported (golint)
    • Line 19: warning: exported function BoolToUint64 should have comment or be unexported (golint)
    • Line 26: warning: exported function GetSlotsInEpoch should have comment or be unexported (golint)
    • Line 42: warning: exported function GetBeaconConfig should have comment or be unexported (golint)
    • Line 50: warning: exported function ToBytes48 should have comment or be unexported (golint)
    • prometheus/prometheus.go
    • Line 11: warning: exported function Run should have comment or be unexported (golint)
    • Line 21: warning: exported var NOfUnkownValidators should have comment or be unexported (golint)
    • prysm-concurrent/concurrent_grpc.go
    • Line 15: warning: exported type PrysmConcurrent should have comment or be unexported (golint)
    • Line 22: warning: exported function NewPrysmConcurrent should have comment or be unexported (golint)
    • Line 43: warning: exported method PrysmConcurrent.ParalelGetDuties should have comment or be unexported (golint)
    • Line 97: warning: comment on exported method PrysmConcurrent.ParalelGetMultipleValidatorStatus should be of the form "ParalelGetMultipleValidatorStatus ..." (golint)
    • Line 108: warning: comment on exported method PrysmConcurrent.ParalelGetValidatorPerformance should be of the form "ParalelGetValidatorPerformance ..." (golint)
    • metrics/duties.go
    • Line 14: warning: exported type Duty should have comment or be unexported (golint)
    • Line 19: warning: comment on exported method Metrics.StreamDuties should be of the form "StreamDuties ..." (golint)
    • Line 58: warning: exported method Metrics.FetchDuties should have comment or be unexported (golint)
    • metrics/rewards.go
    • Line 14: warning: exported method Metrics.StreamRewards should have comment or be unexported (golint)
    • Line 57: warning: exported method Metrics.GetRewards should have comment or be unexported (golint)
    • Line 80: warning: exported method Metrics.GetBalances should have comment or be unexported (golint)
    • config.go
    • Line 10: warning: exported type Config should have comment or be unexported (golint)
    • Line 31: warning: exported function NewCliConfig should have comment or be unexported (golint)
    • metrics/metrics.go
    • Line 22: warning: exported type Metrics should have comment or be unexported (golint)
    • Line 41: warning: exported function NewMetrics should have comment or be unexported (golint)
    • Line 89: warning: exported method Metrics.Run should have comment or be unexported (golint)
    • metrics/validatorstatus.go
    • Line 11: warning: exported type ValidatorStatusMetrics should have comment or be unexported (golint)
    • Line 30: warning: comment on exported method Metrics.StreamValidatorStatus should be of the form "StreamValidatorStatus ..." (golint)

license0%

Checks whether your project has a LICENSE file.


ineffassign94%

IneffAssign detects ineffectual assignments in Go code.


misspell89%

Misspell Finds commonly misspelled English words