Preparing report...

Report for github.com/200sc/klangsynthese

A+    Excellent!    Found 13 issues across 60 files

Tweet

gofmt98%

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!


gocyclo95%

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.

    • klangsynthese/font/riff/riff.go
    • Line 197: warning: cyclomatic complexity 22 of function (*Reader).structChunks() is high (> 15) (gocyclo)
    • Line 300: warning: cyclomatic complexity 19 of function (*Reader).fieldValue() is high (> 15) (gocyclo)

golint83%

Golint is a linter for Go source code.

    • klangsynthese/sequence/loop.go
    • Line 3: warning: exported type Loop should have comment or be unexported (golint)
    • Line 5: warning: exported type HasLoops should have comment or be unexported (golint)
    • Line 10: warning: exported method Loop.GetLoop should have comment or be unexported (golint)
    • Line 14: warning: exported method Loop.SetLoop should have comment or be unexported (golint)
    • klangsynthese/sequence/waveFunction.go
    • Line 5: warning: exported type WavePattern should have comment or be unexported (golint)
    • Line 7: warning: exported type HasWaves should have comment or be unexported (golint)
    • Line 12: warning: exported method WavePattern.GetWavePattern should have comment or be unexported (golint)
    • Line 16: warning: exported method WavePattern.SetWavePattern should have comment or be unexported (golint)
    • klangsynthese/audio/manip/math.go
    • Line 3: warning: exported function SetInt16 should have comment or be unexported (golint)
    • Line 10: warning: exported function GetInt16 should have comment or be unexported (golint)
    • Line 19: warning: exported function GetFloat64 should have comment or be unexported (golint)
    • Line 29: warning: exported function SetInt16_f64 should have comment or be unexported (golint)
    • Line 29: warning: don't use underscores in Go names; func SetInt16_f64 should be SetInt16F64 (golint)
    • Line 33: warning: exported function Round should have comment or be unexported (golint)
    • klangsynthese/sequence/length.go
    • Line 3: warning: exported type Length should have comment or be unexported (golint)
    • Line 5: warning: exported type HasLength should have comment or be unexported (golint)
    • Line 10: warning: exported method Length.GetLength should have comment or be unexported (golint)
    • Line 14: warning: exported method Length.SetLength should have comment or be unexported (golint)
    • Line 18: warning: exported function PlayLength should have comment or be unexported (golint)
    • klangsynthese/sequence/pitchPattern.go
    • Line 5: warning: exported type PitchPattern should have comment or be unexported (golint)
    • Line 7: warning: exported type HasPitches should have comment or be unexported (golint)
    • Line 12: warning: exported method PitchPattern.GetPitchPattern should have comment or be unexported (golint)
    • Line 16: warning: exported method PitchPattern.SetPitchPattern should have comment or be unexported (golint)
    • klangsynthese/sequence/tick.go
    • Line 5: warning: exported type Tick should have comment or be unexported (golint)
    • Line 7: warning: exported type HasTicks should have comment or be unexported (golint)
    • Line 12: warning: exported method Tick.GetTick should have comment or be unexported (golint)
    • Line 16: warning: exported method Tick.SetTick should have comment or be unexported (golint)
    • klangsynthese/sequence/volumePattern.go
    • Line 3: warning: exported type VolumePattern should have comment or be unexported (golint)
    • Line 5: warning: exported type HasVolumes should have comment or be unexported (golint)
    • Line 10: warning: exported method VolumePattern.GetVolumePattern should have comment or be unexported (golint)
    • Line 14: warning: exported method VolumePattern.SetVolumePattern should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!