Preparing report...

Report for github.com/i-sevostyanov/k8s-playground

A+    Excellent!    Found 10 issues across 11 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!


golint27%

Golint is a linter for Go source code.

    • k8s-playground/internal/business/producer/producer.go
    • Line 11: warning: exported type Writer should have comment or be unexported (golint)
    • Line 15: warning: exported type Encoder should have comment or be unexported (golint)
    • Line 19: warning: exported type Producer should have comment or be unexported (golint)
    • Line 24: warning: exported function New should have comment or be unexported (golint)
    • Line 31: warning: exported method Producer.Run should have comment or be unexported (golint)
    • k8s-playground/internal/business/consumer/consumer.go
    • Line 13: warning: exported type Reader should have comment or be unexported (golint)
    • Line 17: warning: exported type Writer should have comment or be unexported (golint)
    • Line 21: warning: exported type Decoder should have comment or be unexported (golint)
    • Line 25: warning: exported type Consumer should have comment or be unexported (golint)
    • Line 31: warning: exported function New should have comment or be unexported (golint)
    • Line 39: warning: exported method Consumer.Run should have comment or be unexported (golint)
    • k8s-playground/internal/infrastructure/kafka/reader.go
    • Line 9: warning: exported type Reader should have comment or be unexported (golint)
    • Line 13: warning: exported function NewReader should have comment or be unexported (golint)
    • Line 27: warning: exported method Reader.Close should have comment or be unexported (golint)
    • Line 31: warning: exported method Reader.ReadMessage should have comment or be unexported (golint)
    • k8s-playground/internal/infrastructure/kafka/writer.go
    • Line 9: warning: exported type Writer should have comment or be unexported (golint)
    • Line 13: warning: exported function NewWriter should have comment or be unexported (golint)
    • Line 25: warning: exported method Writer.Close should have comment or be unexported (golint)
    • Line 29: warning: exported method Writer.WriteMessage should have comment or be unexported (golint)
    • k8s-playground/internal/infrastructure/binary/encoder.go
    • Line 8: warning: exported type Encoder should have comment or be unexported (golint)
    • Line 12: warning: exported function NewEncoder should have comment or be unexported (golint)
    • Line 18: warning: exported method Encoder.Decode should have comment or be unexported (golint)
    • Line 25: warning: exported method Encoder.Encode should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign81%

IneffAssign detects ineffectual assignments in Go code.

    • k8s-playground/internal/business/consumer/consumer_test.go
    • Line 28: warning: undeclared name: NewMockReader (ineffassign)
    • Line 29: warning: undeclared name: NewMockWriter (ineffassign)
    • Line 30: warning: undeclared name: NewMockDecoder (ineffassign)
    • Line 52: warning: undeclared name: NewMockReader (ineffassign)
    • Line 53: warning: undeclared name: NewMockWriter (ineffassign)
    • Line 54: warning: undeclared name: NewMockDecoder (ineffassign)
    • Line 71: warning: undeclared name: NewMockReader (ineffassign)
    • Line 72: warning: undeclared name: NewMockWriter (ineffassign)
    • Line 73: warning: undeclared name: NewMockDecoder (ineffassign)
    • Line 94: warning: undeclared name: NewMockReader (ineffassign)
    • Line 95: warning: undeclared name: NewMockWriter (ineffassign)
    • Line 96: warning: undeclared name: NewMockDecoder (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!