firehol/netdata

View on GitHub
src/go/plugin/go.d/modules/sensors/collect_sysfs.go

Summary

Maintainability
A
1 hr
Test Coverage

Method Sensors.collectSysfs has 57 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func (s *Sensors) collectSysfs() (map[string]int64, error) {
    if s.sc == nil {
        return nil, errors.New("sysfs scanner is not initialized")
    }

Severity: Minor
Found in src/go/plugin/go.d/modules/sensors/collect_sysfs.go - About 1 hr to fix

    Method Sensors.collectSysfs has 5 return statements (exceeds 4 allowed).
    Open

    func (s *Sensors) collectSysfs() (map[string]int64, error) {
        if s.sc == nil {
            return nil, errors.New("sysfs scanner is not initialized")
        }
    
    
    Severity: Major
    Found in src/go/plugin/go.d/modules/sensors/collect_sysfs.go - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status