Preparing report...

Report for github.com/vladimirvivien/automi

A+    Excellent!    Found 33 issues across 95 files

Tweet

gofmt88%

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!


gocyclo95%

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.


golint77%

Golint is a linter for Go source code.

    • automi/emitters/csv_test.go
    • Line 42: warning: should omit values from range; this loop is equivalent to `for range ...` (golint)
    • Line 97: warning: should omit values from range; this loop is equivalent to `for range ...` (golint)
    • Line 147: warning: should omit values from range; this loop is equivalent to `for range ...` (golint)
    • automi/api/types.go
    • Line 7: warning: exported type Emitter should have comment or be unexported (golint)
    • Line 11: warning: exported type Source should have comment or be unexported (golint)
    • Line 16: warning: exported type Collector should have comment or be unexported (golint)
    • Line 20: warning: exported type Sink should have comment or be unexported (golint)
    • automi/api/tuple/tuple.go
    • Line 3: warning: exported type Pair should have comment or be unexported (golint)
    • Line 4: warning: exported type KV should have comment or be unexported (golint)
    • automi/collectors/slice.go
    • Line 11: warning: exported type SliceCollector should have comment or be unexported (golint)
    • Line 17: warning: exported function Slice should have comment or be unexported (golint)
    • Line 21: warning: exported method SliceCollector.SetInput should have comment or be unexported (golint)
    • Line 25: warning: exported method SliceCollector.Get should have comment or be unexported (golint)
    • Line 29: warning: exported method SliceCollector.Open should have comment or be unexported (golint)
    • automi/collectors/writer.go
    • Line 13: warning: exported type WriterCollector should have comment or be unexported (golint)
    • Line 20: warning: exported function Writer should have comment or be unexported (golint)
    • Line 26: warning: exported method WriterCollector.SetInput should have comment or be unexported (golint)
    • Line 30: warning: exported method WriterCollector.Open should have comment or be unexported (golint)
    • automi/operators/unary/unaryop.go
    • Line 21: warning: comment on exported type UnaryOperator should be of the form "UnaryOperator ..." (with optional leading article) (golint)
    • Line 32: warning: comment on exported function New should be of the form "New ..." (golint)
    • automi/emitters/slice.go
    • Line 21: warning: comment on exported function Slice should be of the form "Slice ..." (golint)
    • Line 29: warning: comment on exported method SliceEmitter.GetOutput should be of the form "GetOutput ..." (golint)
    • automi/stream/stream_batch.go
    • Line 9: warning: exported method Stream.Batch should have comment or be unexported (golint)
    • Line 15: warning: exported method Stream.BatchBySize should have comment or be unexported (golint)
    • automi/util/reflect_util.go
    • Line 5: warning: exported function IsNumericValue should have comment or be unexported (golint)
    • Line 9: warning: exported function IsIntValue should have comment or be unexported (golint)
    • Line 20: warning: exported function IsFloatValue should have comment or be unexported (golint)
    • Line 30: warning: exported function ValueAsFloat should have comment or be unexported (golint)
    • Line 45: warning: exported function IsLess should have comment or be unexported (golint)
    • automi/collectors/csv.go
    • Line 42: warning: exported method CsvCollector.DelimChar should have comment or be unexported (golint)
    • Line 47: warning: exported method CsvCollector.Headers should have comment or be unexported (golint)
    • automi/collectors/null.go
    • Line 11: warning: exported type NullCollector should have comment or be unexported (golint)
    • Line 16: warning: exported function Null should have comment or be unexported (golint)
    • Line 20: warning: exported method NullCollector.SetInput should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign97%

IneffAssign detects ineffectual assignments in Go code.

    • automi/examples/grpc/server/server.go
    • Line 11: warning: no required module provides package github.com/vladimirvivien/automi/examples/grpc/protobuf; to add it: (ineffassign)
    • Line 9: warning: no required module provides package google.golang.org/grpc; to add it: (ineffassign)
    • Line 9: warning: could not import google.golang.org/grpc (invalid package name: "") (ineffassign)
    • Line 11: warning: could not import github.com/vladimirvivien/automi/examples/grpc/protobuf (invalid package name: "") (ineffassign)
    • automi/examples/grpc/client/client.go
    • Line 19: warning: no required module provides package github.com/vladimirvivien/automi/examples/grpc/protobuf; to add it: (ineffassign)
    • Line 17: warning: no required module provides package google.golang.org/grpc; to add it: (ineffassign)
    • Line 17: warning: could not import google.golang.org/grpc (invalid package name: "") (ineffassign)
    • Line 19: warning: could not import github.com/vladimirvivien/automi/examples/grpc/protobuf (invalid package name: "") (ineffassign)

misspell96%

Misspell Finds commonly misspelled English words