Preparing report...

Report for github.com/mimol91/timsort

B    Not bad!    Found 2 issues across 2 files

Tweet

gofmt50%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command

    • timsort/pkg/timesort/timesort.go
    • Line 6: expected '}', found 'type':1::warning: file is not gofmted with -s (gofmt)
    • Line 10: expected declaration, found 'if':1::warning: file is not gofmted with -s (gofmt)
    • Line 35: expected declaration, found value:1::warning: file is not gofmted with -s (gofmt)
    • Line 52: expected declaration, found 'if':1::warning: file is not gofmted with -s (gofmt)
    • Line 78: expected declaration, found newRun:1::warning: file is not gofmted with -s (gofmt)
    • Line 99: expected declaration, found 'for':1::warning: file is not gofmted with -s (gofmt)

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!


golint50%

Golint is a linter for Go source code.


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!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign0%

IneffAssign detects ineffectual assignments in Go code.

    • timsort/pkg/timesort/timesort.go
    • Line 6: warning: expected '}', found 'type' (ineffassign)
    • Line 6: warning: expected ';', found int (ineffassign)
    • Line 10: warning: expected declaration, found 'if' (ineffassign)
    • Line 35: warning: expected declaration, found value (ineffassign)
    • Line 52: warning: expected declaration, found 'if' (ineffassign)
    • Line 78: warning: expected declaration, found newRun (ineffassign)
    • Line 99: warning: expected declaration, found 'for' (ineffassign)
    • Line 50: warning: result redeclared in this block (ineffassign)
    • Line 34: warning: other declaration of result (ineffassign)
    • Line 34: warning: undeclared name: T (ineffassign)
    • Line 50: warning: undeclared name: T (ineffassign)
    • Line 76: warning: undeclared name: T (ineffassign)
    • Line 77: warning: undeclared name: T (ineffassign)
    • Line 98: warning: undeclared name: T (ineffassign)
    • Line 3: warning: "math" imported but not used (ineffassign)
    • Line 6: warning: expected '}', found 'type' (ineffassign)
    • Line 6: warning: expected ';', found int (ineffassign)
    • Line 10: warning: expected declaration, found 'if' (ineffassign)
    • Line 35: warning: expected declaration, found value (ineffassign)
    • Line 52: warning: expected declaration, found 'if' (ineffassign)
    • Line 78: warning: expected declaration, found newRun (ineffassign)
    • Line 99: warning: expected declaration, found 'for' (ineffassign)
    • Line 50: warning: result redeclared in this block (ineffassign)
    • Line 34: warning: other declaration of result (ineffassign)
    • Line 34: warning: undeclared name: T (ineffassign)
    • Line 50: warning: undeclared name: T (ineffassign)
    • Line 76: warning: undeclared name: T (ineffassign)
    • Line 77: warning: undeclared name: T (ineffassign)
    • Line 98: warning: undeclared name: T (ineffassign)
    • Line 3: warning: "math" imported but not used (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!