Preparing report...

Report for github.com/ConsenSys/fc-latency-map

A+    Excellent!    Found 52 issues across 103 files

Tweet

gofmt96%

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!


gocyclo99%

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.


golint54%

Golint is a linter for Go source code.

    • fc-latency-map/manager/locations/locations_impl.go
    • Line 20: warning: exported type Airport should have comment or be unexported (golint)
    • Line 29: warning: exported type LocationServiceImpl should have comment or be unexported (golint)
    • Line 34: warning: exported function NewLocationServiceImpl should have comment or be unexported (golint)
    • Line 41: warning: exported method LocationServiceImpl.GetAllLocations should have comment or be unexported (golint)
    • Line 55: warning: exported method LocationServiceImpl.GetTotalLocations should have comment or be unexported (golint)
    • Line 61: warning: exported method LocationServiceImpl.GetLocation should have comment or be unexported (golint)
    • Line 68: warning: exported method LocationServiceImpl.AddLocation should have comment or be unexported (golint)
    • Line 80: warning: exported method LocationServiceImpl.DeleteLocation should have comment or be unexported (golint)
    • Line 91: warning: exported method LocationServiceImpl.UpdateLocations should have comment or be unexported (golint)
    • Line 189: warning: exported method LocationServiceImpl.ExtractAirports should have comment or be unexported (golint)
    • Line 210: warning: exported method LocationServiceImpl.FindAirport should have comment or be unexported (golint)
    • fc-latency-map/manager/geomgr/geomgr_impl.go
    • Line 15: warning: exported type GeoMgrImpl should have comment or be unexported (golint)
    • Line 21: warning: exported function NewGeoMgrImpl should have comment or be unexported (golint)
    • Line 27: warning: exported method GeoMgrImpl.IPGeolocation should have comment or be unexported (golint)
    • Line 82: warning: exported method GeoMgrImpl.FindCountry should have comment or be unexported (golint)
    • fc-latency-map/manager/db/mocks.go
    • Line 11: warning: exported type DatabaseMgrMock should have comment or be unexported (golint)
    • Line 15: warning: exported function NewMockDatabaseMgr should have comment or be unexported (golint)
    • Line 36: warning: exported method DatabaseMgrMock.GetDB should have comment or be unexported (golint)
    • fc-latency-map/manager/probes/probes_impl.go
    • Line 19: warning: exported type ProbeServiceImpl should have comment or be unexported (golint)
    • Line 29: warning: exported function NewProbeServiceImpl should have comment or be unexported (golint)
    • Line 37: warning: exported method ProbeServiceImpl.RequestProbes should have comment or be unexported (golint)
    • Line 119: warning: exported method ProbeServiceImpl.ListProbes should have comment or be unexported (golint)
    • Line 129: warning: exported method ProbeServiceImpl.GetTotalProbes should have comment or be unexported (golint)
    • Line 135: warning: exported method ProbeServiceImpl.Update should have comment or be unexported (golint)
    • Line 148: warning: exported method ProbeServiceImpl.ImportProbes should have comment or be unexported (golint)
    • fc-latency-map/manager/ripemgr/ripemgr_impl.go
    • Line 17: warning: exported type RipeMgrImpl should have comment or be unexported (golint)
    • Line 29: warning: exported function NewRipeImpl should have comment or be unexported (golint)
    • Line 49: warning: exported method RipeMgrImpl.GetProbes should have comment or be unexported (golint)
    • Line 61: warning: exported method RipeMgrImpl.GetMeasurement should have comment or be unexported (golint)
    • Line 74: warning: exported method RipeMgrImpl.GetMeasurementResults should have comment or be unexported (golint)
    • Line 90: warning: exported method RipeMgrImpl.CreateMeasurements should have comment or be unexported (golint)
    • fc-latency-map/manager/models/probes.go
    • Line 7: warning: exported type CoordinatesStatus should have comment or be unexported (golint)
    • Line 8: warning: exported type Status should have comment or be unexported (golint)
    • Line 11: warning: exported const CoordinatesStatusUnknown should have comment (or a comment on this block) or be unexported (golint)
    • Line 18: warning: exported type Probe should have comment or be unexported (golint)
    • fc-latency-map/manager/miners/miners_handlers.go
    • Line 18: warning: exported type MinerHandler should have comment or be unexported (golint)
    • Line 23: warning: exported function NewMinerHandler should have comment or be unexported (golint)
    • Line 44: warning: exported method MinerHandler.GetAllMiners should have comment or be unexported (golint)
    • Line 48: warning: exported method MinerHandler.MinersParseOffset should have comment or be unexported (golint)
    • Line 64: warning: exported method MinerHandler.MinersParseBlock should have comment or be unexported (golint)
    • Line 68: warning: exported method MinerHandler.MinersParseStateMarket should have comment or be unexported (golint)
    • fc-latency-map/manager/filecoinmgr/filecoinmgr_impl.go
    • Line 19: warning: exported type VerifiedDeal should have comment or be unexported (golint)
    • Line 24: warning: exported type FilecoinMgrImpl should have comment or be unexported (golint)
    • Line 29: warning: exported function NewFilecoinImpl should have comment or be unexported (golint)
    • Line 51: warning: exported method FilecoinMgrImpl.GetChainHead should have comment or be unexported (golint)
    • Line 60: warning: exported method FilecoinMgrImpl.GetBlockHeight should have comment or be unexported (golint)
    • Line 69: warning: exported method FilecoinMgrImpl.GetMinerInfo should have comment or be unexported (golint)
    • Line 78: warning: exported method FilecoinMgrImpl.GetVerifiedDealsByBlockRange should have comment or be unexported (golint)
    • Line 95: warning: exported function CheckIsVerifiedDeal should have comment or be unexported (golint)
    • Line 105: warning: exported method FilecoinMgrImpl.GetVerifiedDealsByBlockHeight should have comment or be unexported (golint)
    • Line 157: warning: exported method FilecoinMgrImpl.GetVerifiedDealsByStateMarket should have comment or be unexported (golint)
    • fc-latency-map/manager/webhook/notify.go
    • Line 14: warning: exported type Notifier should have comment or be unexported (golint)
    • Line 18: warning: exported type Payload should have comment or be unexported (golint)
    • Line 23: warning: exported function NewNotifier should have comment or be unexported (golint)
    • Line 29: warning: exported method Notifier.Notify should have comment or be unexported (golint)
    • fc-latency-map/manager/measurements/measurements_handler.go
    • Line 19: warning: exported type Handler should have comment or be unexported (golint)
    • Line 24: warning: exported function NewHandler should have comment or be unexported (golint)
    • Line 48: warning: exported method Handler.ImportMeasures should have comment or be unexported (golint)
    • Line 80: warning: exported method Handler.CreateMeasurements should have comment or be unexported (golint)
    • fc-latency-map/manager/db/dbmgr_impl.go
    • Line 12: warning: exported type DatabaseMgrImpl should have comment or be unexported (golint)
    • Line 16: warning: exported function NewDatabaseMgrImpl should have comment or be unexported (golint)
    • Line 51: warning: exported method DatabaseMgrImpl.GetDB should have comment or be unexported (golint)
    • fc-latency-map/manager/export/export_handler.go
    • Line 8: warning: exported type ExportHandler should have comment or be unexported (golint)
    • Line 12: warning: exported function NewExportHandler should have comment or be unexported (golint)
    • Line 26: warning: exported method ExportHandler.Export should have comment or be unexported (golint)
    • fc-latency-map/manager/miners/miners_impl.go
    • Line 20: warning: exported type MinerServiceImpl should have comment or be unexported (golint)
    • Line 27: warning: exported function NewMinerServiceImpl should have comment or be unexported (golint)
    • Line 36: warning: exported method MinerServiceImpl.GetAllMiners should have comment or be unexported (golint)
    • Line 46: warning: exported method MinerServiceImpl.GetTotalMiners should have comment or be unexported (golint)
    • Line 52: warning: exported method MinerServiceImpl.ParseMinersByBlockOffset should have comment or be unexported (golint)
    • Line 134: warning: exported method MinerServiceImpl.ParseMinersByBlockHeight should have comment or be unexported (golint)
    • Line 143: warning: exported method MinerServiceImpl.ParseMinersByStateMarket should have comment or be unexported (golint)

ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!