Preparing report...

Report for github.com/mybee/selenium

A+    Excellent!    Found 8 issues across 17 files

Tweet

gofmt100%

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

No problems detected. Good job!


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!


gocyclo82%

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.

    • selenium/remote_test.go
    • Line 730: warning: cyclomatic complexity 33 of function testWindows() is high (> 15) (gocyclo)
    • Line 1434: warning: cyclomatic complexity 21 of function testLog() is high (> 15) (gocyclo)
    • Line 1062: warning: cyclomatic complexity 17 of function testClick() is high (> 15) (gocyclo)
    • selenium/remote.go
    • Line 127: warning: cyclomatic complexity 19 of function (*remoteWD).execute() is high (> 15) (gocyclo)
    • Line 390: warning: cyclomatic complexity 17 of function (*remoteWD).NewSession() is high (> 15) (gocyclo)

golint76%

Golint is a linter for Go source code.

    • selenium/log/log.go
    • Line 40: warning: comment on exported type Capabilities should be of the form "Capabilities ..." (with optional leading article) (golint)
    • selenium/sauce/sauce.go
    • Line 98: warning: comment on exported type Visibility should be of the form "Visibility ..." (with optional leading article) (golint)
    • Line 102: warning: comment on exported const Public should be of the form "Public ..." (golint)
    • Line 104: warning: comment on exported const PublicRestricted should be of the form "PublicRestricted ..." (golint)
    • Line 107: warning: comment on exported const Team should be of the form "Team ..." (golint)
    • Line 110: warning: comment on exported const Private should be of the form "Private ..." (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign88%

IneffAssign detects ineffectual assignments in Go code.

    • selenium/remote_test.go
    • Line 192: warning: too few arguments in call to wd.Get (ineffassign)
    • Line 734: warning: too few arguments in call to wd.Get (ineffassign)
    • Line 862: warning: too few arguments in call to wd.Get (ineffassign)
    • Line 881: warning: too few arguments in call to wd.Get (ineffassign)
    • Line 886: warning: too few arguments in call to wd.Get (ineffassign)
    • Line 927: warning: too few arguments in call to wd.Get (ineffassign)
    • Line 946: warning: too few arguments in call to wd.Get (ineffassign)
    • Line 964: warning: too few arguments in call to wd.Get (ineffassign)
    • Line 1004: warning: too few arguments in call to wd.Get (ineffassign)
    • Line 1034: warning: too few arguments in call to wd.Get (ineffassign)
    • Line 1066: warning: too few arguments in call to wd.Get (ineffassign)
    • Line 1133: warning: too few arguments in call to wd.Get (ineffassign)
    • Line 1162: warning: too few arguments in call to wd.Get (ineffassign)
    • Line 1187: warning: too few arguments in call to wd.Get (ineffassign)
    • Line 1240: warning: too few arguments in call to wd.Get (ineffassign)
    • Line 1272: warning: too few arguments in call to wd.Get (ineffassign)
    • Line 1294: warning: too few arguments in call to wd.Get (ineffassign)
    • Line 1316: warning: too few arguments in call to wd.Get (ineffassign)
    • Line 1338: warning: too few arguments in call to wd.Get (ineffassign)
    • Line 1362: warning: too few arguments in call to wd.Get (ineffassign)
    • Line 1376: warning: too few arguments in call to wd.Get (ineffassign)
    • Line 1421: warning: too few arguments in call to wd.Get (ineffassign)
    • Line 1460: warning: too few arguments in call to wd.Get (ineffassign)
    • Line 1498: warning: too few arguments in call to wd.Get (ineffassign)
    • Line 1532: warning: too few arguments in call to wd.Get (ineffassign)
    • Line 1553: warning: too few arguments in call to wd.Get (ineffassign)
    • Line 1574: warning: too few arguments in call to wd.Get (ineffassign)
    • Line 1595: warning: too few arguments in call to wd.Get (ineffassign)
    • Line 1622: warning: too few arguments in call to wd.Get (ineffassign)
    • Line 1694: warning: too few arguments in call to wd.Get (ineffassign)
    • Line 1714: warning: too few arguments in call to wd.Get (ineffassign)
    • Line 1783: warning: too few arguments in call to wd.Get (ineffassign)
    • Line 1793: warning: too few arguments in call to wd.Get (ineffassign)
    • Line 1809: warning: too few arguments in call to wd.Get (ineffassign)
    • Line 1833: warning: too few arguments in call to wd.Get (ineffassign)

misspell94%

Misspell Finds commonly misspelled English words