Preparing report...

Report for github.com/karan/vocabulary

C    Needs some work    Found 4 issues across 4 files

Tweet

gofmt25%

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!


golint50%

Golint is a linter for Go source code.

    • vocabulary/vocabulary.go
    • Line 37: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 69: warning: comment on exported type PartOfSpeech should be of the form "PartOfSpeech ..." (with optional leading article) (golint)
    • Line 75: warning: comment on exported type Word should be of the form "Word ..." (with optional leading article) (golint)
    • Line 92: warning: comment on exported method Vocabulary.Word should be of the form "Word ..." (golint)
    • Line 141: warning: comment on exported method Vocabulary.Meanings should be of the form "Meanings ..." (golint)
    • Line 169: warning: comment on exported method Vocabulary.Synonyms should be of the form "Synonyms ..." (golint)
    • Line 184: warning: don't use underscores in Go names; range var tuc_raw should be tucRaw (golint)
    • Line 197: warning: comment on exported method Vocabulary.Antonyms should be of the form "Antonyms ..." (golint)
    • Line 223: warning: comment on exported method Vocabulary.PartOfSpeech should be of the form "PartOfSpeech ..." (golint)
    • Line 242: warning: comment on exported method Vocabulary.UsageExample should be of the form "UsageExample ..." (golint)
    • vocabulary/api_types.go
    • Line 9: warning: exported type GlosbeThing should have comment or be unexported (golint)
    • Line 13: warning: exported type GlosbeMeanings should have comment or be unexported (golint)
    • Line 17: warning: exported type GlosbePhrase should have comment or be unexported (golint)
    • Line 21: warning: exported type Glosbe should have comment or be unexported (golint)
    • Line 28: warning: exported type UrbanDictThing should have comment or be unexported (golint)
    • Line 34: warning: exported type UrbanDictResp should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign75%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!