Preparing report...

Report for github.com/ydb-platform/ydb-go-sql

(v0.0.0-20211218195050-578598d3aeec)

A+    Excellent!    Found 22 issues across 33 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.


golint36%

Golint is a linter for Go source code.

    • proxy.go
    • Line 16: warning: exported function ConnectionString should have comment or be unexported (golint)
    • Line 20: warning: exported function Connector should have comment or be unexported (golint)
    • Line 24: warning: exported function With should have comment or be unexported (golint)
    • Line 28: warning: exported function WithConnectionString should have comment or be unexported (golint)
    • Line 32: warning: exported function WithDiscoveryInterval should have comment or be unexported (golint)
    • Line 36: warning: exported function WithEndpoint should have comment or be unexported (golint)
    • Line 40: warning: exported function WithCredentials should have comment or be unexported (golint)
    • Line 44: warning: exported function WithAnonymousCredentials should have comment or be unexported (golint)
    • Line 48: warning: exported function WithAccessTokenCredentials should have comment or be unexported (golint)
    • Line 52: warning: exported function WithDatabase should have comment or be unexported (golint)
    • Line 56: warning: exported function WithTraceDriver should have comment or be unexported (golint)
    • Line 60: warning: exported function WithTraceTable should have comment or be unexported (golint)
    • Line 64: warning: exported function WithDefaultExecDataQueryOption should have comment or be unexported (golint)
    • Line 68: warning: exported function WithDefaultExecScanQueryOption should have comment or be unexported (golint)
    • version.go
    • Line 9: warning: exported const Version should have comment or be unexported (golint)
    • Line 11: warning: exported const Versions should have comment or be unexported (golint)
    • internal/connector/options.go
    • Line 17: warning: exported type Option should have comment or be unexported (golint)
    • Line 19: warning: exported function With should have comment or be unexported (golint)
    • Line 31: warning: exported function WithConnectionString should have comment or be unexported (golint)
    • Line 37: warning: exported function WithDiscoveryInterval should have comment or be unexported (golint)
    • Line 43: warning: exported function WithEndpoint should have comment or be unexported (golint)
    • Line 49: warning: exported function WithCredentials should have comment or be unexported (golint)
    • Line 55: warning: exported function WithAnonymousCredentials should have comment or be unexported (golint)
    • Line 61: warning: exported function WithAccessTokenCredentials should have comment or be unexported (golint)
    • Line 67: warning: exported function WithDatabase should have comment or be unexported (golint)
    • Line 73: warning: exported function WithTraceDriver should have comment or be unexported (golint)
    • Line 79: warning: exported function WithTraceTable should have comment or be unexported (golint)
    • Line 85: warning: exported function WithDefaultExecDataQueryOption should have comment or be unexported (golint)
    • Line 91: warning: exported function WithDefaultExecScanQueryOption should have comment or be unexported (golint)
    • internal/query/query.go
    • Line 3: warning: exported type Querier should have comment or be unexported (golint)
    • Line 6: warning: exported function New should have comment or be unexported (golint)
    • internal/single/single.go
    • Line 9: warning: exported type Rows should have comment or be unexported (golint)
    • Line 39: warning: exported function Result should have comment or be unexported (golint)
    • internal/x/ctx.go
    • Line 19: warning: exported function WithTxControl should have comment or be unexported (golint)
    • Line 23: warning: exported function TxControl should have comment or be unexported (golint)
    • Line 30: warning: exported function WithScanQueryOptions should have comment or be unexported (golint)
    • Line 34: warning: exported function ScanQueryOptions should have comment or be unexported (golint)
    • Line 41: warning: exported function WithDataQueryOptions should have comment or be unexported (golint)
    • Line 45: warning: exported function DataQueryOptions should have comment or be unexported (golint)
    • internal/conn/conn.go
    • Line 24: warning: exported type Conn should have comment or be unexported (golint)
    • Line 44: warning: exported function New should have comment or be unexported (golint)
    • internal/sugar/sugar.go
    • Line 10: warning: exported type Declaration should have comment or be unexported (golint)
    • Line 14: warning: exported method Declaration.WriteTo should have comment or be unexported (golint)
    • Line 22: warning: exported method Declaration.Declare should have comment or be unexported (golint)
    • internal/x/args.go
    • Line 11: warning: exported function ToQueryParams should have comment or be unexported (golint)
    • Line 25: warning: exported function ToSchemeOptions should have comment or be unexported (golint)
    • internal/driver/driver.go
    • Line 10: warning: exported type Driver should have comment or be unexported (golint)
    • Line 16: warning: exported function New should have comment or be unexported (golint)
    • internal/mode/context.go
    • Line 7: warning: exported type Type should have comment or be unexported (golint)
    • Line 10: warning: exported const Default should have comment (or a comment on this block) or be unexported (golint)
    • internal/stmt/stmt.go
    • Line 18: warning: exported type Stmt should have comment or be unexported (golint)
    • Line 57: warning: exported function New should have comment or be unexported (golint)
    • context.go
    • Line 12: warning: exported function WithScanQuery should have comment or be unexported (golint)
    • Line 16: warning: exported function WithDataQuery should have comment or be unexported (golint)
    • Line 20: warning: exported function WithSchemeQuery should have comment or be unexported (golint)
    • Line 24: warning: exported function WithExplain should have comment or be unexported (golint)
    • Line 28: warning: exported function WithTxControl should have comment or be unexported (golint)
    • internal/errors/errors.go
    • Line 12: warning: exported var ErrDeprecated should have comment or be unexported (golint)
    • Line 20: warning: comment on exported var ErrSessionBusy should be of the form "ErrSessionBusy ..." (golint)
    • Line 24: warning: exported function Map should have comment or be unexported (golint)
    • internal/nop/result.go
    • Line 16: warning: exported function WithResultLastInsertID should have comment or be unexported (golint)
    • Line 22: warning: exported function WithResultRowsAffected should have comment or be unexported (golint)
    • Line 42: warning: exported function Result should have comment or be unexported (golint)
    • internal/trace/trace.go
    • Line 8: warning: comment on exported type Trace should be of the form "Trace ..." (with optional leading article) (golint)
    • Line 17: warning: exported type DialStartInfo should have comment or be unexported (golint)
    • Line 20: warning: exported type DialDoneInfo should have comment or be unexported (golint)
    • internal/tx/tx.go
    • Line 12: warning: exported type Tx should have comment or be unexported (golint)
    • Line 18: warning: exported function New should have comment or be unexported (golint)
    • internal/conn/options.go
    • Line 8: warning: exported type Option should have comment or be unexported (golint)
    • Line 10: warning: exported function WithDataOpts should have comment or be unexported (golint)
    • Line 16: warning: exported function WithScanOpts should have comment or be unexported (golint)
    • Line 22: warning: exported function WithDefaultTxControl should have comment or be unexported (golint)
    • internal/connector/connector.go
    • Line 16: warning: exported type Connector should have comment or be unexported (golint)
    • Line 22: warning: exported type Driver should have comment or be unexported (golint)
    • Line 28: warning: exported function New 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!