firehol/netdata

View on GitHub
src/go/plugin/go.d/modules/boinc/client.go

Summary

Maintainability
A
1 hr
Test Coverage

Method boincClient.send has 11 return statements (exceeds 4 allowed).
Open

func (c *boincClient) send(req *boincRequest) (*boincReply, error) {
    reqData, err := xml.Marshal(req)
    if err != nil {
        return nil, fmt.Errorf("failed to marshal request: %v", err)
    }
Severity: Major
Found in src/go/plugin/go.d/modules/boinc/client.go - About 1 hr to fix

    Method boincClient.authenticate has 5 return statements (exceeds 4 allowed).
    Open

    func (c *boincClient) authenticate() error {
        // https://boinc.berkeley.edu/trac/wiki/GuiRpcProtocol#Authentication
    
        req := &boincRequest{
            Auth1: &struct{}{},
    Severity: Major
    Found in src/go/plugin/go.d/modules/boinc/client.go - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status