Preparing report...

Report for github.com/datahop/ipfs-lite

A+    Excellent!    Found 12 issues across 35 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!


gocyclo94%

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.


golint71%

Golint is a linter for Go source code.

    • ipfs-lite/mobile/discovery.go
    • Line 11: warning: exported const DiscoveryServiceTag should have comment or be unexported (golint)
    • Line 13: warning: exported type ServiceType should have comment or be unexported (golint)
    • Line 16: warning: exported const ScanAndAdvertise should have comment (or a comment on this block) or be unexported (golint)
    • Line 21: warning: exported type Service should have comment or be unexported (golint)
    • Line 27: warning: exported type Notifee should have comment or be unexported (golint)
    • Line 54: warning: exported function NewDiscoveryService should have comment or be unexported (golint)
    • ipfs-lite/mobile/nativedriver.go
    • Line 3: warning: exported type AdvertisingDriver should have comment or be unexported (golint)
    • Line 12: warning: exported type DiscoveryDriver should have comment or be unexported (golint)
    • Line 20: warning: exported type DiscoveryNotifier should have comment or be unexported (golint)
    • Line 25: warning: exported type AdvertisementNotifier should have comment or be unexported (golint)
    • ipfs-lite/version/version.go
    • Line 3: warning: exported var MobileVersion should have comment or be unexported (golint)
    • Line 4: warning: exported var CliVersion should have comment or be unexported (golint)
    • ipfs-lite/examples/mobilepeer/mobilepeer.go
    • Line 13: warning: exported type MockConnManager should have comment or be unexported (golint)
    • Line 15: warning: exported method MockConnManager.PeerConnected should have comment or be unexported (golint)
    • Line 19: warning: exported method MockConnManager.PeerDisconnected should have comment or be unexported (golint)
    • Line 23: warning: exported type MockDisDriver should have comment or be unexported (golint)
    • Line 25: warning: exported method MockDisDriver.Start should have comment or be unexported (golint)
    • Line 29: warning: exported method MockDisDriver.AddAdvertisingInfo should have comment or be unexported (golint)
    • Line 33: warning: exported method MockDisDriver.Stop should have comment or be unexported (golint)
    • Line 37: warning: exported type MockAdvDriver should have comment or be unexported (golint)
    • Line 39: warning: exported method MockAdvDriver.Start should have comment or be unexported (golint)
    • Line 43: warning: exported method MockAdvDriver.AddAdvertisingInfo should have comment or be unexported (golint)
    • Line 47: warning: exported method MockAdvDriver.Stop should have comment or be unexported (golint)
    • Line 51: warning: exported method MockAdvDriver.NotifyNetworkInformation should have comment or be unexported (golint)
    • Line 55: warning: exported method MockAdvDriver.NotifyEmptyValue should have comment or be unexported (golint)
    • Line 59: warning: exported type MockWifiConn should have comment or be unexported (golint)
    • Line 61: warning: exported method MockWifiConn.Connect should have comment or be unexported (golint)
    • Line 65: warning: exported method MockWifiConn.Disconnect should have comment or be unexported (golint)
    • Line 69: warning: exported method MockWifiConn.Host should have comment or be unexported (golint)
    • Line 73: warning: exported type MockWifiHotspot should have comment or be unexported (golint)
    • Line 75: warning: exported method MockWifiHotspot.Start should have comment or be unexported (golint)
    • Line 79: warning: exported method MockWifiHotspot.Stop should have comment or be unexported (golint)
    • ipfs-lite/mobile/wifihotspot.go
    • Line 3: warning: exported type WifiHotspot should have comment or be unexported (golint)
    • Line 8: warning: exported type WifiHotspotNotifier should have comment or be unexported (golint)
    • ipfs-lite/cli/out/out.go
    • Line 12: warning: exported type Printer should have comment or be unexported (golint)
    • Line 22: warning: exported const Json should have comment (or a comment on this block) 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!