Preparing report...

Report for github.com/xen0n/go-workwx

A+    Excellent!    Found 14 issues across 65 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!


gocyclo96%

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.


golint81%

Golint is a linter for Go source code.

    • go-workwx/internal/lowlevel/encryptor/mod.go
    • Line 15: warning: exported type WorkwxPayload should have comment or be unexported (golint)
    • Line 20: warning: exported type WorkwxEncryptor should have comment or be unexported (golint)
    • Line 25: warning: exported type WorkwxEncryptorOption should have comment or be unexported (golint)
    • Line 33: warning: exported function WithEntropySource should have comment or be unexported (golint)
    • Line 43: warning: exported function NewWorkwxEncryptor should have comment or be unexported (golint)
    • Line 67: warning: exported method WorkwxEncryptor.Decrypt should have comment or be unexported (golint)
    • Line 122: warning: exported method WorkwxEncryptor.Encrypt should have comment or be unexported (golint)
    • go-workwx/internal/lowlevel/envelope/mod.go
    • Line 16: warning: exported type Processor should have comment or be unexported (golint)
    • Line 23: warning: exported function NewProcessor should have comment or be unexported (golint)
    • Line 52: warning: exported method Processor.HandleIncomingMsg should have comment or be unexported (golint)
    • Line 83: warning: exported method Processor.MakeOutgoingEnvelope should have comment or be unexported (golint)
    • go-workwx/internal/lowlevel/envelope/time_source.go
    • Line 7: warning: exported type TimeSource should have comment or be unexported (golint)
    • Line 11: warning: exported type DefaultTimeSource should have comment or be unexported (golint)
    • Line 15: warning: exported method DefaultTimeSource.GetCurrentTimestamp should have comment or be unexported (golint)
    • go-workwx/internal/lowlevel/httpapi/echo_test_api.go
    • Line 12: warning: exported type ToEchoTestAPIArgs should have comment or be unexported (golint)
    • Line 16: warning: exported type EchoTestAPIArgs should have comment or be unexported (golint)
    • Line 23: warning: exported type URLValuesForEchoTestAPI should have comment or be unexported (golint)
    • Line 29: warning: exported method URLValuesForEchoTestAPI.ToEchoTestAPIArgs should have comment or be unexported (golint)
    • go-workwx/rx.go
    • Line 31: warning: exported type HTTPHandler should have comment or be unexported (golint)
    • Line 37: warning: exported function NewHTTPHandler 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!