Preparing report...

Report for github.com/gordonklaus/portaudio

A    Great!    Found 8 issues across 8 files

Tweet

gofmt75%

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


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!


gocyclo87%

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.


golint75%

Golint is a linter for Go source code.

    • portaudio/portaudio.go
    • Line 395: warning: exported const NoFlag should have comment (or a comment on this block) or be unexported (golint)
    • Line 1016: warning: if block ends with a return statement, so drop this else and outdent its block (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign0%

IneffAssign detects ineffectual assignments in Go code.

    • portaudio/examples/stereoSine.go
    • Line 11: warning: main redeclared in this block (ineffassign)
    • Line 44: warning: chk redeclared in this block (ineffassign)
    • Line 15: warning: s.Close undefined (type *stereoSine has no field or method Close) (ineffassign)
    • Line 16: warning: s.Start undefined (type *stereoSine has no field or method Start) (ineffassign)
    • Line 18: warning: s.Stop undefined (type *stereoSine has no field or method Stop) (ineffassign)
    • portaudio/portaudio.go
    • Line 19: warning: could not import C (no metadata for C) (ineffassign)
    • Line 159: warning: index InDevelopment (constant unknown of type HostApiType) is out of bounds (ineffassign)
    • Line 160: warning: index DirectSound (constant unknown of type HostApiType) is out of bounds (ineffassign)
    • Line 161: warning: index MME (constant unknown of type HostApiType) is out of bounds (ineffassign)
    • Line 162: warning: index ASIO (constant unknown of type HostApiType) is out of bounds (ineffassign)
    • Line 163: warning: index SoundManager (constant unknown of type HostApiType) is out of bounds (ineffassign)
    • Line 164: warning: index CoreAudio (constant unknown of type HostApiType) is out of bounds (ineffassign)
    • Line 165: warning: index OSS (constant unknown of type HostApiType) is out of bounds (ineffassign)
    • Line 166: warning: index ALSA (constant unknown of type HostApiType) is out of bounds (ineffassign)
    • Line 167: warning: index AL (constant unknown of type HostApiType) is out of bounds (ineffassign)
    • Line 168: warning: index BeOS (constant unknown of type HostApiType) is out of bounds (ineffassign)
    • Line 169: warning: index WDMkS (constant unknown of type HostApiType) is out of bounds (ineffassign)
    • Line 170: warning: index JACK (constant unknown of type HostApiType) is out of bounds (ineffassign)
    • Line 171: warning: index WASAPI (constant unknown of type HostApiType) is out of bounds (ineffassign)
    • Line 172: warning: index AudioScienceHPI (constant unknown of type HostApiType) is out of bounds (ineffassign)
    • Line 749: warning: cannot convert 0 (untyped int constant) to StreamCallbackFlags (ineffassign)
    • portaudio/examples/mp3.go
    • Line 10: warning: cannot find package "." in: (ineffassign)
    • Line 10: warning: could not import github.com/bobertlo/go-mpg123/mpg123 (invalid package name: "") (ineffassign)
    • Line 14: warning: main redeclared in this block (ineffassign)
    • Line 66: warning: chk redeclared in this block (ineffassign)
    • portaudio/examples/echo.go
    • Line 4: warning: cannot find package "." in: (ineffassign)
    • Line 4: warning: could not import github.com/gordonklaus/portaudio (invalid package name: "") (ineffassign)
    • Line 8: warning: other declaration of main (ineffassign)
    • Line 44: warning: other declaration of chk (ineffassign)
    • Line 8: warning: other declaration of main (ineffassign)
    • Line 44: warning: other declaration of chk (ineffassign)
    • Line 8: warning: other declaration of main (ineffassign)
    • Line 44: warning: other declaration of chk (ineffassign)
    • Line 8: warning: other declaration of main (ineffassign)
    • Line 44: warning: other declaration of chk (ineffassign)
    • Line 8: warning: other declaration of main (ineffassign)
    • Line 44: warning: other declaration of chk (ineffassign)
    • Line 8: warning: other declaration of main (ineffassign)
    • Line 44: warning: other declaration of chk (ineffassign)
    • Line 12: warning: e.Close undefined (type *echo has no field or method Close) (ineffassign)
    • Line 13: warning: e.Start undefined (type *echo has no field or method Start) (ineffassign)
    • Line 15: warning: e.Stop undefined (type *echo has no field or method Stop) (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!