Preparing report...

Report for github.com/astec/tinyetl

A+    Excellent!    Found 18 issues across 30 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!


golint43%

Golint is a linter for Go source code.

    • tinyetl/etl/workers/stream_splitter.go
    • Line 19: warning: exported type StreamSplitter should have comment or be unexported (golint)
    • Line 23: warning: exported method StreamSplitter.Name should have comment or be unexported (golint)
    • Line 66: warning: exported method StreamSplitter.MapItemToIterator should have comment or be unexported (golint)
    • tinyetl/etl/inerfaces.go
    • Line 11: warning: exported function NewWorkItem should have comment or be unexported (golint)
    • Line 21: warning: exported type Worker should have comment or be unexported (golint)
    • Line 25: warning: exported type Iterator should have comment or be unexported (golint)
    • tinyetl/etl/workers/console_printer.go
    • Line 9: warning: exported type DataToConsolePrinter should have comment or be unexported (golint)
    • Line 14: warning: exported method DataToConsolePrinter.Name should have comment or be unexported (golint)
    • Line 18: warning: exported method DataToConsolePrinter.MapItemToItem should have comment or be unexported (golint)
    • tinyetl/etl/workers/input_file.go
    • Line 11: warning: exported type FileOpenerFunc should have comment or be unexported (golint)
    • Line 19: warning: exported method FileInput.Name should have comment or be unexported (golint)
    • Line 26: warning: comment on exported method FileInput.MapItemToItem should be of the form "MapItemToItem ..." (golint)
    • tinyetl/etl/iterator_slice.go
    • Line 5: warning: exported type SliceIterator should have comment or be unexported (golint)
    • Line 12: warning: exported function NewSliceIterator should have comment or be unexported (golint)
    • Line 16: warning: exported method SliceIterator.Add should have comment or be unexported (golint)
    • Line 20: warning: exported method SliceIterator.Next should have comment or be unexported (golint)
    • Line 28: warning: exported method SliceIterator.CurrentItem should have comment or be unexported (golint)
    • tinyetl/etl/workers/filter.go
    • Line 16: warning: exported type FilterCondition should have comment or be unexported (golint)
    • Line 18: warning: exported function NewFilter should have comment or be unexported (golint)
    • tinyetl/examples/customers/models/models.go
    • Line 11: warning: exported type CustomerShort should have comment or be unexported (golint)
    • Line 16: warning: exported type CustomerExtended should have comment or be unexported (golint)
    • Line 22: warning: exported method CustomerExtended.GeoPoint should have comment or be unexported (golint)
    • tinyetl/etl/workflow.go
    • Line 9: warning: exported type Workflow should have comment or be unexported (golint)
    • Line 13: warning: exported function NewWorkflow should have comment or be unexported (golint)
    • Line 17: warning: exported method Workflow.Execute should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign83%

IneffAssign detects ineffectual assignments in Go code.

    • tinyetl/examples/customers/models/models.go
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: could not import github.com/astec/tinyetl/examples/customers/geo (invalid package name: "") (ineffassign)
    • Line 7: warning: could not import github.com/astec/tinyetl/examples/customers/geo (invalid package name: "") (ineffassign)
    • tinyetl/examples/customers/customerscli/etl_workflow.go
    • Line 6: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 8: warning: cannot find package "." in: (ineffassign)
    • Line 9: warning: cannot find package "." in: (ineffassign)
    • Line 6: warning: could not import github.com/astec/tinyetl/etl (invalid package name: "") (ineffassign)
    • Line 7: warning: could not import github.com/astec/tinyetl/etl/workers (invalid package name: "") (ineffassign)
    • Line 8: warning: could not import github.com/astec/tinyetl/examples/customers/geo (invalid package name: "") (ineffassign)
    • Line 9: warning: could not import github.com/astec/tinyetl/examples/customers/models (invalid package name: "") (ineffassign)
    • Line 6: warning: could not import github.com/astec/tinyetl/etl (invalid package name: "") (ineffassign)
    • Line 7: warning: could not import github.com/astec/tinyetl/etl/workers (invalid package name: "") (ineffassign)
    • Line 8: warning: could not import github.com/astec/tinyetl/examples/customers/geo (invalid package name: "") (ineffassign)
    • Line 9: warning: could not import github.com/astec/tinyetl/examples/customers/models (invalid package name: "") (ineffassign)
    • tinyetl/etl/workers/console_printer.go
    • Line 6: warning: cannot find package "." in: (ineffassign)
    • Line 6: warning: could not import github.com/astec/tinyetl/etl (invalid package name: "") (ineffassign)
    • Line 6: warning: could not import github.com/astec/tinyetl/etl (invalid package name: "") (ineffassign)
    • tinyetl/examples/customers/main.go
    • Line 6: warning: cannot find package "." in: (ineffassign)
    • Line 6: warning: could not import github.com/astec/tinyetl/examples/customers/customerscli (invalid package name: "") (ineffassign)
    • Line 6: warning: could not import github.com/astec/tinyetl/examples/customers/customerscli (invalid package name: "") (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!