Preparing report...

Report for github.com/tisnik/wccode

A    Great!    Found 21 issues across 20 files

Tweet

gofmt85%

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

    • wccode/03_bad_syntax.go
    • Line 4: unexpected newline, expecting { after if clause:1::warning: file is not gofmted with -s (gofmt)
    • Line 8: expected statement, found 'else':1::warning: file is not gofmted with -s (gofmt)
    • Line 11: expected statement, found 'else':1::warning: file is not gofmted with -s (gofmt)
    • Line 15: expected declaration, found '}':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!


golint95%

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!


license0%

Checks whether your project has a LICENSE file.


ineffassign0%

IneffAssign detects ineffectual assignments in Go code.

    • wccode/06_integer_signed_types_checks.go
    • Line 14: warning: main redeclared in this block (ineffassign)
    • Line 15: warning: cannot use -1000 (untyped int constant) as int8 value in variable declaration (overflows) (ineffassign)
    • Line 16: warning: cannot use -100000 (untyped int constant) as int16 value in variable declaration (overflows) (ineffassign)
    • Line 17: warning: cannot use -10000000000 (untyped int constant) as int32 value in variable declaration (overflows) (ineffassign)
    • Line 18: warning: cannot use -10000000000000000 (untyped int constant) as int32 value in variable declaration (overflows) (ineffassign)
    • wccode/02_parenthesis.go
    • Line 4: warning: unexpected semicolon or newline before { (ineffassign)
    • Line 3: warning: other declaration of main (ineffassign)
    • Line 3: warning: other declaration of main (ineffassign)
    • Line 3: warning: other declaration of main (ineffassign)
    • Line 3: warning: other declaration of main (ineffassign)
    • Line 3: warning: other declaration of main (ineffassign)
    • Line 3: warning: other declaration of main (ineffassign)
    • Line 3: warning: other declaration of main (ineffassign)
    • Line 3: warning: other declaration of main (ineffassign)
    • Line 3: warning: other declaration of main (ineffassign)
    • Line 3: warning: other declaration of main (ineffassign)
    • Line 3: warning: other declaration of main (ineffassign)
    • Line 3: warning: other declaration of main (ineffassign)
    • Line 3: warning: other declaration of main (ineffassign)
    • Line 3: warning: other declaration of main (ineffassign)
    • Line 3: warning: other declaration of main (ineffassign)
    • Line 3: warning: other declaration of main (ineffassign)
    • wccode/03_bad_syntax.go
    • Line 4: warning: unexpected newline, expecting { after if clause (ineffassign)
    • Line 8: warning: expected statement, found 'else' (ineffassign)
    • Line 11: warning: expected statement, found 'else' (ineffassign)
    • Line 15: warning: expected declaration, found '}' (ineffassign)
    • Line 4: warning: c >= 'a' && c <= 'z' (untyped bool value) is not used (ineffassign)
    • wccode/08_fp_types_checks.go
    • Line 12: warning: main redeclared in this block (ineffassign)
    • Line 13: warning: cannot use 1e300 (untyped float constant 1e+300) as float32 value in variable declaration (overflows) (ineffassign)
    • Line 14: warning: cannot use -1e300 (untyped float constant -1e+300) as float32 value in variable declaration (overflows) (ineffassign)
    • Line 16: warning: cannot use 1e3000 (untyped float constant 1e+3000) as float64 value in variable declaration (overflows) (ineffassign)
    • Line 17: warning: cannot use -1e3000 (untyped float constant -1e+3000) as float64 value in variable declaration (overflows) (ineffassign)
    • Line 13: warning: c declared but not used (ineffassign)
    • Line 14: warning: d declared but not used (ineffassign)
    • Line 16: warning: g declared but not used (ineffassign)
    • Line 17: warning: h declared but not used (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!