Preparing report...

Report for github.com/HeRCLab/herc-file-formats

A    Great!    Found 13 issues across 24 files

Tweet

gofmt83%

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!


gocyclo79%

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.

    • herc-file-formats/wavegen/c/wavegen.go
    • Line 19: warning: comment on exported function WGGetError should be of the form "WGGetError ..." (golint)
    • Line 24: warning: comment on exported function WGOpen should be of the form "WGOpen ..." (golint)
    • Line 40: warning: comment on exported function WGClose should be of the form "WGClose ..." (golint)
    • Line 45: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 51: warning: comment on exported function WGReadS should be of the form "WGReadS ..." (golint)
    • Line 64: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 70: warning: comment on exported function WGReadT should be of the form "WGReadT ..." (golint)
    • Line 83: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 89: warning: comment on exported function WGSize should be of the form "WGSize ..." (golint)
    • Line 94: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 100: warning: comment on exported function WGCopyS should be of the form "WGCopyS ..." (golint)
    • Line 120: warning: comment on exported function WGCopyT should be of the form "WGCopyT ..." (golint)
    • Line 140: warning: comment on exported function WGSampleRate should be of the form "WGSampleRate ..." (golint)
    • herc-file-formats/mlpx/c/mlpx.go
    • Line 24: warning: comment on exported function MLPXGetError should be of the form "MLPXGetError ..." (golint)
    • Line 29: warning: comment on exported function MLPXOpen should be of the form "MLPXOpen ..." (golint)
    • Line 45: warning: comment on exported function MLPXSave should be of the form "MLPXSave ..." (golint)
    • Line 61: warning: comment on exported function MLPXClose should be of the form "MLPXClose ..." (golint)
    • Line 66: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 83: warning: comment on exported function MLPXIsomorphicDuplicate should be of the form "MLPXIsomorphicDuplicate ..." (golint)
    • Line 105: warning: comment on exported function MLPXNextSnapshotID should be of the form "MLPXNextSnapshotID ..." (golint)
    • Line 116: warning: comment on exported function MLPXGetNumSnapshots should be of the form "MLPXGetNumSnapshots ..." (golint)
    • Line 129: warning: comment on exported function MLPXSnapshotGetIDByIndex should be of the form "MLPXSnapshotGetIDByIndex ..." (golint)
    • Line 147: warning: comment on exported function MLPXSnapshotGetIndexByID should be of the form "MLPXSnapshotGetIndexByID ..." (golint)
    • Line 184: warning: comment on exported function MLPXSnapshotGetNumLayers should be of the form "MLPXSnapshotGetNumLayers ..." (golint)
    • Line 196: warning: comment on exported function MLPXLayerGetIndexByID should be of the form "MLPXLayerGetIndexByID ..." (golint)
    • Line 231: warning: comment on exported function MLPXLayerGetIDByIndex should be of the form "MLPXLayerGetIDByIndex ..." (golint)
    • Line 242: warning: comment on exported function MLPXLayerGetNeurons should be of the form "MLPXLayerGetNeurons ..." (golint)
    • Line 253: warning: comment on exported function MLPXMakeMLPX should be of the form "MLPXMakeMLPX ..." (golint)
    • Line 265: warning: comment on exported function MLPXMakeSnapshot should be of the form "MLPXMakeSnapshot ..." (golint)
    • Line 281: warning: comment on exported function MLPXMakeIsomorphicSnapshot should be of the form "MLPXMakeIsomorphicSnapshot ..." (golint)
    • Line 302: warning: comment on exported function MLPXGetInitializerSnapshotIndex should be of the form "MLPXGetInitializerSnapshotIndex ..." (golint)
    • Line 328: warning: comment on exported function MLPXSnapshotGetAlpha should be of the form "MLPXSnapshotGetAlpha ..." (golint)
    • Line 340: warning: comment on exported function MLPXSnapshotSetAlpha should be of the form "MLPXSnapshotSetAlpha ..." (golint)
    • Line 352: warning: comment on exported function MLPXLayerGetPredecessorIndex should be of the form "MLPXLayerGetPredecessorIndex ..." (golint)
    • Line 362: warning: comment on exported function MLPXLayerGetSuccessorIndex should be of the form "MLPXLayerGetSuccessorIndex ..." (golint)
    • Line 372: warning: comment on exported function MLPXLayerSetWeight should be of the form "MLPXLayerSetWeight ..." (golint)
    • Line 390: warning: comment on exported function MLPXLayerGetWeight should be of the form "MLPXLayerGetWeight ..." (golint)
    • Line 411: warning: comment on exported function MLPXLayerSetOutput should be of the form "MLPXLayerSetOutput ..." (golint)
    • Line 429: warning: comment on exported function MLPXLayerGetOutput should be of the form "MLPXLayerGetOutput ..." (golint)
    • Line 450: warning: comment on exported function MLPXLayerSetActivation should be of the form "MLPXLayerSetActivation ..." (golint)
    • Line 468: warning: comment on exported function MLPXLayerGetActivation should be of the form "MLPXLayerGetActivation ..." (golint)
    • Line 489: warning: comment on exported function MLPXLayerSetDelta should be of the form "MLPXLayerSetDelta ..." (golint)
    • Line 507: warning: comment on exported function MLPXLayerGetDelta should be of the form "MLPXLayerGetDelta ..." (golint)
    • Line 528: warning: comment on exported function MLPXLayerSetBias should be of the form "MLPXLayerSetBias ..." (golint)
    • Line 546: warning: comment on exported function MLPXLayerGetBias should be of the form "MLPXLayerGetBias ..." (golint)
    • Line 567: warning: comment on exported function MLPXLayerSetActivationFunction should be of the form "MLPXLayerSetActivationFunction ..." (golint)
    • Line 578: warning: comment on exported function MLPXLayerGetActivationFunction should be of the form "MLPXLayerGetActivationFunction ..." (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign91%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!