Preparing report...

Report for github.com/radutopala/webdriver

D    Needs lots of improvement    Found 7 issues across 16 files

Tweet

gofmt0%

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

An error occurred while running this test (AddError: could not parse "_repos/src/github.com/radutopala/webdriver/bin/fatal error: runtime: out of memory:1::warning: file is not gofmted with -s (gofmt)" - strconv.Atoi: parsing " runtime": invalid syntax)


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!


golint68%

Golint is a linter for Go source code.

    • webdriver/form.go
    • Line 5: warning: exported type WebForm should have comment or be unexported (golint)
    • Line 9: warning: exported method WebForm.GetAllElements should have comment or be unexported (golint)
    • Line 13: warning: exported method WebForm.Get should have comment or be unexported (golint)
    • Line 17: warning: exported method WebForm.GetValue should have comment or be unexported (golint)
    • Line 21: warning: exported method WebForm.SetValue should have comment or be unexported (golint)
    • webdriver/service.go
    • Line 17: warning: exported const DefaultServicePort should have comment (or a comment on this block) or be unexported (golint)
    • Line 42: warning: comment on exported function Port should be of the form "Port ..." (golint)
    • Line 50: warning: comment on exported function BinaryPath should be of the form "BinaryPath ..." (golint)
    • Line 58: warning: comment on exported function Cmd should be of the form "Cmd ..." (golint)
    • Line 82: warning: exported function DefaultBinaryPath should have comment or be unexported (golint)
    • webdriver/log/log.go
    • Line 40: warning: comment on exported type Capabilities should be of the form "Capabilities ..." (with optional leading article) (golint)

gocyclo87%

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.

    • webdriver/remote.go
    • Line 119: warning: cyclomatic complexity 19 of function (*remoteWD).execute() is high (> 15) (gocyclo)
    • Line 358: warning: cyclomatic complexity 17 of function (*remoteWD).NewSession() is high (> 15) (gocyclo)
    • webdriver/remote_test.go
    • Line 372: warning: cyclomatic complexity 26 of function testWindows() is high (> 15) (gocyclo)
    • Line 1051: warning: cyclomatic complexity 17 of function testLog() is high (> 15) (gocyclo)

ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell93%

Misspell Finds commonly misspelled English words