Preparing report...

Report for github.com/rach/pome

A+    Excellent!    Found 5 issues across 8 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!


gocyclo100%

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!


golint62%

Golint is a linter for Go source code.

    • pome/main.go
    • Line 16: warning: exported const Version should have comment (or a comment on this block) or be unexported (golint)
    • Line 19: warning: exported type CronValue should have comment or be unexported (golint)
    • Line 21: warning: exported method CronValue.Set should have comment or be unexported (golint)
    • Line 34: warning: exported function CronFlag should have comment or be unexported (golint)
    • pome/metric.go
    • Line 10: warning: exported type MetricList should have comment or be unexported (golint)
    • Line 24: warning: exported type TransactionNumber should have comment or be unexported (golint)
    • Line 46: warning: exported type Metric should have comment or be unexported (golint)
    • Line 49: warning: exported type Metrics should have comment or be unexported (golint)
    • Line 108: warning: exported function GetTimestamp should have comment or be unexported (golint)
    • Line 161: warning: don't use underscores in Go names; var current_val should be currentVal (golint)
    • Line 162: warning: don't use underscores in Go names; var tmp_metrics should be tmpMetrics (golint)
    • Line 181: warning: don't use underscores in Go names; var total_bytes should be totalBytes (golint)
    • Line 190: warning: don't use underscores in Go names; var total_bytes should be totalBytes (golint)
    • Line 209: warning: don't use underscores in Go names; var current_val should be currentVal (golint)
    • Line 210: warning: don't use underscores in Go names; var tmp_metrics should be tmpMetrics (golint)
    • pome/query.go
    • Line 110: warning: exported type TransactionNumberResult should have comment or be unexported (golint)
    • Line 114: warning: exported type IndexBloatDatabaseResult should have comment or be unexported (golint)
    • Line 123: warning: exported type NumberOfConnectionResult should have comment or be unexported (golint)
    • Line 126: warning: exported type DatabaseSizeResult should have comment or be unexported (golint)
    • Line 133: warning: exported type TableBloatDatabaseResult should have comment or be unexported (golint)
    • Line 143: warning: exported function GetIndexBloatResult should have comment or be unexported (golint)
    • Line 155: warning: exported function GetTableBloatResult should have comment or be unexported (golint)
    • Line 167: warning: exported function GetNumberOfConnectionResult should have comment or be unexported (golint)
    • Line 179: warning: exported function GetDatabeSizeResult should have comment or be unexported (golint)
    • Line 191: warning: exported function GetTransactionNumberResult should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign50%

IneffAssign detects ineffectual assignments in Go code.

    • pome/main.go
    • Line 9: warning: cannot find package "." in: (ineffassign)
    • Line 10: warning: cannot find package "." in: (ineffassign)
    • Line 9: warning: could not import github.com/rach/pome/Godeps/_workspace/src/github.com/alecthomas/kingpin (invalid package name: "") (ineffassign)
    • Line 10: warning: could not import github.com/robfig/cron (invalid package name: "") (ineffassign)
    • Line 9: warning: could not import github.com/rach/pome/Godeps/_workspace/src/github.com/alecthomas/kingpin (invalid package name: "") (ineffassign)
    • Line 10: warning: could not import github.com/robfig/cron (invalid package name: "") (ineffassign)
    • pome/web.go
    • Line 11: warning: cannot find package "." in: (ineffassign)
    • Line 11: warning: could not import github.com/rach/pome/Godeps/_workspace/src/github.com/elazarl/go-bindata-assetfs (invalid package name: "") (ineffassign)
    • Line 38: warning: undeclared name: Asset (ineffassign)
    • Line 47: warning: undeclared name: assetfs (ineffassign)
    • Line 47: warning: undeclared name: Asset (ineffassign)
    • Line 47: warning: undeclared name: AssetDir (ineffassign)
    • Line 11: warning: "github.com/rach/pome/Godeps/_workspace/src/github.com/elazarl/go-bindata-assetfs" imported but not used (ineffassign)
    • Line 11: warning: could not import github.com/rach/pome/Godeps/_workspace/src/github.com/elazarl/go-bindata-assetfs (invalid package name: "") (ineffassign)
    • Line 38: warning: undeclared name: Asset (ineffassign)
    • Line 47: warning: undeclared name: assetfs (ineffassign)
    • Line 47: warning: undeclared name: Asset (ineffassign)
    • Line 47: warning: undeclared name: AssetDir (ineffassign)
    • Line 11: warning: "github.com/rach/pome/Godeps/_workspace/src/github.com/elazarl/go-bindata-assetfs" imported but not used (ineffassign)
    • pome/metric.go
    • Line 6: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 6: warning: could not import github.com/rach/pome/Godeps/_workspace/src/github.com/jmoiron/sqlx (invalid package name: "") (ineffassign)
    • Line 7: warning: could not import github.com/rach/pome/Godeps/_workspace/src/github.com/lib/pq (invalid package name: "") (ineffassign)
    • Line 6: warning: could not import github.com/rach/pome/Godeps/_workspace/src/github.com/jmoiron/sqlx (invalid package name: "") (ineffassign)
    • Line 7: warning: could not import github.com/rach/pome/Godeps/_workspace/src/github.com/lib/pq (invalid package name: "") (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!