Preparing report...

Report for github.com/tommy-muehle/go-mnd

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


golint40%

Golint is a linter for Go source code.

    • go-mnd/checks/return.go
    • Line 12: warning: exported const ReturnCheck should have comment or be unexported (golint)
    • Line 14: warning: exported type ReturnAnalyzer should have comment or be unexported (golint)
    • Line 19: warning: exported function NewReturnAnalyzer should have comment or be unexported (golint)
    • Line 26: warning: exported method ReturnAnalyzer.NodeFilter should have comment or be unexported (golint)
    • Line 32: warning: exported method ReturnAnalyzer.Check should have comment or be unexported (golint)
    • go-mnd/analyzer.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 16: warning: exported const Doc should have comment or be unexported (golint)
    • Line 18: warning: exported var Analyzer should have comment or be unexported (golint)
    • Line 27: warning: exported type Checker should have comment or be unexported (golint)
    • go-mnd/config/config.go
    • Line 8: warning: exported type Config should have comment or be unexported (golint)
    • Line 15: warning: exported type Option should have comment or be unexported (golint)
    • Line 17: warning: exported function DefaultConfig should have comment or be unexported (golint)
    • Line 35: warning: exported function WithOptions should have comment or be unexported (golint)
    • Line 45: warning: exported function WithIgnoredFunctions should have comment or be unexported (golint)
    • Line 57: warning: exported function WithIgnoredFiles should have comment or be unexported (golint)
    • Line 69: warning: exported function WithIgnoredNumbers should have comment or be unexported (golint)
    • Line 81: warning: exported function WithCustomChecks should have comment or be unexported (golint)
    • Line 87: warning: should omit 2nd value from range; this loop is equivalent to `for name := range ...` (golint)
    • Line 97: warning: exported method Config.IsCheckEnabled should have comment or be unexported (golint)
    • Line 101: warning: exported method Config.IsIgnoredNumber should have comment or be unexported (golint)
    • Line 106: warning: exported method Config.IsIgnoredFunction should have comment or be unexported (golint)
    • go-mnd/checks/argument.go
    • Line 14: warning: exported const ArgumentCheck should have comment or be unexported (golint)
    • Line 20: warning: exported type ArgumentAnalyzer should have comment or be unexported (golint)
    • Line 25: warning: exported function NewArgumentAnalyzer should have comment or be unexported (golint)
    • Line 32: warning: exported method ArgumentAnalyzer.NodeFilter should have comment or be unexported (golint)
    • Line 39: warning: exported method ArgumentAnalyzer.Check should have comment or be unexported (golint)
    • go-mnd/checks/assign.go
    • Line 12: warning: exported const AssignCheck should have comment or be unexported (golint)
    • Line 14: warning: exported type AssignAnalyzer should have comment or be unexported (golint)
    • Line 19: warning: exported function NewAssignAnalyzer should have comment or be unexported (golint)
    • Line 26: warning: exported method AssignAnalyzer.NodeFilter should have comment or be unexported (golint)
    • Line 33: warning: exported method AssignAnalyzer.Check should have comment or be unexported (golint)
    • go-mnd/checks/condition.go
    • Line 12: warning: exported const ConditionCheck should have comment or be unexported (golint)
    • Line 14: warning: exported type ConditionAnalyzer should have comment or be unexported (golint)
    • Line 19: warning: exported function NewConditionAnalyzer should have comment or be unexported (golint)
    • Line 26: warning: exported method ConditionAnalyzer.NodeFilter should have comment or be unexported (golint)
    • Line 32: warning: exported method ConditionAnalyzer.Check should have comment or be unexported (golint)
    • go-mnd/checks/case.go
    • Line 12: warning: exported const CaseCheck should have comment or be unexported (golint)
    • Line 14: warning: exported type CaseAnalyzer should have comment or be unexported (golint)
    • Line 19: warning: exported function NewCaseAnalyzer should have comment or be unexported (golint)
    • Line 26: warning: exported method CaseAnalyzer.NodeFilter should have comment or be unexported (golint)
    • Line 32: warning: exported method CaseAnalyzer.Check should have comment or be unexported (golint)
    • go-mnd/checks/operation.go
    • Line 12: warning: exported const OperationCheck should have comment or be unexported (golint)
    • Line 14: warning: exported type OperationAnalyzer should have comment or be unexported (golint)
    • Line 19: warning: exported function NewOperationAnalyzer should have comment or be unexported (golint)
    • Line 26: warning: exported method OperationAnalyzer.NodeFilter should have comment or be unexported (golint)
    • Line 33: warning: exported method OperationAnalyzer.Check 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!