Gofmt formats Go programs. We run gofmt -s
on your code, where -s
is for the "simplify" command
No problems detected. Good job!
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!
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!
Golint is a linter for Go source code.
-
node-installer/keystore/keystore.go
- Line 15: warning: exported const FileName should have comment (or a comment on this block) or be unexported (golint)
- Line 18: warning: comment on exported const DefaultSKademliaC1 should be of the form "DefaultSKademliaC1 ..." (golint)
- Line 24: warning: exported type SaveData should have comment or be unexported (golint)
- Line 30: warning: exported type P2PSaveData should have comment or be unexported (golint)
- Line 37: warning: exported function NewSaveData should have comment or be unexported (golint)
- Line 41: warning: exported function NewP2PSaveData should have comment or be unexported (golint)
- Line 45: warning: exported function WriteToHome should have comment or be unexported (golint)
- Line 57: warning: exported function ReadFromHome should have comment or be unexported (golint)
- Line 73: warning: exported function GenerateInHome should have comment or be unexported (golint)
- Line 90: warning: exported function LoadOrGenerate should have comment or be unexported (golint)
-
node-installer/bot/blockbook.go
- Line 3: warning: exported type BlockBook should have comment or be unexported (golint)
- Line 8: warning: exported type Response should have comment or be unexported (golint)
- Line 16: warning: exported type Backend should have comment or be unexported (golint)
-
node-installer/bot/bot.go
- Line 16: warning: exported type Bot should have comment or be unexported (golint)
- Line 45: warning: exported function NewBot should have comment or be unexported (golint)
- Line 77: warning: exported method Bot.Start should have comment or be unexported (golint)
- Line 186: warning: exported method Bot.SendMsg should have comment or be unexported (golint)
- Line 257: warning: exported method Bot.Versions should have comment or be unexported (golint)
- Line 263: warning: exported method Bot.SetVersion should have comment or be unexported (golint)
-
node-installer/bot/config.go
- Line 13: warning: exported const VersionJSON should have comment (or a comment on this block) or be unexported (golint)
- Line 25: warning: exported var Networks should have comment or be unexported (golint)
- Line 90: warning: exported const GethRPC should have comment (or a comment on this block) or be unexported (golint)
- Line 100: warning: exported var BnbSeedNodesMain should have comment or be unexported (golint)
- Line 168: warning: exported type NodeConfig should have comment or be unexported (golint)
- Line 200: warning: exported function NewNodeConfig should have comment or be unexported (golint)
- Line 223: warning: exported method NodeConfig.SetNetwork should have comment or be unexported (golint)
- Line 248: warning: exported method NodeConfig.SetGlobalNode should have comment or be unexported (golint)
- Line 265: warning: exported method NodeConfig.SetLocalNode should have comment or be unexported (golint)
- Line 280: warning: exported method NodeConfig.SetDomain should have comment or be unexported (golint)
Checks whether your project has a LICENSE file.
No problems detected. Good job!
IneffAssign detects ineffectual assignments in Go code.
No problems detected. Good job!
Misspell Finds commonly misspelled English words
No problems detected. Good job!