Preparing report...

Report for github.com/LdDl/gocv-blob

A    Great!    Found 7 issues across 13 files

Tweet

gofmt76%

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!


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!


golint61%

Golint is a linter for Go source code.

    • gocv-blob/v2/blob/kalman_blob.go
    • Line 156: warning: exported method KalmanBlobie.GetID should have comment or be unexported (golint)
    • Line 156: warning: receiver name sb should be consistent with previous receiver name b for KalmanBlobie (golint)
    • Line 160: warning: exported method KalmanBlobie.GetCenter should have comment or be unexported (golint)
    • Line 160: warning: receiver name sb should be consistent with previous receiver name b for KalmanBlobie (golint)
    • Line 164: warning: exported method KalmanBlobie.GetCurrentRect should have comment or be unexported (golint)
    • Line 164: warning: receiver name sb should be consistent with previous receiver name b for KalmanBlobie (golint)
    • Line 168: warning: exported method KalmanBlobie.GetTrack should have comment or be unexported (golint)
    • Line 168: warning: receiver name sb should be consistent with previous receiver name b for KalmanBlobie (golint)
    • Line 172: warning: exported method KalmanBlobie.GetTimestamps should have comment or be unexported (golint)
    • Line 172: warning: receiver name sb should be consistent with previous receiver name b for KalmanBlobie (golint)
    • Line 176: warning: exported method KalmanBlobie.GetDiagonal should have comment or be unexported (golint)
    • Line 176: warning: receiver name sb should be consistent with previous receiver name b for KalmanBlobie (golint)
    • Line 180: warning: exported method KalmanBlobie.GetPredictedNextPosition should have comment or be unexported (golint)
    • Line 180: warning: receiver name sb should be consistent with previous receiver name b for KalmanBlobie (golint)
    • Line 184: warning: exported method KalmanBlobie.NoMatchTimes should have comment or be unexported (golint)
    • Line 184: warning: receiver name sb should be consistent with previous receiver name b for KalmanBlobie (golint)
    • Line 188: warning: exported method KalmanBlobie.Exists should have comment or be unexported (golint)
    • Line 188: warning: receiver name sb should be consistent with previous receiver name b for KalmanBlobie (golint)
    • Line 192: warning: exported method KalmanBlobie.SetID should have comment or be unexported (golint)
    • Line 192: warning: receiver name sb should be consistent with previous receiver name b for KalmanBlobie (golint)
    • Line 196: warning: exported method KalmanBlobie.SetTracking should have comment or be unexported (golint)
    • Line 196: warning: receiver name sb should be consistent with previous receiver name b for KalmanBlobie (golint)
    • Line 200: warning: exported method KalmanBlobie.IncrementNoMatchTimes should have comment or be unexported (golint)
    • Line 200: warning: receiver name sb should be consistent with previous receiver name b for KalmanBlobie (golint)
    • Line 204: warning: exported method KalmanBlobie.SetExists should have comment or be unexported (golint)
    • Line 204: warning: receiver name sb should be consistent with previous receiver name b for KalmanBlobie (golint)
    • Line 218: warning: exported method KalmanBlobie.GetProperty should have comment or be unexported (golint)
    • Line 223: warning: exported method KalmanBlobie.SetProperty should have comment or be unexported (golint)
    • gocv-blob/v2/blob/line_cross.go
    • Line 3: warning: exported type PointsOrientation should have comment or be unexported (golint)
    • Line 6: warning: exported const Collinear should have comment (or a comment on this block) or be unexported (golint)
    • Line 159: warning: comment on exported method SimpleBlobie.IsCrossedTheObliqueLineWithShift should be of the form "IsCrossedTheObliqueLineWithShift ..." (golint)
    • Line 261: warning: comment on exported method KalmanBlobie.IsCrossedTheObliqueLineWithShift should be of the form "IsCrossedTheObliqueLineWithShift ..." (golint)
    • gocv-blob/v2/blob/line_cross_test.go
    • Line 16: warning: don't use underscores in Go names; var simpleB_time0 should be simpleBTime0 (golint)
    • Line 17: warning: don't use underscores in Go names; var simpleB_time1 should be simpleBTime1 (golint)
    • Line 18: warning: don't use underscores in Go names; var simpleB_time2 should be simpleBTime2 (golint)
    • Line 50: warning: don't use underscores in Go names; var simpleB_time0 should be simpleBTime0 (golint)
    • Line 51: warning: don't use underscores in Go names; var simpleB_time1 should be simpleBTime1 (golint)
    • Line 52: warning: don't use underscores in Go names; var simpleB_time2 should be simpleBTime2 (golint)
    • gocv-blob/v2/blob/simple_blob.go
    • Line 144: warning: exported method SimpleBlobie.GetID should have comment or be unexported (golint)
    • Line 144: warning: receiver name sb should be consistent with previous receiver name b for SimpleBlobie (golint)
    • Line 148: warning: exported method SimpleBlobie.GetCenter should have comment or be unexported (golint)
    • Line 148: warning: receiver name sb should be consistent with previous receiver name b for SimpleBlobie (golint)
    • Line 152: warning: exported method SimpleBlobie.GetCurrentRect should have comment or be unexported (golint)
    • Line 152: warning: receiver name sb should be consistent with previous receiver name b for SimpleBlobie (golint)
    • Line 156: warning: exported method SimpleBlobie.GetTrack should have comment or be unexported (golint)
    • Line 156: warning: receiver name sb should be consistent with previous receiver name b for SimpleBlobie (golint)
    • Line 160: warning: exported method SimpleBlobie.GetTimestamps should have comment or be unexported (golint)
    • Line 160: warning: receiver name sb should be consistent with previous receiver name b for SimpleBlobie (golint)
    • Line 164: warning: exported method SimpleBlobie.GetDiagonal should have comment or be unexported (golint)
    • Line 164: warning: receiver name sb should be consistent with previous receiver name b for SimpleBlobie (golint)
    • Line 168: warning: exported method SimpleBlobie.GetPredictedNextPosition should have comment or be unexported (golint)
    • Line 168: warning: receiver name sb should be consistent with previous receiver name b for SimpleBlobie (golint)
    • Line 172: warning: exported method SimpleBlobie.NoMatchTimes should have comment or be unexported (golint)
    • Line 172: warning: receiver name sb should be consistent with previous receiver name b for SimpleBlobie (golint)
    • Line 176: warning: exported method SimpleBlobie.Exists should have comment or be unexported (golint)
    • Line 176: warning: receiver name sb should be consistent with previous receiver name b for SimpleBlobie (golint)
    • Line 180: warning: exported method SimpleBlobie.SetID should have comment or be unexported (golint)
    • Line 180: warning: receiver name sb should be consistent with previous receiver name b for SimpleBlobie (golint)
    • Line 184: warning: exported method SimpleBlobie.SetTracking should have comment or be unexported (golint)
    • Line 184: warning: receiver name sb should be consistent with previous receiver name b for SimpleBlobie (golint)
    • Line 188: warning: exported method SimpleBlobie.IncrementNoMatchTimes should have comment or be unexported (golint)
    • Line 188: warning: receiver name sb should be consistent with previous receiver name b for SimpleBlobie (golint)
    • Line 192: warning: exported method SimpleBlobie.SetExists should have comment or be unexported (golint)
    • Line 192: warning: receiver name sb should be consistent with previous receiver name b for SimpleBlobie (golint)
    • Line 206: warning: exported method SimpleBlobie.GetProperty should have comment or be unexported (golint)
    • Line 211: warning: exported method SimpleBlobie.SetProperty should have comment or be unexported (golint)

license0%

Checks whether your project has a LICENSE file.


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell84%

Misspell Finds commonly misspelled English words