Preparing report...

Report for go.octolab.org

A+    Excellent!    Found 16 issues across 92 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!


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!


golint82%

Golint is a linter for Go source code.

    • /go.octolab.org/encoding/encoder.go
    • Line 5: warning: exported type Encoder should have comment or be unexported (golint)
    • Line 9: warning: exported type EncodeCloser should have comment or be unexported (golint)
    • Line 14: warning: exported function ToEncodeCloser should have comment or be unexported (golint)
    • /go.octolab.org/io/reader.go
    • Line 47: warning: exported type ReadCloserChain should have comment or be unexported (golint)
    • Line 49: warning: exported method ReadCloserChain.Chain should have comment or be unexported (golint)
    • /go.octolab.org/exp/http/builder.go
    • Line 8: warning: exported function NewRequest should have comment or be unexported (golint)
    • Line 16: warning: exported function WithForm should have comment or be unexported (golint)
    • Line 26: warning: exported function WithHeaders should have comment or be unexported (golint)
    • Line 36: warning: exported function WithPath should have comment or be unexported (golint)
    • /go.octolab.org/sort/slice.go
    • Line 11: warning: exported type Int8Slice should have comment or be unexported (golint)
    • Line 26: warning: exported type Int16Slice should have comment or be unexported (golint)
    • Line 41: warning: exported type Int32Slice should have comment or be unexported (golint)
    • Line 56: warning: exported type Int64Slice should have comment or be unexported (golint)
    • Line 71: warning: exported type Float32Slice should have comment or be unexported (golint)
    • Line 88: warning: exported type RuneSlice should have comment or be unexported (golint)
    • Line 103: warning: exported type UintSlice should have comment or be unexported (golint)
    • Line 118: warning: exported type Uint8Slice should have comment or be unexported (golint)
    • Line 133: warning: exported type Uint16Slice should have comment or be unexported (golint)
    • Line 148: warning: exported type Uint32Slice should have comment or be unexported (golint)
    • Line 163: warning: exported type Uint64Slice should have comment or be unexported (golint)
    • /go.octolab.org/io/io.go
    • Line 12: warning: comment on exported type Closer should be of the form "Closer ..." (with optional leading article) (golint)
    • Line 12: warning: comment on exported type ReadCloser should be of the form "ReadCloser ..." (with optional leading article) (golint)
    • Line 12: warning: comment on exported type Reader should be of the form "Reader ..." (with optional leading article) (golint)
    • Line 12: warning: comment on exported type WriteCloser should be of the form "WriteCloser ..." (with optional leading article) (golint)
    • Line 12: warning: comment on exported type Writer should be of the form "Writer ..." (with optional leading article) (golint)
    • /go.octolab.org/encoding/decoder.go
    • Line 5: warning: exported type Decoder should have comment or be unexported (golint)
    • Line 9: warning: exported type DecodeCloser should have comment or be unexported (golint)
    • Line 14: warning: exported function ToDecodeCloser should have comment or be unexported (golint)
    • /go.octolab.org/errors/classifier.go
    • Line 125: warning: exported method NetworkError.Temporary should have comment or be unexported (golint)
    • Line 126: warning: exported method NetworkError.Timeout should have comment or be unexported (golint)
    • Line 138: warning: exported method RecoveredError.Cause should have comment or be unexported (golint)
    • Line 146: warning: exported type RetriableError should have comment or be unexported (golint)
    • Line 149: warning: exported method RetriableError.Retriable should have comment or be unexported (golint)
    • Line 161: warning: exported method TemporaryError.Temporary should have comment or be unexported (golint)
    • Line 173: warning: exported method TimeoutError.Timeout should have comment or be unexported (golint)
    • /go.octolab.org/fn/action.go
    • Line 5: warning: exported function HasNoError should have comment or be unexported (golint)
    • Line 12: warning: exported function HoldContext should have comment or be unexported (golint)
    • /go.octolab.org/io/writer.go
    • Line 46: warning: exported type WriteCloserChain should have comment or be unexported (golint)
    • Line 48: warning: exported method WriteCloserChain.Chain 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!