Preparing report...

Report for github.com/viant/bitsy

A    Great!    Found 30 issues across 36 files

Tweet

gofmt83%

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!


gocyclo97%

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.


golint19%

Golint is a linter for Go source code.

    • bitsy/indexer/dec/bools.go
    • Line 5: warning: exported type Bools should have comment or be unexported (golint)
    • Line 9: warning: comment on exported method Bools.UnmarshalJSONArray should be of the form "UnmarshalJSONArray ..." (golint)
    • bitsy/indexer/service.go
    • Line 14: warning: exported type Service should have comment or be unexported (golint)
    • Line 20: warning: exported method Service.Index should have comment or be unexported (golint)
    • Line 56: warning: exported function New should have comment or be unexported (golint)
    • bitsy/indexer/dec/strings.go
    • Line 5: warning: exported type Strings should have comment or be unexported (golint)
    • Line 9: warning: comment on exported method Strings.UnmarshalJSONArray should be of the form "UnmarshalJSONArray ..." (golint)
    • bitsy/config/rule.go
    • Line 13: warning: exported type Field should have comment or be unexported (golint)
    • Line 19: warning: exported type Destination should have comment or be unexported (golint)
    • Line 30: warning: exported type Rule should have comment or be unexported (golint)
    • Line 47: warning: exported method Rule.Fields should have comment or be unexported (golint)
    • Line 59: warning: exported method Rule.Init should have comment or be unexported (golint)
    • Line 85: warning: exported method Destination.Init should have comment or be unexported (golint)
    • Line 104: warning: exported method Destination.Validate should have comment or be unexported (golint)
    • Line 115: warning: exported method Rule.Validate should have comment or be unexported (golint)
    • bitsy/config/rules.go
    • Line 14: warning: exported type Rules should have comment or be unexported (golint)
    • Line 24: warning: exported method Rules.Match should have comment or be unexported (golint)
    • Line 39: warning: exported method Rules.ReloadIfNeeded should have comment or be unexported (golint)
    • Line 96: warning: exported method Rules.Init should have comment or be unexported (golint)
    • Line 114: warning: exported method Rules.ProcessorConfig should have comment or be unexported (golint)
    • bitsy/indexer/processor.go
    • Line 26: warning: exported method Processor.Pre should have comment or be unexported (golint)
    • Line 57: warning: exported method Processor.Post should have comment or be unexported (golint)
    • bitsy/indexer/record.go
    • Line 10: warning: exported type Record should have comment or be unexported (golint)
    • Line 20: warning: exported method Record.UnmarshalJSONObject should have comment or be unexported (golint)
    • Line 49: warning: exported method Record.NKeys should have comment or be unexported (golint)
    • bitsy/indexer/reporter.go
    • Line 5: warning: exported type Reporter should have comment or be unexported (golint)
    • Line 9: warning: exported function NewReporter should have comment or be unexported (golint)
    • bitsy/indexer/dec/ints.go
    • Line 8: warning: exported type Ints should have comment or be unexported (golint)
    • Line 13: warning: comment on exported method Ints.UnmarshalJSONArray should be of the form "UnmarshalJSONArray ..." (golint)
    • bitsy/config/const.go
    • Line 4: warning: exported const TypeString should have comment (or a comment on this block) or be unexported (golint)
    • bitsy/indexer/const.go
    • Line 4: warning: exported const StatusNoMatch should have comment (or a comment on this block) or be unexported (golint)
    • bitsy/indexer/singleton.go
    • Line 17: warning: exported function Singleton should have comment or be unexported (golint)
    • Line 34: warning: exported function NewService should have comment or be unexported (golint)
    • bitsy/indexer/dec/floats.go
    • Line 5: warning: exported type Floats should have comment or be unexported (golint)
    • Line 9: warning: comment on exported method Floats.UnmarshalJSONArray should be of the form "UnmarshalJSONArray ..." (golint)
    • bitsy/indexer.go
    • Line 9: warning: exported function HandleEvent 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!


misspell97%

Misspell Finds commonly misspelled English words