Preparing report...

Report for github.com/gobitfly/eth2-beaconchain-explorer

A    Great!    Found 70 issues across 91 files

Tweet

gofmt98%

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!


gocyclo70%

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.

    • eth2-beaconchain-explorer/db/db.go
    • Line 1183: warning: cyclomatic complexity 35 of function saveBlocks() is high (> 15) (gocyclo)
    • Line 821: warning: cyclomatic complexity 21 of function saveValidators() is high (> 15) (gocyclo)
    • Line 617: warning: cyclomatic complexity 17 of function SaveEpoch() is high (> 15) (gocyclo)
    • eth2-beaconchain-explorer/handlers/validator.go
    • Line 43: warning: cyclomatic complexity 77 of function Validator() is high (> 15) (gocyclo)
    • Line 1173: warning: cyclomatic complexity 26 of function ValidatorHistory() is high (> 15) (gocyclo)
    • Line 797: warning: cyclomatic complexity 18 of function ValidatorAttestations() is high (> 15) (gocyclo)
    • Line 1320: warning: cyclomatic complexity 17 of function ValidatorStatsTable() is high (> 15) (gocyclo)
    • Line 1056: warning: cyclomatic complexity 16 of function ValidatorSave() is high (> 15) (gocyclo)

golint37%

Golint is a linter for Go source code.

    • eth2-beaconchain-explorer/rpc/lighthouse.go
    • Line 39: warning: exported method LighthouseClient.GetNewBlockChan should have comment or be unexported (golint)
    • Line 132: warning: exported method LighthouseClient.GetValidatorQueue should have comment or be unexported (golint)
    • Line 658: warning: exported method LighthouseClient.GetFinalityCheckpoints should have comment or be unexported (golint)
    • Line 666: warning: error var notFoundErr should have name of the form errFoo (golint)
    • Line 696: warning: comment on exported function Uint64Unmarshal should be of the form "Uint64Unmarshal ..." (golint)
    • Line 718: warning: exported type StandardBeaconHeaderResponse should have comment or be unexported (golint)
    • Line 735: warning: exported type StandardFinalityCheckpointsResponse should have comment or be unexported (golint)
    • Line 752: warning: exported type StandardProposerDuty should have comment or be unexported (golint)
    • Line 758: warning: exported type StandardProposerDutiesResponse should have comment or be unexported (golint)
    • Line 763: warning: exported type StandardCommitteeEntry should have comment or be unexported (golint)
    • Line 769: warning: exported type StandardCommitteesResponse should have comment or be unexported (golint)
    • Line 773: warning: exported type LighthouseValidatorParticipationResponse should have comment or be unexported (golint)
    • Line 783: warning: exported type ProposerSlashing should have comment or be unexported (golint)
    • Line 806: warning: exported type AttesterSlashing should have comment or be unexported (golint)
    • Line 843: warning: exported type Attestation should have comment or be unexported (golint)
    • Line 861: warning: exported type Deposit should have comment or be unexported (golint)
    • Line 871: warning: exported type VoluntaryExit should have comment or be unexported (golint)
    • Line 879: warning: exported type Eth1Data should have comment or be unexported (golint)
    • Line 885: warning: exported type SyncAggregate should have comment or be unexported (golint)
    • Line 890: warning: exported type AnySignedBlock should have comment or be unexported (golint)
    • Line 913: warning: exported type StandardV2BlockResponse should have comment or be unexported (golint)
    • Line 918: warning: exported type StandardV1BlockRootResponse should have comment or be unexported (golint)
    • Line 924: warning: exported type StandardValidatorEntry should have comment or be unexported (golint)
    • Line 940: warning: exported type StandardValidatorsResponse should have comment or be unexported (golint)
    • Line 944: warning: exported method LighthouseClient.GetBlockStatusByEpoch should have comment or be unexported (golint)
    • Line 944: warning: receiver name pc should be consistent with previous receiver name lc for LighthouseClient (golint)
    • Line 949: warning: exported type StandardSyncingResponse should have comment or be unexported (golint)
    • Line 957: warning: exported type StandardValidatorBalancesResponse should have comment or be unexported (golint)
    • eth2-beaconchain-explorer/db/subscriptions.go
    • Line 20: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 46: warning: exported type WatchlistEntry should have comment or be unexported (golint)
    • Line 48: warning: don't use underscores in Go names; struct field Validator_publickey should be ValidatorPublickey (golint)
    • Line 51: warning: exported function AddToWatchlist should have comment or be unexported (golint)
    • Line 80: warning: don't use underscores in Go names; func parameter validator_publickey should be validatorPublickey (golint)
    • Line 106: warning: exported type WatchlistFilter should have comment or be unexported (golint)
    • eth2-beaconchain-explorer/services/rewards.go
    • Line 26: warning: exported function GetValidatorHist should have comment or be unexported (golint)
    • Line 135: warning: exported function GeneratePdfReport should have comment or be unexported (golint)
    • Line 297: warning: exported function GetPdfReport should have comment or be unexported (golint)
    • Line 318: warning: don't use underscores in Go names; var la_date should be laDate (golint)
    • Line 320: warning: don't use underscores in Go names; var la_time should be laTime (golint)
    • eth2-beaconchain-explorer/handlers/validatorRewards.go
    • Line 31: warning: exported function ValidatorRewards should have comment or be unexported (golint)
    • Line 107: warning: exported function RewardsHistoricalData should have comment or be unexported (golint)
    • Line 145: warning: exported function DownloadRewardsHistoricalData should have comment or be unexported (golint)
    • Line 192: warning: exported function RewardNotificationSubscribe should have comment or be unexported (golint)
    • Line 253: warning: exported function RewardNotificationUnsubscribe should have comment or be unexported (golint)
    • Line 295: warning: exported function RewardGetUserSubscriptions should have comment or be unexported (golint)
    • eth2-beaconchain-explorer/handlers/common.go
    • Line 20: warning: exported function GetValidatorOnlineThresholdSlot should have comment or be unexported (golint)
    • Line 170: warning: exported function GetCurrency should have comment or be unexported (golint)
    • Line 178: warning: exported function GetCurrencySymbol should have comment or be unexported (golint)
    • Line 205: warning: exported function GetCurrentPrice should have comment or be unexported (golint)
    • Line 217: warning: exported function GetCurrentPriceFormatted should have comment or be unexported (golint)
    • Line 227: warning: exported function GetTruncCurrentPriceFormatted should have comment or be unexported (golint)
    • eth2-beaconchain-explorer/handlers/pools.go
    • Line 24: warning: exported function Pools should have comment or be unexported (golint)
    • Line 61: warning: exported function GetAvgCurrentStreak should have comment or be unexported (golint)
    • Line 115: warning: exported function GetIncomePerEthChart should have comment or be unexported (golint)
    • eth2-beaconchain-explorer/types/frontend.go
    • Line 11: warning: exported type EventName should have comment or be unexported (golint)
    • Line 14: warning: exported const ValidatorBalanceDecreasedEventName should have comment (or a comment on this block) or be unexported (golint)
    • Line 38: warning: exported var EventNames should have comment or be unexported (golint)
    • Line 63: warning: exported function GetDisplayableEventName should have comment or be unexported (golint)
    • Line 67: warning: exported function EventNameFromString should have comment or be unexported (golint)
    • Line 76: warning: exported type Tag should have comment or be unexported (golint)
    • Line 79: warning: exported const ValidatorTagsWatchlist should have comment (or a comment on this block) or be unexported (golint)
    • Line 82: warning: exported type Notification should have comment or be unexported (golint)
    • Line 92: warning: exported type Subscription should have comment or be unexported (golint)
    • Line 104: warning: exported type TaggedValidators should have comment or be unexported (golint)
    • Line 111: warning: exported type MinimalTaggedValidators should have comment or be unexported (golint)
    • Line 116: warning: exported type OAuthAppData should have comment or be unexported (golint)
    • Line 124: warning: exported type OAuthCodeData should have comment or be unexported (golint)
    • Line 129: warning: exported type MobileSettingsData should have comment or be unexported (golint)
    • Line 133: warning: exported type MobileSubscription should have comment or be unexported (golint)
    • Line 141: warning: exported type MobileSubscriptionTransactionGeneric should have comment or be unexported (golint)
    • Line 147: warning: exported type PremiumData should have comment or be unexported (golint)
    • Line 156: warning: exported type UserWithPremium should have comment or be unexported (golint)
    • Line 161: warning: exported type EmailAttachment should have comment or be unexported (golint)
    • eth2-beaconchain-explorer/db/stripe.go
    • Line 107: warning: comment on exported function StripeGetUserSubscription should be of the form "StripeGetUserSubscription ..." (golint)
    • Line 160: warning: exported function StripeGetCustomerUserId should have comment or be unexported (golint)
    • eth2-beaconchain-explorer/utils/format.go
    • Line 24: warning: exported function FormatMessageToHtml should have comment or be unexported (golint)
    • Line 87: warning: exported function FormatBalanceSql should have comment or be unexported (golint)
    • Line 108: warning: exported function FormatBalanceGwei should have comment or be unexported (golint)
    • Line 139: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 168: warning: comment on exported function FormatBalanceShort should be of the form "FormatBalanceShort ..." (golint)
    • Line 188: warning: exported function FormatAddCommas should have comment or be unexported (golint)
    • Line 221: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 226: warning: comment on exported function FormatInclusionDelay should be of the form "FormatInclusionDelay ..." (golint)
    • Line 283: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 385: warning: don't use underscores in Go names; func parameter trunc_opt should be truncOpt (golint)
    • Line 401: warning: exported function CopyButton should have comment or be unexported (golint)
    • Line 405: warning: exported function FormatBitlist should have comment or be unexported (golint)
    • Line 436: warning: exported function FormatParticipation should have comment or be unexported (golint)
    • Line 478: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 483: warning: exported function FormatIncomeSql should have comment or be unexported (golint)
    • Line 501: warning: exported function FormatSqlInt64 should have comment or be unexported (golint)
    • Line 504: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 534: warning: exported function FormatMachineName should have comment or be unexported (golint)
    • Line 546: warning: comment on exported function FormatTsWithoutTooltip should be of the form "FormatTsWithoutTooltip ..." (golint)
    • Line 551: warning: comment on exported function FormatTimestampTs should be of the form "FormatTimestampTs ..." (golint)
    • Line 607: warning: don't use underscores in Go names; var special_tag should be specialTag (golint)
    • Line 631: warning: exported function FormatValidatorTags should have comment or be unexported (golint)
    • Line 644: warning: exported function FormatValidatorWithName should have comment or be unexported (golint)
    • Line 660: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 665: warning: exported function FormatEth1AddressWithName should have comment or be unexported (golint)
    • Line 669: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 689: warning: comment on exported function FormatSlashedValidatorWithName should be of the form "FormatSlashedValidatorWithName ..." (golint)
    • Line 693: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 720: warning: comment on exported function FormatSlashedValidatorsWithName should be of the form "FormatSlashedValidatorsWithName ..." (golint)
    • Line 742: warning: exported function FormatValidatorName should have comment or be unexported (golint)
    • Line 747: warning: exported function FormatAttestationInclusionEffectiveness should have comment or be unexported (golint)
    • Line 763: warning: exported function FormatPercentageColored should have comment or be unexported (golint)
    • Line 781: warning: exported function DerefString should have comment or be unexported (golint)
    • Line 794: warning: exported function KFormatterEthPrice should have comment or be unexported (golint)
    • Line 802: warning: exported function FormatRPL should have comment or be unexported (golint)
    • Line 807: warning: exported function FormatFloatWithPrecision should have comment or be unexported (golint)
    • eth2-beaconchain-explorer/exporter/rocketpool.go
    • Line 15: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 45: warning: exported type RocketpoolExporter should have comment or be unexported (golint)
    • Line 56: warning: exported function NewRocketpoolExporter should have comment or be unexported (golint)
    • Line 73: warning: exported method RocketpoolExporter.Init should have comment or be unexported (golint)
    • Line 94: warning: exported method RocketpoolExporter.InitMinipools should have comment or be unexported (golint)
    • Line 106: warning: exported method RocketpoolExporter.InitNodes should have comment or be unexported (golint)
    • Line 118: warning: exported method RocketpoolExporter.InitDAOProposals should have comment or be unexported (golint)
    • Line 130: warning: exported method RocketpoolExporter.InitDAOMembers should have comment or be unexported (golint)
    • Line 142: warning: exported method RocketpoolExporter.Run should have comment or be unexported (golint)
    • Line 167: warning: exported method RocketpoolExporter.Update should have comment or be unexported (golint)
    • Line 176: warning: exported method RocketpoolExporter.Save should have comment or be unexported (golint)
    • Line 201: warning: exported method RocketpoolExporter.UpdateMinipools should have comment or be unexported (golint)
    • Line 229: warning: exported method RocketpoolExporter.UpdateNodes should have comment or be unexported (golint)
    • Line 257: warning: exported method RocketpoolExporter.UpdateDAOProposals should have comment or be unexported (golint)
    • Line 277: warning: exported method RocketpoolExporter.UpdateDAOMembers should have comment or be unexported (golint)
    • Line 306: warning: exported method RocketpoolExporter.SaveMinipools should have comment or be unexported (golint)
    • Line 371: warning: exported method RocketpoolExporter.SaveNodes should have comment or be unexported (golint)
    • Line 434: warning: exported method RocketpoolExporter.SaveDAOProposals should have comment or be unexported (golint)
    • Line 509: warning: exported method RocketpoolExporter.SaveDAOMembers should have comment or be unexported (golint)
    • Line 574: warning: exported method RocketpoolExporter.TagValidators should have comment or be unexported (golint)
    • Line 621: warning: exported type RocketpoolMinipool should have comment or be unexported (golint)
    • Line 631: warning: exported function NewRocketpoolMinipool should have comment or be unexported (golint)
    • Line 666: warning: exported method RocketpoolMinipool.Update should have comment or be unexported (golint)
    • Line 666: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 697: warning: exported type RocketpoolNode should have comment or be unexported (golint)
    • Line 705: warning: exported function NewRocketpoolNode should have comment or be unexported (golint)
    • Line 721: warning: exported method RocketpoolNode.Update should have comment or be unexported (golint)
    • Line 721: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 740: warning: exported type RocketpoolDAOProposal should have comment or be unexported (golint)
    • Line 760: warning: exported function NewRocketpoolDAOProposal should have comment or be unexported (golint)
    • Line 769: warning: exported method RocketpoolDAOProposal.Update should have comment or be unexported (golint)
    • Line 769: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 794: warning: exported type RocketpoolDAOMember should have comment or be unexported (golint)
    • Line 804: warning: exported function NewRocketpoolDAOMember should have comment or be unexported (golint)
    • Line 814: warning: exported method RocketpoolDAOMember.Update should have comment or be unexported (golint)
    • Line 814: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • eth2-beaconchain-explorer/utils/tax.go
    • Line 3: warning: comment on exported var Rates should be of the form "Rates ..." (golint)
    • Line 35: warning: comment on exported var StripeRatesTest should be of the form "StripeRatesTest ..." (golint)
    • Line 67: warning: exported var StripeRatesLive should have comment or be unexported (golint)
    • Line 102: warning: exported var StripeDynamicRatesTest should have comment or be unexported (golint)
    • Line 133: warning: exported var StripeDynamicRatesLive should have comment or be unexported (golint)
    • eth2-beaconchain-explorer/db/db.go
    • Line 26: warning: exported var DBPGX should have comment or be unexported (golint)
    • Line 58: warning: exported function MustInitDB should have comment or be unexported (golint)
    • Line 62: warning: exported function GetEth1Deposits should have comment or be unexported (golint)
    • Line 90: warning: exported function GetEth1DepositsJoinEth2Deposits should have comment or be unexported (golint)
    • Line 211: warning: exported function GetEth1DepositsCount should have comment or be unexported (golint)
    • Line 225: warning: exported function GetEth1DepositsLeaderboard should have comment or be unexported (golint)
    • Line 314: warning: exported function GetEth2Deposits should have comment or be unexported (golint)
    • Line 371: warning: exported function GetEth2DepositsCount should have comment or be unexported (golint)
    • Line 398: warning: exported function GetSlashingCount should have comment or be unexported (golint)
    • Line 538: warning: exported function SetBlockStatus should have comment or be unexported (golint)
    • Line 587: warning: exported function SaveBlock should have comment or be unexported (golint)
    • Line 1497: warning: exported function GetValidatorNames should have comment or be unexported (golint)
    • Line 1536: warning: exported function GetTotalEligibleEther should have comment or be unexported (golint)
    • Line 1551: warning: exported function GetDepositThresholdTime should have comment or be unexported (golint)
    • eth2-beaconchain-explorer/exporter/appsubscription_oracle.go
    • Line 62: warning: exported function VerifyManuall should have comment or be unexported (golint)
    • Line 71: warning: exported function VerifyReceipt should have comment or be unexported (golint)
    • Line 95: warning: exported function VerifyGoogle should have comment or be unexported (golint)
    • Line 148: warning: exported function VerifyApple should have comment or be unexported (golint)
    • Line 231: warning: exported type VerifyResponse should have comment or be unexported (golint)
    • eth2-beaconchain-explorer/types/exporter.go
    • Line 23: warning: exported type FinalityCheckpoints should have comment or be unexported (golint)
    • Line 87: warning: exported type SyncAggregate should have comment or be unexported (golint)
    • Line 247: warning: exported type HistoricEthPrice should have comment or be unexported (golint)
    • eth2-beaconchain-explorer/utils/session.go
    • Line 19: warning: exported function SetFlash should have comment or be unexported (golint)
    • Line 28: warning: exported function GetFlash should have comment or be unexported (golint)
    • Line 41: warning: exported function GetFlashes should have comment or be unexported (golint)
    • eth2-beaconchain-explorer/handlers/api.go
    • Line 519: warning: comment on exported function ApiValidatorBalanceHistory should be of the form "ApiValidatorBalanceHistory ..." (golint)
    • Line 1050: warning: exported function RegisterMobileSubscriptions should have comment or be unexported (golint)
    • Line 1103: warning: exported type PremiumUser should have comment or be unexported (golint)
    • Line 1131: warning: exported function GetUserPremiumByPackage should have comment or be unexported (golint)
    • Line 1166: warning: exported function GetMobileWidgetStats should have comment or be unexported (golint)
    • Line 1433: warning: exported function ClientStatsPostNew should have comment or be unexported (golint)
    • Line 1445: warning: comment on exported function ClientStatsPostOld should be of the form "ClientStatsPostOld ..." (golint)
    • Line 1679: warning: comment on exported function APIDashboardDataBalance should be of the form "APIDashboardDataBalance ..." (golint)
    • eth2-beaconchain-explorer/handlers/dashboard.go
    • Line 55: warning: exported function Dashboard should have comment or be unexported (golint)
    • Line 155: warning: exported function DashboardDataProposals should have comment or be unexported (golint)
    • Line 199: warning: exported function DashboardDataMissedAttestations should have comment or be unexported (golint)
    • Line 254: warning: exported function DashboardDataValidators should have comment or be unexported (golint)
    • Line 387: warning: exported function DashboardDataEarnings should have comment or be unexported (golint)
    • Line 416: warning: exported function DashboardDataEffectiveness should have comment or be unexported (golint)
    • Line 468: warning: exported function DashboardDataProposalsHistory should have comment or be unexported (golint)
    • eth2-beaconchain-explorer/types/templates.go
    • Line 104: warning: exported type Stats should have comment or be unexported (golint)
    • Line 114: warning: exported type StatsTopDepositors should have comment or be unexported (golint)
    • Line 152: warning: exported type IndexPageDataEpochs should have comment or be unexported (golint)
    • Line 196: warning: comment on exported type BlocksPageDataBlocks should be of the form "BlocksPageDataBlocks ..." (with optional leading article) (golint)
    • Line 332: warning: exported type RocketpoolValidatorPageData should have comment or be unexported (golint)
    • Line 345: warning: exported type ValidatorStatsTablePageData should have comment or be unexported (golint)
    • Line 351: warning: exported type ValidatorStatsTableRow should have comment or be unexported (golint)
    • Line 377: warning: exported type ChartDataPoint should have comment or be unexported (golint)
    • Line 403: warning: comment on exported type ValidatorIncomeHistory should be of the form "ValidatorIncomeHistory ..." (with optional leading article) (golint)
    • Line 412: warning: exported type ValidatorBalanceHistoryChartData should have comment or be unexported (golint)
    • Line 479: warning: exported type GraffitiwallData should have comment or be unexported (golint)
    • Line 539: warning: exported method BlockPageData.MarshalJSON should have comment or be unexported (golint)
    • Line 751: warning: exported type SeriesDataItem should have comment or be unexported (golint)
    • Line 821: warning: exported type ValidatorProposerSlashing should have comment or be unexported (golint)
    • Line 828: warning: exported type ValidatorHistory should have comment or be unexported (golint)
    • Line 838: warning: exported type ValidatorSlashing should have comment or be unexported (golint)
    • Line 848: warning: exported type StakingCalculatorPageData should have comment or be unexported (golint)
    • Line 854: warning: exported type EthOneDepositsPageData should have comment or be unexported (golint)
    • Line 860: warning: exported type EthOneDepositLeaderBoardPageData should have comment or be unexported (golint)
    • Line 864: warning: comment on exported type EthOneDepositsData should be of the form "EthOneDepositsData ..." (with optional leading article) (golint)
    • Line 881: warning: exported type EthOneDepositLeaderboardData should have comment or be unexported (golint)
    • Line 893: warning: exported type EthTwoDepositData should have comment or be unexported (golint)
    • Line 904: warning: exported type ValidatorDeposits should have comment or be unexported (golint)
    • Line 910: warning: exported type MyCryptoSignature should have comment or be unexported (golint)
    • Line 917: warning: exported type User should have comment or be unexported (golint)
    • Line 923: warning: exported type UserSubscription should have comment or be unexported (golint)
    • Line 933: warning: exported type UserPremiumSubscription should have comment or be unexported (golint)
    • Line 941: warning: exported type StripeSubscription should have comment or be unexported (golint)
    • Line 948: warning: exported type FilterSubscription should have comment or be unexported (golint)
    • Line 953: warning: exported type AuthData should have comment or be unexported (golint)
    • Line 960: warning: exported type CsrfData should have comment or be unexported (golint)
    • Line 964: warning: exported type UserSettingsPageData should have comment or be unexported (golint)
    • Line 977: warning: exported type PairedDevice should have comment or be unexported (golint)
    • Line 986: warning: exported type UserAuthorizeConfirmPageData should have comment or be unexported (golint)
    • Line 991: warning: exported type UserNotificationsPageData should have comment or be unexported (golint)
    • Line 1001: warning: exported type AdvertiseWithUsPageData should have comment or be unexported (golint)
    • Line 1007: warning: exported type ApiPricing should have comment or be unexported (golint)
    • Line 1019: warning: exported type MobilePricing should have comment or be unexported (golint)
    • Line 1032: warning: exported type StakeWithUsPageData should have comment or be unexported (golint)
    • Line 1037: warning: exported type RateLimitError should have comment or be unexported (golint)
    • Line 1045: warning: exported type Empty should have comment or be unexported (golint)
    • Line 1058: warning: exported type Price should have comment or be unexported (golint)
    • Line 1069: warning: exported type ApiStatistics should have comment or be unexported (golint)
    • Line 1076: warning: exported type RocketpoolPageData should have comment or be unexported (golint)
    • Line 1077: warning: exported type RocketpoolPageDataMinipool should have comment or be unexported (golint)
    • Line 1091: warning: exported type RocketpoolPageDataNode should have comment or be unexported (golint)
    • Line 1101: warning: exported type RocketpoolPageDataDAOProposal should have comment or be unexported (golint)
    • Line 1123: warning: exported type RocketpoolPageDataDAOMember should have comment or be unexported (golint)
    • eth2-beaconchain-explorer/db/pools.go
    • Line 13: warning: exported type Pools should have comment or be unexported (golint)
    • Line 21: warning: exported type PoolStatsData should have comment or be unexported (golint)
    • Line 30: warning: exported function UpdatePoolInfo should have comment or be unexported (golint)
    • eth2-beaconchain-explorer/handlers/pools_rocketpool.go
    • Line 33: warning: exported function PoolsRocketpoolDataMinipools should have comment or be unexported (golint)
    • Line 167: warning: exported function PoolsRocketpoolDataNodes should have comment or be unexported (golint)
    • Line 280: warning: exported function PoolsRocketpoolDataDAOProposals should have comment or be unexported (golint)
    • Line 420: warning: exported function PoolsRocketpoolDataDAOMembers should have comment or be unexported (golint)
    • eth2-beaconchain-explorer/price/price.go
    • Line 14: warning: exported type EthPrice should have comment or be unexported (golint)
    • Line 30: warning: exported function Init should have comment or be unexported (golint)
    • Line 62: warning: exported function GetEthPrice should have comment or be unexported (golint)
    • Line 88: warning: exported function GetEthRoundPrice should have comment or be unexported (golint)
    • eth2-beaconchain-explorer/services/services.go
    • Line 59: warning: exported function InitNotifications should have comment or be unexported (golint)
    • Line 431: warning: exported function LatestValidatorCount should have comment or be unexported (golint)
    • Line 464: warning: exported function GetLatestStats should have comment or be unexported (golint)
    • eth2-beaconchain-explorer/utils/oauthutils.go
    • Line 17: warning: exported const InvalidRequest should have comment or be unexported (golint)
    • Line 18: warning: exported const InvalidClient should have comment or be unexported (golint)
    • Line 19: warning: exported const InvalidGrant should have comment or be unexported (golint)
    • Line 20: warning: exported const UnauthorizedClient should have comment or be unexported (golint)
    • Line 21: warning: exported const UnsupportedGrantType should have comment or be unexported (golint)
    • Line 22: warning: exported const InvalidScope should have comment or be unexported (golint)
    • Line 23: warning: exported const AccessDenied should have comment or be unexported (golint)
    • Line 24: warning: exported const ServerError should have comment or be unexported (golint)
    • Line 25: warning: exported const TemporarilyUnavailable should have comment or be unexported (golint)
    • Line 27: warning: comment on exported const ClaimsContextKey should be of the form "ClaimsContextKey ..." (golint)
    • Line 30: warning: exported const MobileAuthorizedKey should have comment or be unexported (golint)
    • Line 32: warning: exported const JsonBodyKey should have comment or be unexported (golint)
    • Line 33: warning: exported const JsonBodyNakedKey should have comment or be unexported (golint)
    • Line 190: warning: exported function GetAuthorizationClaims should have comment or be unexported (golint)
    • eth2-beaconchain-explorer/utils/utils.go
    • Line 138: warning: exported var LayoutPaths should have comment or be unexported (golint)
    • Line 150: warning: exported function GraffitiToSring should have comment or be unexported (golint)
    • Line 195: warning: exported function DayToTime should have comment or be unexported (golint)
    • Line 258: warning: exported function CORSMiddleware should have comment or be unexported (golint)
    • Line 272: warning: exported function IsApiRequest should have comment or be unexported (golint)
    • Line 316: warning: exported function GenerateRandomBytesSecure should have comment or be unexported (golint)
    • Line 326: warning: exported function SqlRowsToJSON should have comment or be unexported (golint)
    • Line 463: warning: exported function ExchangeRateForCurrency should have comment or be unexported (golint)
    • eth2-beaconchain-explorer/rpc/prysm.go
    • Line 101: warning: exported method PrysmClient.GetNewBlockChan should have comment or be unexported (golint)
    • Line 452: warning: comment on exported method PrysmClient.GetBlockStatusByEpoch should be of the form "GetBlockStatusByEpoch ..." (golint)
    • Line 819: warning: exported method PrysmClient.GetFinalityCheckpoints should have comment or be unexported (golint)
    • eth2-beaconchain-explorer/utils/stripeutils.go
    • Line 3: warning: exported const GROUP_API should have comment or be unexported (golint)
    • Line 4: warning: exported const GROUP_MOBILE should have comment or be unexported (golint)
    • Line 6: warning: exported function GetPurchaseGroup should have comment or be unexported (golint)
    • eth2-beaconchain-explorer/types/api.go
    • Line 3: warning: exported type ApiResponse should have comment or be unexported (golint)
    • Line 8: warning: exported type StatsSystem should have comment or be unexported (golint)
    • Line 30: warning: exported type StatsProcess should have comment or be unexported (golint)
    • Line 40: warning: exported type StatsAdditionalsValidator should have comment or be unexported (golint)
    • Line 45: warning: exported type StatsAdditionalsBeaconnode should have comment or be unexported (golint)
    • Line 57: warning: exported type StatsMeta should have comment or be unexported (golint)
    • Line 65: warning: exported type StatsDataStruct should have comment or be unexported (golint)
    • Line 71: warning: exported type WidgetResponse should have comment or be unexported (golint)
    • eth2-beaconchain-explorer/db/frontend.go
    • Line 19: warning: exported function MustInitFrontendDB should have comment or be unexported (golint)
    • Line 56: warning: exported function GetUserApiKeyById should have comment or be unexported (golint)
    • Line 62: warning: exported function GetUserIdByApiKey should have comment or be unexported (golint)
    • Line 93: warning: comment on exported function GetAppDataFromRedirectUri should be of the form "GetAppDataFromRedirectUri ..." (golint)
    • Line 179: warning: exported function GetUserMonitorSharingSetting should have comment or be unexported (golint)
    • Line 194: warning: exported function SetUserMonitorSharingSetting should have comment or be unexported (golint)
    • Line 202: warning: exported function GetUserDevicesByUserID should have comment or be unexported (golint)
    • Line 245: warning: exported function MobileNotificatonTokenUpdate should have comment or be unexported (golint)
    • Line 252: warning: exported function InsertMobileSubscription should have comment or be unexported (golint)
    • Line 263: warning: exported function ChangeProductIDFromStripe should have comment or be unexported (golint)
    • Line 282: warning: exported function GetAppSubscriptionCount should have comment or be unexported (golint)
    • Line 292: warning: exported function GetUserPremiumSubscription should have comment or be unexported (golint)
    • Line 298: warning: exported function GetUserPremiumPackage should have comment or be unexported (golint)
    • Line 308: warning: exported function GetAllAppSubscriptions should have comment or be unexported (golint)
    • Line 318: warning: exported function GetUserSubscriptionIDByStripe should have comment or be unexported (golint)
    • Line 328: warning: exported function UpdateUserSubscription should have comment or be unexported (golint)
    • Line 337: warning: exported function GetUserPushTokenByIds should have comment or be unexported (golint)
    • Line 363: warning: exported function MobileDeviceSettingsUpdate should have comment or be unexported (golint)
    • Line 390: warning: exported function MobileDeviceDelete should have comment or be unexported (golint)
    • Line 404: warning: exported function MobileDeviceSettingsSelect should have comment or be unexported (golint)
    • Line 411: warning: exported function CleanupOldMachineStats should have comment or be unexported (golint)
    • Line 485: warning: exported function GetStatsMachineCount should have comment or be unexported (golint)
    • Line 499: warning: exported function InsertStatsMeta should have comment or be unexported (golint)
    • Line 514: warning: exported function CreateNewStatsMetaPartition should have comment or be unexported (golint)
    • Line 537: warning: exported function InsertStatsSystem should have comment or be unexported (golint)
    • Line 537: warning: don't use underscores in Go names; func parameter meta_id should be metaID (golint)
    • Line 557: warning: exported function InsertStatsProcessGeneral should have comment or be unexported (golint)
    • Line 557: warning: don't use underscores in Go names; func parameter meta_id should be metaID (golint)
    • Line 572: warning: exported function InsertStatsValidator should have comment or be unexported (golint)
    • Line 572: warning: don't use underscores in Go names; func parameter general_id should be generalID (golint)
    • Line 583: warning: exported function InsertStatsBeaconnode should have comment or be unexported (golint)
    • Line 583: warning: don't use underscores in Go names; func parameter general_id should be generalID (golint)
    • Line 597: warning: exported function NewTransaction should have comment or be unexported (golint)
    • Line 629: warning: exported function GetStatsValidator should have comment or be unexported (golint)
    • Line 641: warning: exported function GetStatsNode should have comment or be unexported (golint)
    • Line 653: warning: exported function GetStatsSystem should have comment or be unexported (golint)
    • Line 665: warning: exported function GetHistoricPrices should have comment or be unexported (golint)
    • Line 691: warning: exported function GetUserAPIKeyStatistics should have comment or be unexported (golint)
    • eth2-beaconchain-explorer/services/pools_updater.go
    • Line 19: warning: exported type Pools should have comment or be unexported (golint)
    • Line 27: warning: exported type PoolStatsData should have comment or be unexported (golint)
    • Line 35: warning: exported type PoolStats should have comment or be unexported (golint)
    • Line 48: warning: exported type PoolsResp should have comment or be unexported (golint)
    • Line 60: warning: exported type PoolsInfo should have comment or be unexported (golint)
    • Line 112: warning: exported function InitPools should have comment or be unexported (golint)
    • Line 126: warning: exported function GetPoolsData should have comment or be unexported (golint)
    • Line 133: warning: exported function GetIncomePerDepositedETHChart should have comment or be unexported (golint)
    • Line 438: warning: exported function GetTotalValidators should have comment or be unexported (golint)
    • eth2-beaconchain-explorer/handlers/user.go
    • Line 33: warning: exported function UserAuthMiddleware should have comment or be unexported (golint)
    • Line 236: warning: exported function UserNotifications should have comment or be unexported (golint)
    • Line 295: warning: exported function UserNotificationsData should have comment or be unexported (golint)
    • Line 387: warning: exported function UserSubscriptionsData should have comment or be unexported (golint)
    • Line 479: warning: exported function UserAuthorizeConfirmPost should have comment or be unexported (golint)
    • Line 531: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 539: warning: exported function UserDeletePost should have comment or be unexported (golint)
    • Line 566: warning: exported function UserUpdateFlagsPost should have comment or be unexported (golint)
    • Line 583: warning: exported function UserUpdatePasswordPost should have comment or be unexported (golint)
    • Line 719: warning: comment on exported function UserConfirmUpdateEmail should be of the form "UserConfirmUpdateEmail ..." (golint)
    • Line 1066: warning: exported function UserNotificationsSubscribe should have comment or be unexported (golint)
    • Line 1079: warning: exported function MultipleUsersNotificationsSubscribe should have comment or be unexported (golint)
    • Line 1201: warning: exported function MultipleUsersNotificationsUnsubscribe should have comment or be unexported (golint)
    • Line 1312: warning: exported function UserNotificationsUnsubscribe should have comment or be unexported (golint)
    • Line 1379: warning: exported function MobileDeviceDeletePOST should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign83%

IneffAssign detects ineffectual assignments in Go code.

    • eth2-beaconchain-explorer/handlers/user.go
    • Line 76: warning: ineffectual assignment to pairedDevices (ineffassign)
    • Line 302: warning: ineffectual assignment to search (ineffassign)
    • Line 323: warning: ineffectual assignment to length (ineffassign)
    • Line 393: warning: ineffectual assignment to search (ineffassign)
    • Line 414: warning: ineffectual assignment to length (ineffassign)
    • Line 578: warning: ineffectual assignment to err (ineffassign)
    • Line 688: warning: ineffectual assignment to err (ineffassign)
    • Line 769: warning: ineffectual assignment to err (ineffassign)
    • Line 1071: warning: ineffectual assignment to threshold (ineffassign)

misspell82%

Misspell Finds commonly misspelled English words