Preparing report...

Report for github.com/mvrilo/cam

A+    Excellent!    Found 15 issues across 19 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!


golint31%

Golint is a linter for Go source code.

    • cam/cam.go
    • Line 25: warning: exported method Cam.Serve should have comment or be unexported (golint)
    • Line 45: warning: exported method Cam.ListenAndServe should have comment or be unexported (golint)
    • Line 54: warning: exported method Cam.Close should have comment or be unexported (golint)
    • Line 65: warning: exported function Register should have comment or be unexported (golint)
    • Line 69: warning: exported function Use should have comment or be unexported (golint)
    • Line 73: warning: exported function Handle should have comment or be unexported (golint)
    • Line 77: warning: exported function ListenAndServe should have comment or be unexported (golint)
    • cam/middlewares/window/window.go
    • Line 8: warning: exported type Window should have comment or be unexported (golint)
    • Line 12: warning: exported function New should have comment or be unexported (golint)
    • Line 18: warning: exported method Window.Handle should have comment or be unexported (golint)
    • cam/middlewares/wait/wait.go
    • Line 9: warning: exported type Wait should have comment or be unexported (golint)
    • Line 11: warning: exported function New should have comment or be unexported (golint)
    • Line 15: warning: exported method Wait.Handle should have comment or be unexported (golint)
    • cam/middlewares/recorder/recorder.go
    • Line 11: warning: exported type Recorder should have comment or be unexported (golint)
    • Line 20: warning: exported function New should have comment or be unexported (golint)
    • Line 59: warning: exported method Recorder.Handle should have comment or be unexported (golint)
    • cam/middlewares/streamer/streamer.go
    • Line 13: warning: exported var Boundary should have comment or be unexported (golint)
    • Line 17: warning: exported type Streamer should have comment or be unexported (golint)
    • Line 24: warning: exported function New should have comment or be unexported (golint)
    • Line 45: warning: exported method Streamer.Handle should have comment or be unexported (golint)
    • cam/middlewares/ocr/ocr.go
    • Line 9: warning: exported type OCR should have comment or be unexported (golint)
    • Line 13: warning: exported function New should have comment or be unexported (golint)
    • Line 19: warning: exported method OCR.Handle should have comment or be unexported (golint)
    • cam/handler.go
    • Line 3: warning: exported type HandlerFunc should have comment or be unexported (golint)
    • Line 5: warning: exported method HandlerFunc.Handle should have comment or be unexported (golint)
    • cam/store.go
    • Line 17: warning: exported function NewStore should have comment or be unexported (golint)
    • cam/gocv/gocv.go
    • Line 12: warning: exported type Gocv should have comment or be unexported (golint)
    • Line 16: warning: exported method Gocv.Open should have comment or be unexported (golint)
    • Line 25: warning: exported method Gocv.Close should have comment or be unexported (golint)
    • Line 36: warning: exported method Gocv.NewFrame should have comment or be unexported (golint)
    • cam/middlewares/snapshot/snapshot.go
    • Line 8: warning: exported type Snapshot should have comment or be unexported (golint)
    • Line 12: warning: exported function New should have comment or be unexported (golint)
    • Line 16: warning: exported method Snapshot.Handle should have comment or be unexported (golint)
    • cam/middlewares/pixelize/pixelize.go
    • Line 10: warning: exported type Pixelize should have comment or be unexported (golint)
    • Line 14: warning: exported function New should have comment or be unexported (golint)
    • Line 18: warning: exported method Pixelize.Handle should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign89%

IneffAssign detects ineffectual assignments in Go code.

    • /home/shawn/go/pkg/mod/gocv.io/x/gocv@v0.23.0/calib3d.go
    • Line 7: warning: could not import C (no metadata for C) (ineffassign)
    • Line 7: warning: could not import C (no metadata for C) (ineffassign)
    • Line 7: warning: could not import C (no metadata for C) (ineffassign)
    • Line 7: warning: could not import C (no metadata for C) (ineffassign)
    • Line 7: warning: could not import C (no metadata for C) (ineffassign)
    • Line 7: warning: could not import C (no metadata for C) (ineffassign)
    • Line 7: warning: could not import C (no metadata for C) (ineffassign)
    • Line 7: warning: could not import C (no metadata for C) (ineffassign)
    • Line 7: warning: could not import C (no metadata for C) (ineffassign)
    • Line 7: warning: could not import C (no metadata for C) (ineffassign)
    • Line 7: warning: could not import C (no metadata for C) (ineffassign)
    • Line 7: warning: could not import C (no metadata for C) (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!