soumya92/barista

View on GitHub
modules/volume/pulseaudio/pulse.go

Summary

Maintainability
A
1 hr
Test Coverage

Method paModule.Worker has 5 return statements (exceeds 4 allowed).
Open

func (m *paModule) Worker(s *value.ErrorValue) {
    conn, err := openPulseAudio()
    if s.Error(err) {
        return
    }
Severity: Major
Found in modules/volume/pulseaudio/pulse.go - About 35 mins to fix

    Function openPulseAudio has 5 return statements (exceeds 4 allowed).
    Open

    func openPulseAudio() (*dbus.Conn, error) {
        // Pulse defaults to creating its socket in a well-known place under
        // XDG_RUNTIME_DIR. For Pulse instances created by systemd, this is the
        // only reliable way to contact Pulse via D-Bus, since Pulse is created
        // on a per-user basis, but the session bus is created once for every
    Severity: Major
    Found in modules/volume/pulseaudio/pulse.go - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status