Preparing report...

Report for github.com/empolis/grafana

(v5.4.5+incompatible)

A+    Excellent!    Found 48 issues across 558 files

Tweet

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!


gofmt99%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


gocyclo92%

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.

    • pkg/services/sqlstore/dashboard.go
    • Line 501: warning: cyclomatic complexity 28 of function getExistingDashboardByIdOrUidForUpdate() is high (> 15) (gocyclo)
    • Line 38: warning: cyclomatic complexity 21 of function saveDashboard() is high (> 15) (gocyclo)
    • pkg/tsdb/elasticsearch/response_parser.go
    • Line 158: warning: cyclomatic complexity 25 of function (*responseParser).processMetrics() is high (> 15) (gocyclo)
    • Line 284: warning: cyclomatic complexity 22 of function (*responseParser).processAggregationDocs() is high (> 15) (gocyclo)
    • Line 422: warning: cyclomatic complexity 18 of function (*responseParser).getSeriesName() is high (> 15) (gocyclo)
    • Line 79: warning: cyclomatic complexity 17 of function (*responseParser).processBuckets() is high (> 15) (gocyclo)
    • build.go
    • Line 51: warning: cyclomatic complexity 22 of function main() is high (> 15) (gocyclo)
    • pkg/api/pluginproxy/ds_proxy.go
    • Line 221: warning: cyclomatic complexity 21 of function (*DataSourceProxy).validateRequest() is high (> 15) (gocyclo)
    • Line 133: warning: cyclomatic complexity 17 of function (*DataSourceProxy).getDirector() is high (> 15) (gocyclo)
    • pkg/tsdb/sql_engine.go
    • Line 259: warning: cyclomatic complexity 42 of function (*sqlQueryEndpoint).transformToTimeSeries() is high (> 15) (gocyclo)
    • Line 507: warning: cyclomatic complexity 37 of function ConvertSqlValueColumnToFloat() is high (> 15) (gocyclo)
    • Line 457: warning: cyclomatic complexity 23 of function ConvertSqlTimeColumnToEpochMs() is high (> 15) (gocyclo)
    • pkg/tsdb/cloudwatch/cloudwatch.go
    • Line 270: warning: cyclomatic complexity 29 of function (*CloudWatchExecutor).executeGetMetricDataQuery() is high (> 15) (gocyclo)
    • Line 88: warning: cyclomatic complexity 24 of function (*CloudWatchExecutor).executeTimeSeriesQuery() is high (> 15) (gocyclo)
    • Line 549: warning: cyclomatic complexity 16 of function parseResponse() is high (> 15) (gocyclo)
    • pkg/api/plugins.go
    • Line 13: warning: cyclomatic complexity 18 of function (*HTTPServer).GetPluginList() is high (> 15) (gocyclo)
    • pkg/api/index.go
    • Line 20: warning: cyclomatic complexity 40 of function (*HTTPServer).setIndexViewData() is high (> 15) (gocyclo)

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!