Preparing report...

Report for github.com/evalphobia/face-detect-annotator

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


golint34%

Golint is a linter for Go source code.

    • face-detect-annotator/engine/dlib/face_detector_dlib.go
    • Line 11: warning: exported type Config should have comment or be unexported (golint)
    • Line 15: warning: exported type DlibFaceDetector should have comment or be unexported (golint)
    • Line 19: warning: exported method DlibFaceDetector.Init should have comment or be unexported (golint)
    • Line 38: warning: exported method DlibFaceDetector.Detect should have comment or be unexported (golint)
    • face-detect-annotator/engine/face_data.go
    • Line 6: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 9: warning: exported type FaceData should have comment or be unexported (golint)
    • Line 23: warning: exported method FaceData.SizeString should have comment or be unexported (golint)
    • Line 27: warning: exported method FaceData.PercentString should have comment or be unexported (golint)
    • Line 31: warning: exported method FaceData.ToJson should have comment or be unexported (golint)
    • Line 36: warning: exported method FaceData.MaxX should have comment or be unexported (golint)
    • Line 40: warning: exported method FaceData.MaxY should have comment or be unexported (golint)
    • face-detect-annotator/config.go
    • Line 43: warning: exported type Config should have comment or be unexported (golint)
    • Line 64: warning: exported function NewConfig should have comment or be unexported (golint)
    • Line 146: warning: exported method Config.GetAzureRegion should have comment or be unexported (golint)
    • Line 153: warning: exported method Config.GetAzureSubscriptionKey should have comment or be unexported (golint)
    • Line 157: warning: exported method Config.GetPigoCascadeFile should have comment or be unexported (golint)
    • Line 164: warning: exported method Config.GetDlibModelDir should have comment or be unexported (golint)
    • Line 171: warning: exported method Config.GetOpenCVCascadeFile should have comment or be unexported (golint)
    • Line 178: warning: exported method Config.GetTensorFlowModelFile should have comment or be unexported (golint)
    • face-detect-annotator/engine/face_result.go
    • Line 6: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 9: warning: exported type FaceResult should have comment or be unexported (golint)
    • Line 14: warning: exported method FaceResult.HasFaces should have comment or be unexported (golint)
    • Line 18: warning: exported method FaceResult.ShowOutput should have comment or be unexported (golint)
    • face-detect-annotator/engine/opencv/face_detector_opencv.go
    • Line 13: warning: exported type Config should have comment or be unexported (golint)
    • Line 17: warning: exported type OpenCVFaceDetector should have comment or be unexported (golint)
    • Line 22: warning: exported method OpenCVFaceDetector.Init should have comment or be unexported (golint)
    • Line 41: warning: exported method OpenCVFaceDetector.Detect should have comment or be unexported (golint)
    • face-detect-annotator/engine/pigo/face_detector_pigo.go
    • Line 13: warning: exported type Config should have comment or be unexported (golint)
    • Line 17: warning: exported type PigoFaceDetector should have comment or be unexported (golint)
    • Line 30: warning: exported method PigoFaceDetector.Init should have comment or be unexported (golint)
    • Line 61: warning: exported method PigoFaceDetector.Detect should have comment or be unexported (golint)
    • face-detect-annotator/engine/azure/face_detector_azure_vision.go
    • Line 15: warning: exported type Config should have comment or be unexported (golint)
    • Line 20: warning: exported type AzureVisionFaceDetector should have comment or be unexported (golint)
    • Line 24: warning: exported method AzureVisionFaceDetector.Init should have comment or be unexported (golint)
    • Line 43: warning: exported method AzureVisionFaceDetector.Detect should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign95%

IneffAssign detects ineffectual assignments in Go code.


misspell95%

Misspell Finds commonly misspelled English words