Preparing report...

Report for github.com/ksonnet/ksonnet

A+    Excellent!    Found 44 issues across 468 files

Tweet

gofmt96%

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!


gocyclo98%

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.

    • ksonnet/pkg/docparser/lexer.go
    • Line 378: warning: cyclomatic complexity 40 of function (*lexer).lexNumber() is high (> 15) (gocyclo)
    • Line 685: warning: cyclomatic complexity 40 of function Lex() is high (> 15) (gocyclo)
    • Line 546: warning: cyclomatic complexity 38 of function (*lexer).lexSymbol() is high (> 15) (gocyclo)
    • Line 490: warning: cyclomatic complexity 22 of function (*lexer).lexIdentifier() is high (> 15) (gocyclo)
    • ksonnet/pkg/docparser/parser.go
    • Line 852: warning: cyclomatic complexity 75 of function (*parser).parse() is high (> 15) (gocyclo)
    • Line 307: warning: cyclomatic complexity 51 of function (*parser).parseObjectRemainder() is high (> 15) (gocyclo)
    • Line 740: warning: cyclomatic complexity 24 of function (*parser).parseTerminal() is high (> 15) (gocyclo)
    • ksonnet/pkg/docparser/context.go
    • Line 40: warning: cyclomatic complexity 32 of function directChildren() is high (> 15) (gocyclo)
    • Line 132: warning: cyclomatic complexity 29 of function thunkChildren() is high (> 15) (gocyclo)
    • Line 227: warning: cyclomatic complexity 27 of function specialChildren() is high (> 15) (gocyclo)
    • Line 314: warning: cyclomatic complexity 16 of function addContext() is high (> 15) (gocyclo)

golint96%

Golint is a linter for Go source code.

    • ksonnet/pkg/docparser/lexer.go
    • Line 29: warning: comment on exported type FodderKind should be of the form "FodderKind ..." (with optional leading article) (golint)
    • Line 37: warning: exported const FodderWhitespace should have comment (or a comment on this block) or be unexported (golint)
    • Line 43: warning: exported type FodderElement should have comment or be unexported (golint)
    • Line 685: warning: exported function Lex should have comment or be unexported (golint)
    • ksonnet/pkg/docparser/parser.go
    • Line 303: warning: comment on exported type LiteralField should be of the form "LiteralField ..." (with optional leading article) (golint)
    • Line 1209: warning: exported function Parse should have comment or be unexported (golint)
    • ksonnet/pkg/parts/schema.go
    • Line 27: warning: exported const DefaultAPIVersion should have comment (or a comment on this block) or be unexported (golint)
    • Line 31: warning: exported type Spec should have comment or be unexported (golint)
    • Line 48: warning: exported function Unmarshal should have comment or be unexported (golint)
    • Line 62: warning: exported method Spec.Marshal should have comment or be unexported (golint)
    • Line 82: warning: exported type ContributorSpec should have comment or be unexported (golint)
    • Line 87: warning: exported type ContributorSpecs should have comment or be unexported (golint)
    • Line 89: warning: exported type RepositorySpec should have comment or be unexported (golint)
    • Line 94: warning: exported type BugSpec should have comment or be unexported (golint)
    • Line 98: warning: exported type QuickStartSpec should have comment or be unexported (golint)
    • Line 105: warning: exported type Specs should have comment or be unexported (golint)
    • Line 107: warning: exported type PrototypeRefSpecs should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign99%

IneffAssign detects ineffectual assignments in Go code.


misspell97%

Misspell Finds commonly misspelled English words