Preparing report...

Report for github.com/zew/go-questionnaire

A+    Excellent!    Found 30 issues across 118 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!


gocyclo82%

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.

    • go-questionnaire/qst/questionnaire.go
    • Line 786: warning: cyclomatic complexity 29 of function (*QuestionnaireT).PageHTML() is high (> 15) (gocyclo)
    • Line 1099: warning: cyclomatic complexity 17 of function (*QuestionnaireT).Compare() is high (> 15) (gocyclo)
    • Line 692: warning: cyclomatic complexity 17 of function (*QuestionnaireT).RandomizeOrder() is high (> 15) (gocyclo)

golint96%

Golint is a linter for Go source code.

    • go-questionnaire/generators/pat2/core-pat2.go
    • Line 12: warning: exported var PartIGroupsLong should have comment or be unexported (golint)
    • Line 25: warning: exported var PartIGroupsShortOLD should have comment or be unexported (golint)
    • Line 31: warning: comment on exported var PartIGroupsShort should be of the form "PartIGroupsShort ..." (golint)
    • Line 81: warning: comment on exported var Pat3Part2 should be of the form "Pat3Part2 ..." (golint)
    • Line 88: warning: comment on exported var GroupIDs should be of the form "GroupIDs ..." (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!


misspell94%

Misspell Finds commonly misspelled English words

    • go-questionnaire/trl/core.go
    • Line 3: warning: "transations" is a misspelling of "transitions" (misspell)
    • Line 23: warning: "exemple" is a misspelling of "example" (misspell)
    • Line 110: warning: "Spanisch" is a misspelling of "Spanish" (misspell)
    • Line 195: warning: "Continuare" is a misspelling of "Continue" (misspell)
    • Line 220: warning: "compreso" is a misspelling of "compressor" (misspell)
    • Line 341: warning: "concluso" is a misspelling of "conclusion" (misspell)