Preparing report...

Report for github.com/viant/asc

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


gocyclo93%

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.

    • asc/manager.go
    • Line 23: warning: cyclomatic complexity 17 of function convertIfNeeded() is high (> 15) (gocyclo)
    • Line 197: warning: cyclomatic complexity 16 of function (*manager).ExecuteOnConnection() is high (> 15) (gocyclo)

golint68%

Golint is a linter for Go source code.

    • asc/batch_iterator.go
    • Line 123: warning: exported method BatchIterator.Next should have comment or be unexported (golint)
    • Line 138: warning: exported function NewBatchIterator should have comment or be unexported (golint)
    • Line 153: warning: exported type Batch should have comment or be unexported (golint)
    • asc/key_scanner.go
    • Line 18: warning: exported type KeyScanner should have comment or be unexported (golint)
    • Line 64: warning: exported method KeyScanner.Scan should have comment or be unexported (golint)
    • Line 68: warning: exported function NewKeyScanner should have comment or be unexported (golint)
    • asc/keyutil.go
    • Line 18: warning: exported function WriteKey should have comment or be unexported (golint)
    • Line 63: warning: exported function ReadKey should have comment or be unexported (golint)
    • asc/manager_factory.go
    • Line 10: warning: exported const DateFormatKey should have comment (or a comment on this block) or be unexported (golint)
    • asc/udf.go
    • Line 30: warning: exported function AsJSON should have comment or be unexported (golint)
    • Line 40: warning: exported function AsArray should have comment or be unexported (golint)
    • Line 58: warning: exported function AsTimestamp 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!