netdata/netdata

View on GitHub
src/go/collectors/go.d.plugin/modules/scaleio/client/server.go

Summary

Maintainability
A
35 mins
Test Coverage

Method MockScaleIOAPIServer.handleQuerySelectedStatistics has 5 return statements (exceeds 4 allowed).
Open

func (s MockScaleIOAPIServer) handleQuerySelectedStatistics(w http.ResponseWriter, r *http.Request) {
    if _, pass, ok := r.BasicAuth(); !ok || pass != s.Token {
        w.WriteHeader(http.StatusUnauthorized)
        msg := fmt.Sprintf("token got/expected: %s/%s", pass, s.Token)
        writeAPIError(w, msg)
Severity: Major
Found in src/go/collectors/go.d.plugin/modules/scaleio/client/server.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status