Preparing report...

Report for github.com/binarylane/bl-cli

A+    Excellent!    Found 28 issues across 204 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!


golint88%

Golint is a linter for Go source code.

    • bl-cli/commands/displayers/invoice_summary.go
    • Line 22: warning: exported type InvoiceSummary should have comment or be unexported (golint)
    • Line 28: warning: exported method InvoiceSummary.JSON should have comment or be unexported (golint)
    • Line 32: warning: exported method InvoiceSummary.Cols should have comment or be unexported (golint)
    • Line 47: warning: exported method InvoiceSummary.ColMap should have comment or be unexported (golint)
    • Line 62: warning: exported method InvoiceSummary.KV should have comment or be unexported (golint)
    • bl-cli/commands/displayers/key.go
    • Line 29: warning: exported method Key.JSON should have comment or be unexported (golint)
    • Line 33: warning: exported method Key.Cols should have comment or be unexported (golint)
    • Line 39: warning: exported method Key.ColMap should have comment or be unexported (golint)
    • Line 45: warning: exported method Key.KV should have comment or be unexported (golint)
    • Line 68: warning: exported method KeyGet.JSON should have comment or be unexported (golint)
    • Line 72: warning: exported method KeyGet.Cols should have comment or be unexported (golint)
    • Line 78: warning: exported method KeyGet.ColMap should have comment or be unexported (golint)
    • Line 84: warning: exported method KeyGet.KV should have comment or be unexported (golint)
    • bl-cli/commands/displayers/rate_limit.go
    • Line 22: warning: exported type RateLimit should have comment or be unexported (golint)
    • Line 28: warning: exported method RateLimit.JSON should have comment or be unexported (golint)
    • Line 32: warning: exported method RateLimit.Cols should have comment or be unexported (golint)
    • Line 38: warning: exported method RateLimit.ColMap should have comment or be unexported (golint)
    • Line 44: warning: exported method RateLimit.KV should have comment or be unexported (golint)
    • bl-cli/commands/displayers/snapshot.go
    • Line 24: warning: exported type Snapshot should have comment or be unexported (golint)
    • Line 30: warning: exported method Snapshot.JSON should have comment or be unexported (golint)
    • Line 34: warning: exported method Snapshot.Cols should have comment or be unexported (golint)
    • Line 39: warning: exported method Snapshot.ColMap should have comment or be unexported (golint)
    • Line 45: warning: exported method Snapshot.KV should have comment or be unexported (golint)
    • bl-cli/commands/displayers/account.go
    • Line 22: warning: exported type Account should have comment or be unexported (golint)
    • Line 28: warning: exported method Account.JSON should have comment or be unexported (golint)
    • Line 32: warning: exported method Account.Cols should have comment or be unexported (golint)
    • Line 38: warning: exported method Account.ColMap should have comment or be unexported (golint)
    • Line 45: warning: exported method Account.KV should have comment or be unexported (golint)
    • bl-cli/commands/displayers/billing_history.go
    • Line 23: warning: exported type BillingHistory should have comment or be unexported (golint)
    • Line 29: warning: exported method BillingHistory.JSON should have comment or be unexported (golint)
    • Line 33: warning: exported method BillingHistory.Cols should have comment or be unexported (golint)
    • Line 39: warning: exported method BillingHistory.ColMap should have comment or be unexported (golint)
    • Line 50: warning: exported method BillingHistory.KV should have comment or be unexported (golint)
    • bl-cli/commands/displayers/domain.go
    • Line 22: warning: exported type Domain should have comment or be unexported (golint)
    • Line 28: warning: exported method Domain.JSON should have comment or be unexported (golint)
    • Line 32: warning: exported method Domain.Cols should have comment or be unexported (golint)
    • Line 36: warning: exported method Domain.ColMap should have comment or be unexported (golint)
    • Line 42: warning: exported method Domain.KV should have comment or be unexported (golint)
    • Line 55: warning: exported type DomainRecord should have comment or be unexported (golint)
    • Line 59: warning: exported method DomainRecord.JSON should have comment or be unexported (golint)
    • Line 63: warning: exported method DomainRecord.Cols should have comment or be unexported (golint)
    • Line 69: warning: exported method DomainRecord.ColMap should have comment or be unexported (golint)
    • Line 76: warning: exported method DomainRecord.KV should have comment or be unexported (golint)
    • bl-cli/commands/displayers/invoice_list.go
    • Line 22: warning: exported type InvoiceList should have comment or be unexported (golint)
    • Line 28: warning: exported method InvoiceList.JSON should have comment or be unexported (golint)
    • Line 32: warning: exported method InvoiceList.Cols should have comment or be unexported (golint)
    • Line 38: warning: exported method InvoiceList.ColMap should have comment or be unexported (golint)
    • Line 46: warning: exported method InvoiceList.KV should have comment or be unexported (golint)
    • bl-cli/commands/displayers/region.go
    • Line 22: warning: exported type Region should have comment or be unexported (golint)
    • Line 28: warning: exported method Region.JSON should have comment or be unexported (golint)
    • Line 32: warning: exported method Region.Cols should have comment or be unexported (golint)
    • Line 38: warning: exported method Region.ColMap should have comment or be unexported (golint)
    • Line 44: warning: exported method Region.KV should have comment or be unexported (golint)
    • bl-cli/commands/displayers/server.go
    • Line 26: warning: exported type Server should have comment or be unexported (golint)
    • Line 32: warning: exported method Server.JSON should have comment or be unexported (golint)
    • Line 36: warning: exported method Server.Cols should have comment or be unexported (golint)
    • Line 43: warning: exported method Server.ColMap should have comment or be unexported (golint)
    • Line 53: warning: exported method Server.KV should have comment or be unexported (golint)
    • bl-cli/commands/displayers/tag.go
    • Line 22: warning: exported type Tag should have comment or be unexported (golint)
    • Line 28: warning: exported method Tag.JSON should have comment or be unexported (golint)
    • Line 32: warning: exported method Tag.Cols should have comment or be unexported (golint)
    • Line 36: warning: exported method Tag.ColMap should have comment or be unexported (golint)
    • Line 43: warning: exported method Tag.KV should have comment or be unexported (golint)
    • bl-cli/commands/displayers/balance.go
    • Line 23: warning: exported type Balance should have comment or be unexported (golint)
    • Line 29: warning: exported method Balance.JSON should have comment or be unexported (golint)
    • Line 33: warning: exported method Balance.Cols should have comment or be unexported (golint)
    • Line 39: warning: exported method Balance.ColMap should have comment or be unexported (golint)
    • Line 48: warning: exported method Balance.KV should have comment or be unexported (golint)
    • bl-cli/commands/displayers/load_balancer.go
    • Line 26: warning: exported type LoadBalancer should have comment or be unexported (golint)
    • Line 32: warning: exported method LoadBalancer.JSON should have comment or be unexported (golint)
    • Line 36: warning: exported method LoadBalancer.Cols should have comment or be unexported (golint)
    • Line 56: warning: exported method LoadBalancer.ColMap should have comment or be unexported (golint)
    • Line 76: warning: exported method LoadBalancer.KV should have comment or be unexported (golint)
    • bl-cli/commands/displayers/plugin.go
    • Line 18: warning: exported type PlugDesc should have comment or be unexported (golint)
    • Line 23: warning: exported type Plugin should have comment or be unexported (golint)
    • Line 29: warning: exported method Plugin.JSON should have comment or be unexported (golint)
    • Line 33: warning: exported method Plugin.Cols should have comment or be unexported (golint)
    • Line 39: warning: exported method Plugin.ColMap should have comment or be unexported (golint)
    • Line 45: warning: exported method Plugin.KV should have comment or be unexported (golint)
    • bl-cli/commands/displayers/project.go
    • Line 22: warning: exported type Project should have comment or be unexported (golint)
    • Line 28: warning: exported method Project.JSON should have comment or be unexported (golint)
    • Line 32: warning: exported method Project.Cols should have comment or be unexported (golint)
    • Line 47: warning: exported method Project.ColMap should have comment or be unexported (golint)
    • Line 62: warning: exported method Project.KV should have comment or be unexported (golint)
    • Line 84: warning: exported type ProjectResource should have comment or be unexported (golint)
    • Line 90: warning: exported method ProjectResource.JSON should have comment or be unexported (golint)
    • Line 94: warning: exported method ProjectResource.Cols should have comment or be unexported (golint)
    • Line 102: warning: exported method ProjectResource.ColMap should have comment or be unexported (golint)
    • Line 110: warning: exported method ProjectResource.KV should have comment or be unexported (golint)
    • bl-cli/commands/displayers/floating_ip.go
    • Line 23: warning: exported type FloatingIP should have comment or be unexported (golint)
    • Line 29: warning: exported method FloatingIP.JSON should have comment or be unexported (golint)
    • Line 33: warning: exported method FloatingIP.Cols should have comment or be unexported (golint)
    • Line 39: warning: exported method FloatingIP.ColMap should have comment or be unexported (golint)
    • Line 45: warning: exported method FloatingIP.KV should have comment or be unexported (golint)
    • bl-cli/commands/displayers/image.go
    • Line 22: warning: exported type Image should have comment or be unexported (golint)
    • Line 28: warning: exported method Image.JSON should have comment or be unexported (golint)
    • Line 32: warning: exported method Image.Cols should have comment or be unexported (golint)
    • Line 38: warning: exported method Image.ColMap should have comment or be unexported (golint)
    • Line 45: warning: exported method Image.KV should have comment or be unexported (golint)
    • bl-cli/commands/displayers/size.go
    • Line 23: warning: exported type Size should have comment or be unexported (golint)
    • Line 29: warning: exported method Size.JSON should have comment or be unexported (golint)
    • Line 33: warning: exported method Size.Cols should have comment or be unexported (golint)
    • Line 39: warning: exported method Size.ColMap should have comment or be unexported (golint)
    • Line 47: warning: exported method Size.KV should have comment or be unexported (golint)
    • bl-cli/commands/displayers/vpc.go
    • Line 22: warning: exported type VPC should have comment or be unexported (golint)
    • Line 28: warning: exported method VPC.JSON should have comment or be unexported (golint)
    • Line 32: warning: exported method VPC.Cols should have comment or be unexported (golint)
    • Line 44: warning: exported method VPC.ColMap should have comment or be unexported (golint)
    • Line 56: warning: exported method VPC.KV should have comment or be unexported (golint)
    • bl-cli/commands/displayers/action.go
    • Line 22: warning: exported type Action should have comment or be unexported (golint)
    • Line 28: warning: exported method Action.JSON should have comment or be unexported (golint)
    • Line 32: warning: exported method Action.Cols should have comment or be unexported (golint)
    • Line 38: warning: exported method Action.ColMap should have comment or be unexported (golint)
    • Line 46: warning: exported method Action.KV should have comment or be unexported (golint)
    • bl-cli/commands/displayers/firewall.go
    • Line 25: warning: exported type Firewall should have comment or be unexported (golint)
    • Line 31: warning: exported method Firewall.JSON should have comment or be unexported (golint)
    • Line 35: warning: exported method Firewall.Cols should have comment or be unexported (golint)
    • Line 49: warning: exported method Firewall.ColMap should have comment or be unexported (golint)
    • Line 63: warning: exported method Firewall.KV should have comment or be unexported (golint)
    • bl-cli/commands/displayers/invoice.go
    • Line 23: warning: exported type Invoice should have comment or be unexported (golint)
    • Line 29: warning: exported method Invoice.JSON should have comment or be unexported (golint)
    • Line 33: warning: exported method Invoice.Cols should have comment or be unexported (golint)
    • Line 39: warning: exported method Invoice.ColMap should have comment or be unexported (golint)
    • Line 56: warning: exported method Invoice.KV should have comment or be unexported (golint)
    • bl-cli/commands/displayers/kernel.go
    • Line 22: warning: exported type Kernel should have comment or be unexported (golint)
    • Line 28: warning: exported method Kernel.JSON should have comment or be unexported (golint)
    • Line 32: warning: exported method Kernel.Cols should have comment or be unexported (golint)
    • Line 38: warning: exported method Kernel.ColMap should have comment or be unexported (golint)
    • Line 44: warning: exported method Kernel.KV should have comment or be unexported (golint)

gocyclo97%

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.

    • bl-cli/commands/servers.go
    • Line 164: warning: cyclomatic complexity 24 of function RunServerCreate() is high (> 15) (gocyclo)
    • Line 453: warning: cyclomatic complexity 18 of function RunServerDelete() is high (> 15) (gocyclo)

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!