Preparing report...

Report for github.com/mingslife/rtmp-recorder

A    Great!    Found 11 issues across 12 files

Tweet

gofmt100%

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

No problems detected. Good job!


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!


gocyclo100%

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.

No problems detected. Good job!


golint8%

Golint is a linter for Go source code.

    • rtmp-recorder/pkg/utils/files.go
    • Line 5: warning: comment on exported function Exists should be of the form "Exists ..." (golint)
    • Line 17: warning: comment on exported function IsDir should be of the form "IsDir ..." (golint)
    • Line 26: warning: comment on exported function IsFile should be of the form "IsFile ..." (golint)
    • rtmp-recorder/pkg/utils/security.go
    • Line 7: warning: exported function GenerateFromPassword should have comment or be unexported (golint)
    • Line 11: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • rtmp-recorder/pkg/models/video.go
    • Line 14: warning: exported type Video should have comment or be unexported (golint)
    • Line 26: warning: exported function GetVideos should have comment or be unexported (golint)
    • Line 49: warning: exported function GetVideo should have comment or be unexported (golint)
    • Line 76: warning: exported method Video.Save should have comment or be unexported (golint)
    • Line 93: warning: exported method Video.Delete should have comment or be unexported (golint)
    • rtmp-recorder/pkg/controllers/videos.go
    • Line 12: warning: exported type VideoController should have comment or be unexported (golint)
    • Line 14: warning: exported method VideoController.GetMany should have comment or be unexported (golint)
    • Line 22: warning: exported method VideoController.GetOne should have comment or be unexported (golint)
    • Line 27: warning: exported method VideoController.Create should have comment or be unexported (golint)
    • Line 40: warning: exported method VideoController.Update should have comment or be unexported (golint)
    • Line 52: warning: exported method VideoController.Delete should have comment or be unexported (golint)
    • Line 63: warning: exported function NewVideoController should have comment or be unexported (golint)
    • rtmp-recorder/pkg/utils/strings.go
    • Line 17: warning: exported function NewId should have comment or be unexported (golint)
    • Line 21: warning: exported function Md5 should have comment or be unexported (golint)
    • Line 25: warning: exported function RandString 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!