Preparing report...

Report for github.com/keptn-contrib/prometheus-service

A+    Excellent!    Found 3 issues across 6 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!


gocyclo83%

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.


golint50%

Golint is a linter for Go source code.

    • prometheus-service/utils/prometheus.go
    • Line 205: warning: exported type PrometheusHelper should have comment or be unexported (golint)
    • Line 225: warning: exported method PrometheusHelper.UpdateConfigMap should have comment or be unexported (golint)
    • Line 234: warning: exported method PrometheusHelper.GetConfigMap should have comment or be unexported (golint)
    • Line 238: warning: exported method PrometheusHelper.CreateConfigMap should have comment or be unexported (golint)
    • Line 247: warning: exported method PrometheusHelper.DeletePod should have comment or be unexported (golint)
    • Line 248: warning: don't use underscores in Go names; var pod_list should be podList (golint)
    • Line 264: warning: exported method PrometheusHelper.CreateAMTempConfigMap should have comment or be unexported (golint)
    • Line 279: warning: exported method PrometheusHelper.UpdateAMConfigMap should have comment or be unexported (golint)
    • prometheus-service/utils/utils.go
    • Line 41: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • prometheus-service/eventhandling/configureEvent.go
    • Line 27: warning: exported const Throughput should have comment or be unexported (golint)
    • Line 28: warning: exported const ErrorRate should have comment or be unexported (golint)
    • Line 29: warning: exported const ResponseTimeP50 should have comment or be unexported (golint)
    • Line 30: warning: exported const ResponseTimeP90 should have comment or be unexported (golint)
    • Line 31: warning: exported const ResponseTimeP95 should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign83%

IneffAssign detects ineffectual assignments in Go code.


misspell83%

Misspell Finds commonly misspelled English words