Preparing report...

Report for github.com/chrisport/go-lang-detector

A    Great!    Found 6 issues across 9 files

Tweet

gofmt77%

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!


golint44%

Golint is a linter for Go source code.

    • go-lang-detector/langdet/models.go
    • Line 21: warning: comment on exported type LanguageComparator should be of the form "LanguageComparator ..." (with optional leading article) (golint)
    • Line 27: warning: exported type Language should have comment or be unexported (golint)
    • Line 32: warning: exported method Language.GetName should have comment or be unexported (golint)
    • Line 35: warning: exported method Language.CompareTo should have comment or be unexported (golint)
    • go-lang-detector/langdet/unicode_detector.go
    • Line 8: warning: comment on exported type UnicodeRangeLanguageComparator should be of the form "UnicodeRangeLanguageComparator ..." (with optional leading article) (golint)
    • Line 14: warning: exported method UnicodeRangeLanguageComparator.GetName should have comment or be unexported (golint)
    • Line 18: warning: exported method UnicodeRangeLanguageComparator.CompareTo should have comment or be unexported (golint)
    • go-lang-detector/langdet/langdetdef/languages.go
    • Line 43: warning: exported var CHINESE_JAPANESE_KOREAN should have comment or be unexported (golint)
    • Line 44: warning: exported var HEBREW should have comment or be unexported (golint)
    • Line 45: warning: exported var ARABIC should have comment or be unexported (golint)
    • Line 46: warning: exported var ENGLISH should have comment or be unexported (golint)
    • Line 47: warning: exported var RUSSIAN should have comment or be unexported (golint)
    • Line 48: warning: exported var GERMAN should have comment or be unexported (golint)
    • Line 49: warning: exported var FRENCH should have comment or be unexported (golint)
    • Line 50: warning: exported var TURKISH should have comment or be unexported (golint)
    • Line 52: warning: exported function DefaultLanguages should have comment or be unexported (golint)
    • go-lang-detector/langdet/analyzing.go
    • Line 15: warning: exported function Analyze should have comment or be unexported (golint)
    • Line 19: warning: comment on exported function AnalyzeWithNDepth should be of the form "AnalyzeWithNDepth ..." (golint)
    • Line 26: warning: comment on exported function CreateRankLookupMap should be of the form "CreateRankLookupMap ..." (golint)
    • go-lang-detector/langdet/detection.go
    • Line 8: warning: comment on exported const DEFAULT_NDEPTH should be of the form "DEFAULT_NDEPTH ..." (golint)
    • Line 11: warning: comment on exported const DEFAULT_MAXRANK should be of the form "DEFAULT_MAXRANK ..." (golint)
    • Line 31: warning: comment on exported method Detector.AddLanguageFromText should be of the form "AddLanguageFromText ..." (golint)
    • Line 42: warning: comment on exported method Detector.AddLanguageComparators should be of the form "AddLanguageComparators ..." (golint)
    • Line 52: warning: comment on exported method Detector.AddLanguage should be of the form "AddLanguage ..." (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign77%

IneffAssign detects ineffectual assignments in Go code.


misspell88%

Misspell Finds commonly misspelled English words