Preparing report...

Report for github.com/joaosoft/tester

(v0.0.0-20190311002615-1edaaff90e90)

A    Great!    Found 14 issues across 18 files

Tweet

gofmt77%

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!


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!


golint27%

Golint is a linter for Go source code.

    • domain.go
    • Line 37: warning: exported type BaseTest should have comment or be unexported (golint)
    • Line 120: warning: exported type RedisCommand should have comment or be unexported (golint)
    • Line 142: warning: exported type NsqCommand should have comment or be unexported (golint)
    • runner_scenario.go
    • Line 26: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 50: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • tester.go
    • Line 12: warning: comment on exported type Tester should be of the form "Tester ..." (with optional leading article) (golint)
    • Line 22: warning: comment on exported function NewTester should be of the form "NewTester ..." (golint)
    • Line 66: warning: receiver name test should be consistent with previous receiver name tester for Tester (golint)
    • Line 75: warning: receiver name test should be consistent with previous receiver name tester for Tester (golint)
    • utils.go
    • Line 10: warning: exported function GetEnv should have comment or be unexported (golint)
    • Line 19: warning: exported function Exists should have comment or be unexported (golint)
    • Line 28: warning: exported function ReadFile should have comment or be unexported (golint)
    • Line 54: warning: exported function ReadFileLines should have comment or be unexported (golint)
    • Line 79: warning: exported function WriteFile should have comment or be unexported (golint)
    • runner_http.go
    • Line 13: warning: exported type HttpRunner should have comment or be unexported (golint)
    • Line 19: warning: exported method Runner.NewWebRunner should have comment or be unexported (golint)
    • Line 27: warning: exported method HttpRunner.Run should have comment or be unexported (golint)
    • runner_nsq.go
    • Line 9: warning: exported type NSQRunner should have comment or be unexported (golint)
    • Line 15: warning: exported method Runner.NewNSQRunner should have comment or be unexported (golint)
    • Line 22: warning: exported method NSQRunner.Run should have comment or be unexported (golint)
    • runner_redis.go
    • Line 11: warning: exported type RedisRunner should have comment or be unexported (golint)
    • Line 16: warning: exported method Runner.NewRedisRunner should have comment or be unexported (golint)
    • Line 23: warning: exported method RedisRunner.Run should have comment or be unexported (golint)
    • runner_sql.go
    • Line 12: warning: exported type SQLRunner should have comment or be unexported (golint)
    • Line 17: warning: exported method Runner.NewSQLRunner should have comment or be unexported (golint)
    • Line 24: warning: exported method SQLRunner.Run should have comment or be unexported (golint)
    • Line 58: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 69: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • consts.go
    • Line 5: warning: don't use underscores in Go names; const config_run_once should be configRunOnce (golint)
    • Line 6: warning: don't use underscores in Go names; const path_key should be pathKey (golint)
    • doc.go
    • Line 1: warning: package comment should be of the form "Package tester ..." (golint)
    • matcher.go
    • Line 9: warning: exported type IMatcher should have comment or be unexported (golint)
    • Line 13: warning: exported type Matcher should have comment or be unexported (golint)
    • Line 17: warning: exported function NewMatcher should have comment or be unexported (golint)
    • Line 23: warning: exported method Matcher.Match should have comment or be unexported (golint)
    • Line 26: warning: don't use underscores in Go names; var expected_mapped should be expectedMapped (golint)
    • Line 29: warning: don't use underscores in Go names; var obtained_mapped should be obtainedMapped (golint)
    • runner.go
    • Line 10: warning: exported type IRunner should have comment or be unexported (golint)
    • Line 14: warning: exported type Runner should have comment or be unexported (golint)
    • Line 21: warning: exported method Tester.NewRunner should have comment or be unexported (golint)
    • Line 30: warning: exported method Runner.Run should have comment or be unexported (golint)
    • runner_tests.go
    • Line 3: warning: exported method Tests.Run should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!