Preparing report...

Report for github.com/pdf/hyprpanel

(v0.1.2)

A+    Excellent!    Found 21 issues across 50 files

Tweet

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!


gofmt100%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command

No problems detected. Good job!


gocyclo60%

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.

    • cmd/hyprpanel/host.go
    • Line 232: warning: cyclomatic complexity 32 of function (*host).watch() is high (> 15) (gocyclo)
    • Line 333: warning: cyclomatic complexity 18 of function (*host).run() is high (> 15) (gocyclo)
    • cmd/hyprpanel-client/systray.go
    • Line 234: warning: cyclomatic complexity 35 of function (*systray).watch() is high (> 15) (gocyclo)
    • Line 92: warning: cyclomatic complexity 16 of function (*systray).build() is high (> 15) (gocyclo)
    • internal/dbus/snw.go
    • Line 372: warning: cyclomatic complexity 34 of function (*statusNotifierWatcher).watch() is high (> 15) (gocyclo)
    • Line 244: warning: cyclomatic complexity 22 of function (*statusNotifierWatcher).init() is high (> 15) (gocyclo)
    • internal/dbus/brightness.go
    • Line 247: warning: cyclomatic complexity 16 of function (*brightness).watch() is high (> 15) (gocyclo)
    • Line 118: warning: cyclomatic complexity 16 of function (*brightness).pollBrightness() is high (> 15) (gocyclo)
    • cmd/hyprpanel-client/systray_item.go
    • Line 171: warning: cyclomatic complexity 21 of function (*systrayItem).buildMenuXMLSection() is high (> 15) (gocyclo)
    • Line 425: warning: cyclomatic complexity 17 of function (*systrayItem).build() is high (> 15) (gocyclo)
    • cmd/hyprpanel-client/pager.go
    • Line 184: warning: cyclomatic complexity 28 of function (*pager).build() is high (> 15) (gocyclo)
    • Line 310: warning: cyclomatic complexity 24 of function (*pager).watch() is high (> 15) (gocyclo)
    • internal/audio/audio.go
    • Line 370: warning: cyclomatic complexity 28 of function (*Client).init() is high (> 15) (gocyclo)
    • Line 273: warning: cyclomatic complexity 19 of function (*Client).pollSource() is high (> 15) (gocyclo)
    • Line 176: warning: cyclomatic complexity 19 of function (*Client).pollSink() is high (> 15) (gocyclo)
    • Line 109: warning: cyclomatic complexity 18 of function (*Client).SourceVolumeAdjust() is high (> 15) (gocyclo)
    • Line 46: warning: cyclomatic complexity 18 of function (*Client).SinkVolumeAdjust() is high (> 15) (gocyclo)

ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell98%

Misspell Finds commonly misspelled English words