Preparing report...

Report for github.com/gopherjs/gopherjs

(v1.17.2)

A+    Excellent!    Found 22 issues across 163 files

Tweet

gofmt99%

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!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


gocyclo88%

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.

    • tool.go
    • Line 73: warning: cyclomatic complexity 108 of function main() is high (> 15) (gocyclo)
    • Line 668: warning: cyclomatic complexity 17 of function (serveCommandFileSystem).Open() is high (> 15) (gocyclo)
    • build/build.go
    • Line 172: warning: cyclomatic complexity 41 of function parseAndAugment() is high (> 15) (gocyclo)
    • Line 567: warning: cyclomatic complexity 22 of function (*Session).BuildPackage() is high (> 15) (gocyclo)
    • compiler/compiler.go
    • Line 289: warning: cyclomatic complexity 26 of function WritePkgCode() is high (> 15) (gocyclo)
    • Line 192: warning: cyclomatic complexity 25 of function WriteProgramCode() is high (> 15) (gocyclo)
    • compiler/expressions.go
    • Line 35: warning: cyclomatic complexity 236 of function (*funcContext).translateExpr() is high (> 15) (gocyclo)
    • Line 1026: warning: cyclomatic complexity 56 of function (*funcContext).translateConversion() is high (> 15) (gocyclo)
    • Line 899: warning: cyclomatic complexity 37 of function (*funcContext).translateBuiltin() is high (> 15) (gocyclo)
    • Line 1337: warning: cyclomatic complexity 33 of function (*funcContext).formatExprInternal() is high (> 15) (gocyclo)
    • build/build_test.go
    • Line 23: warning: cyclomatic complexity 33 of function TestNativesDontImportExtraPackages() is high (> 15) (gocyclo)
    • compiler/analysis/info.go
    • Line 210: warning: cyclomatic complexity 29 of function (*FuncInfo).Visit() is high (> 15) (gocyclo)
    • Line 99: warning: cyclomatic complexity 17 of function AnalyzePkg() is high (> 15) (gocyclo)
    • compiler/statements.go
    • Line 25: warning: cyclomatic complexity 105 of function (*funcContext).translateStmt() is high (> 15) (gocyclo)
    • Line 691: warning: cyclomatic complexity 23 of function (*funcContext).translateAssign() is high (> 15) (gocyclo)
    • Line 544: warning: cyclomatic complexity 22 of function (*funcContext).translateBranchingStmt() is high (> 15) (gocyclo)
    • tests/gorepo/run.go
    • Line 578: warning: cyclomatic complexity 72 of function (*test).run() is high (> 15) (gocyclo)
    • Line 211: warning: cyclomatic complexity 36 of function main() is high (> 15) (gocyclo)
    • Line 1019: warning: cyclomatic complexity 17 of function (*test).updateErrors() is high (> 15) (gocyclo)
    • Line 953: warning: cyclomatic complexity 16 of function (*test).errorCheck() is high (> 15) (gocyclo)
    • compiler/natives/src/reflect/reflect.go
    • Line 1621: warning: cyclomatic complexity 36 of function deepValueEqualJs() is high (> 15) (gocyclo)
    • Line 431: warning: cyclomatic complexity 26 of function StructOf() is high (> 15) (gocyclo)
    • Line 1026: warning: cyclomatic complexity 25 of function (Value).call() is high (> 15) (gocyclo)
    • Line 59: warning: cyclomatic complexity 25 of function reflectType() is high (> 15) (gocyclo)
    • Line 1227: warning: cyclomatic complexity 17 of function getJsTag() is high (> 15) (gocyclo)
    • Line 1295: warning: cyclomatic complexity 16 of function (Value).Index() is high (> 15) (gocyclo)
    • compiler/package.go
    • Line 125: warning: cyclomatic complexity 84 of function Compile() is high (> 15) (gocyclo)
    • Line 718: warning: cyclomatic complexity 34 of function translateFunction() is high (> 15) (gocyclo)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell97%

Misspell Finds commonly misspelled English words

    • js/js.go
    • Line 161: warning: "themsevles" is a misspelling of "themselves" (misspell)