Preparing report...

Report for github.com/ahmdrz/microsoft-cognitive-services

A    Great!    Found 12 issues across 16 files

Tweet

gofmt93%

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!


golint31%

Golint is a linter for Go source code.

    • microsoft-cognitive-services/computer-vision/upload.go
    • Line 14: warning: exported method Vision.AnalyzeFile should have comment or be unexported (golint)
    • Line 76: warning: exported method Vision.TagFile should have comment or be unexported (golint)
    • Line 136: warning: exported method Vision.DescribeFile should have comment or be unexported (golint)
    • Line 197: warning: exported method Vision.OCRFile should have comment or be unexported (golint)
    • microsoft-cognitive-services/emotion/emotion.go
    • Line 11: warning: exported function New should have comment or be unexported (golint)
    • Line 20: warning: exported method Emotion.Recognize should have comment or be unexported (golint)
    • Line 63: warning: exported method Emotion.RecognizeFace should have comment or be unexported (golint)
    • Line 118: warning: exported method Emotion.GetVideoResult should have comment or be unexported (golint)
    • microsoft-cognitive-services/emotion/types.go
    • Line 7: warning: exported type Emotion should have comment or be unexported (golint)
    • Line 12: warning: exported type Error should have comment or be unexported (golint)
    • Line 18: warning: exported const URL should have comment (or a comment on this block) or be unexported (golint)
    • Line 21: warning: exported type EmotionDetail should have comment or be unexported (golint)
    • Line 26: warning: exported type Rectangle should have comment or be unexported (golint)
    • Line 40: warning: exported type Score should have comment or be unexported (golint)
    • Line 51: warning: exported type VideoResult should have comment or be unexported (golint)
    • microsoft-cognitive-services/face/types.go
    • Line 8: warning: exported type Face should have comment or be unexported (golint)
    • Line 13: warning: exported type Error should have comment or be unexported (golint)
    • Line 19: warning: exported const URL should have comment (or a comment on this block) or be unexported (golint)
    • Line 22: warning: exported type HeadPose should have comment or be unexported (golint)
    • Line 28: warning: exported type FacialHair should have comment or be unexported (golint)
    • Line 34: warning: exported type FaceAttributes should have comment or be unexported (golint)
    • Line 43: warning: exported type Rectangle should have comment or be unexported (golint)
    • Line 50: warning: exported type FaceLandmarks should have comment or be unexported (golint)
    • Line 80: warning: exported type FaceAttributesOrder should have comment or be unexported (golint)
    • Line 115: warning: exported type Position should have comment or be unexported (golint)
    • Line 120: warning: exported type FaceDetect should have comment or be unexported (golint)
    • Line 127: warning: exported type DetectOrder should have comment or be unexported (golint)
    • microsoft-cognitive-services/computer-vision/types.go
    • Line 10: warning: exported const URL should have comment (or a comment on this block) or be unexported (golint)
    • Line 11: warning: don't use underscores in Go names; const LANG_AutoDetect should be LANGAutoDetect (golint)
    • Line 12: warning: don't use underscores in Go names; const LANG_ChineseSimplified should be LANGChineseSimplified (golint)
    • Line 13: warning: don't use underscores in Go names; const LANG_ChineseTraditional should be LANGChineseTraditional (golint)
    • Line 14: warning: don't use underscores in Go names; const LANG_Czech should be LANGCzech (golint)
    • Line 15: warning: don't use underscores in Go names; const LANG_Danish should be LANGDanish (golint)
    • Line 16: warning: don't use underscores in Go names; const LANG_Dutch should be LANGDutch (golint)
    • Line 17: warning: don't use underscores in Go names; const LANG_English should be LANGEnglish (golint)
    • Line 18: warning: don't use underscores in Go names; const LANG_Finnish should be LANGFinnish (golint)
    • Line 19: warning: don't use underscores in Go names; const LANG_French should be LANGFrench (golint)
    • Line 20: warning: don't use underscores in Go names; const LANG_German should be LANGGerman (golint)
    • Line 21: warning: don't use underscores in Go names; const LANG_Greek should be LANGGreek (golint)
    • Line 22: warning: don't use underscores in Go names; const LANG_Hungarian should be LANGHungarian (golint)
    • Line 23: warning: don't use underscores in Go names; const LANG_Italian should be LANGItalian (golint)
    • Line 24: warning: don't use underscores in Go names; const LANG_Japanese should be LANGJapanese (golint)
    • Line 25: warning: don't use underscores in Go names; const LANG_Korean should be LANGKorean (golint)
    • Line 26: warning: don't use underscores in Go names; const LANG_Norwegian should be LANGNorwegian (golint)
    • Line 27: warning: don't use underscores in Go names; const LANG_Polish should be LANGPolish (golint)
    • Line 28: warning: don't use underscores in Go names; const LANG_Portuguese should be LANGPortuguese (golint)
    • Line 29: warning: don't use underscores in Go names; const LANG_Russian should be LANGRussian (golint)
    • Line 30: warning: don't use underscores in Go names; const LANG_Spanish should be LANGSpanish (golint)
    • Line 31: warning: don't use underscores in Go names; const LANG_Swedish should be LANGSwedish (golint)
    • Line 32: warning: don't use underscores in Go names; const LANG_Turkish should be LANGTurkish (golint)
    • Line 35: warning: comment on exported type Vision should be of the form "Vision ..." (with optional leading article) (golint)
    • Line 41: warning: exported type Error should have comment or be unexported (golint)
    • Line 62: warning: exported type VisualFeatures should have comment or be unexported (golint)
    • Line 97: warning: exported type OCROption should have comment or be unexported (golint)
    • Line 112: warning: exported type VisionOCRResult should have comment or be unexported (golint)
    • Line 136: warning: exported type Region should have comment or be unexported (golint)
    • Line 141: warning: exported type Line should have comment or be unexported (golint)
    • Line 146: warning: exported type Word should have comment or be unexported (golint)
    • Line 151: warning: exported type VisionResult should have comment or be unexported (golint)
    • Line 163: warning: exported type Tag should have comment or be unexported (golint)
    • Line 168: warning: exported type Description should have comment or be unexported (golint)
    • Line 173: warning: exported type Caption should have comment or be unexported (golint)
    • Line 178: warning: exported type MetaData should have comment or be unexported (golint)
    • Line 184: warning: exported type Color should have comment or be unexported (golint)
    • Line 192: warning: exported type ImageType should have comment or be unexported (golint)
    • Line 197: warning: exported type Face should have comment or be unexported (golint)
    • Line 203: warning: exported type Rectangle should have comment or be unexported (golint)
    • Line 210: warning: exported type Adult should have comment or be unexported (golint)
    • Line 217: warning: exported type Category should have comment or be unexported (golint)
    • Line 222: warning: exported type Model should have comment or be unexported (golint)
    • Line 227: warning: exported type Image should have comment or be unexported (golint)
    • Line 231: warning: exported method Image.Save should have comment or be unexported (golint)
    • Line 244: warning: exported type ThumbnailOrder should have comment or be unexported (golint)
    • microsoft-cognitive-services/academic/types.go
    • Line 7: warning: exported type Academic should have comment or be unexported (golint)
    • Line 12: warning: exported type Error should have comment or be unexported (golint)
    • Line 18: warning: exported const URL should have comment (or a comment on this block) or be unexported (golint)
    • Line 21: warning: exported type CalcHistogramRequest should have comment or be unexported (golint)
    • Line 46: warning: exported type CalcHistogramResult should have comment or be unexported (golint)
    • Line 52: warning: exported type HistogramItem should have comment or be unexported (golint)
    • Line 59: warning: exported type Histogram should have comment or be unexported (golint)
    • microsoft-cognitive-services/spell-check/types.go
    • Line 3: warning: exported type Spell should have comment or be unexported (golint)
    • Line 8: warning: exported type Error should have comment or be unexported (golint)
    • Line 14: warning: exported const URL should have comment (or a comment on this block) or be unexported (golint)
    • Line 19: warning: exported type Result should have comment or be unexported (golint)
    • Line 24: warning: exported type FlaggedToken should have comment or be unexported (golint)
    • Line 31: warning: exported type Suggest should have comment or be unexported (golint)
    • microsoft-cognitive-services/computer-vision/vision.go
    • Line 1: warning: package comment should be of the form "Package vision ..." (golint)
    • Line 26: warning: exported function New should have comment or be unexported (golint)
    • Line 35: warning: exported method Vision.Analyze should have comment or be unexported (golint)
    • Line 84: warning: exported method Vision.Tag should have comment or be unexported (golint)
    • Line 129: warning: exported method Vision.OCR should have comment or be unexported (golint)
    • Line 174: warning: exported method Vision.Describe should have comment or be unexported (golint)
    • Line 219: warning: exported method Vision.GetModels should have comment or be unexported (golint)
    • Line 264: warning: exported method Vision.Thumbnail 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!