Preparing report...

Report for go.einride.tech/spanner-aip

A+    Excellent!    Found 19 issues across 51 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!


gocyclo96%

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.


golint64%

Golint is a linter for Go source code.

    • /go.einride.tech/spanner-aip/internal/codegen/databasecodegen/key.go
    • Line 15: warning: exported type KeyCodeGenerator should have comment or be unexported (golint)
    • Line 19: warning: exported method KeyCodeGenerator.Type should have comment or be unexported (golint)
    • Line 23: warning: exported method KeyCodeGenerator.FieldName should have comment or be unexported (golint)
    • Line 27: warning: exported method KeyCodeGenerator.GenerateCode should have comment or be unexported (golint)
    • /go.einride.tech/spanner-aip/internal/codegen/databasecodegen/row.go
    • Line 15: warning: exported type RowCodeGenerator should have comment or be unexported (golint)
    • Line 19: warning: exported method RowCodeGenerator.Type should have comment or be unexported (golint)
    • Line 23: warning: exported method RowCodeGenerator.ColumnFieldName should have comment or be unexported (golint)
    • Line 27: warning: exported method RowCodeGenerator.ColumnNamesMethod should have comment or be unexported (golint)
    • Line 31: warning: exported method RowCodeGenerator.ColumnIDsMethod should have comment or be unexported (golint)
    • Line 35: warning: exported method RowCodeGenerator.ColumnExprsMethod should have comment or be unexported (golint)
    • Line 39: warning: exported method RowCodeGenerator.UnmarshalSpannerRowMethod should have comment or be unexported (golint)
    • Line 43: warning: exported method RowCodeGenerator.KeyMethod should have comment or be unexported (golint)
    • Line 47: warning: exported method RowCodeGenerator.Nil should have comment or be unexported (golint)
    • Line 51: warning: exported method RowCodeGenerator.GenerateCode should have comment or be unexported (golint)
    • Line 108: warning: exported method RowCodeGenerator.InterleavedRowsField should have comment or be unexported (golint)
    • /go.einride.tech/spanner-aip/internal/codegen/databasecodegen/readtransaction.go
    • Line 13: warning: exported type ReadTransactionCodeGenerator should have comment or be unexported (golint)
    • Line 17: warning: exported method ReadTransactionCodeGenerator.Type should have comment or be unexported (golint)
    • Line 21: warning: exported method ReadTransactionCodeGenerator.ConstructorMethod should have comment or be unexported (golint)
    • Line 25: warning: exported method ReadTransactionCodeGenerator.ListQueryStruct should have comment or be unexported (golint)
    • Line 29: warning: exported method ReadTransactionCodeGenerator.GetQueryStruct should have comment or be unexported (golint)
    • Line 33: warning: exported method ReadTransactionCodeGenerator.BatchGetQueryStruct should have comment or be unexported (golint)
    • Line 37: warning: exported method ReadTransactionCodeGenerator.ReadMethod should have comment or be unexported (golint)
    • Line 41: warning: exported method ReadTransactionCodeGenerator.GetMethod should have comment or be unexported (golint)
    • Line 45: warning: exported method ReadTransactionCodeGenerator.BatchGetMethod should have comment or be unexported (golint)
    • Line 49: warning: exported method ReadTransactionCodeGenerator.ListMethod should have comment or be unexported (golint)
    • Line 53: warning: exported method ReadTransactionCodeGenerator.ReadInterleavedMethod should have comment or be unexported (golint)
    • Line 57: warning: exported method ReadTransactionCodeGenerator.ReadInterleavedQuery should have comment or be unexported (golint)
    • Line 61: warning: exported method ReadTransactionCodeGenerator.ReadInterleavedResult should have comment or be unexported (golint)
    • Line 65: warning: exported method ReadTransactionCodeGenerator.GenerateCode should have comment or be unexported (golint)
    • /go.einride.tech/spanner-aip/internal/codegen/descriptorcodegen/table.go
    • Line 11: warning: exported type TableDescriptorCodeGenerator should have comment or be unexported (golint)
    • Line 15: warning: exported method TableDescriptorCodeGenerator.InterfaceType should have comment or be unexported (golint)
    • Line 19: warning: exported method TableDescriptorCodeGenerator.StructType should have comment or be unexported (golint)
    • Line 23: warning: exported method TableDescriptorCodeGenerator.ColumnDescriptorMethod should have comment or be unexported (golint)
    • Line 27: warning: exported method TableDescriptorCodeGenerator.TableNameMethod should have comment or be unexported (golint)
    • Line 31: warning: exported method TableDescriptorCodeGenerator.TableIDMethod should have comment or be unexported (golint)
    • Line 35: warning: exported method TableDescriptorCodeGenerator.ColumnNamesMethod should have comment or be unexported (golint)
    • Line 39: warning: exported method TableDescriptorCodeGenerator.ColumnIDsMethod should have comment or be unexported (golint)
    • Line 43: warning: exported method TableDescriptorCodeGenerator.ColumnExprsMethod should have comment or be unexported (golint)
    • Line 47: warning: exported method TableDescriptorCodeGenerator.GenerateCode should have comment or be unexported (golint)
    • /go.einride.tech/spanner-aip/internal/codegen/databasecodegen/rowiterator.go
    • Line 9: warning: exported type RowIteratorCodeGenerator should have comment or be unexported (golint)
    • Line 13: warning: exported method RowIteratorCodeGenerator.InterfaceType should have comment or be unexported (golint)
    • Line 17: warning: exported method RowIteratorCodeGenerator.StreamingType should have comment or be unexported (golint)
    • Line 21: warning: exported method RowIteratorCodeGenerator.BufferedType should have comment or be unexported (golint)
    • Line 25: warning: exported method RowIteratorCodeGenerator.GenerateCode should have comment or be unexported (golint)
    • /go.einride.tech/spanner-aip/internal/codegen/descriptorcodegen/database.go
    • Line 13: warning: exported type DatabaseDescriptorCodeGenerator should have comment or be unexported (golint)
    • Line 17: warning: exported method DatabaseDescriptorCodeGenerator.DescriptorFunction should have comment or be unexported (golint)
    • Line 21: warning: exported method DatabaseDescriptorCodeGenerator.InterfaceType should have comment or be unexported (golint)
    • Line 25: warning: exported method DatabaseDescriptorCodeGenerator.StructType should have comment or be unexported (golint)
    • Line 29: warning: exported method DatabaseDescriptorCodeGenerator.TableDescriptorMethod should have comment or be unexported (golint)
    • Line 33: warning: exported method DatabaseDescriptorCodeGenerator.IndexDescriptorMethod should have comment or be unexported (golint)
    • Line 37: warning: exported method DatabaseDescriptorCodeGenerator.GenerateCode should have comment or be unexported (golint)
    • /go.einride.tech/spanner-aip/internal/codegen/descriptorcodegen/genericcolumn.go
    • Line 7: warning: exported type GenericColumnDescriptorCodeGenerator should have comment or be unexported (golint)
    • Line 9: warning: exported method GenericColumnDescriptorCodeGenerator.InterfaceType should have comment or be unexported (golint)
    • Line 13: warning: exported method GenericColumnDescriptorCodeGenerator.StructType should have comment or be unexported (golint)
    • Line 17: warning: exported method GenericColumnDescriptorCodeGenerator.ColumnIDMethod should have comment or be unexported (golint)
    • Line 21: warning: exported method GenericColumnDescriptorCodeGenerator.ColumnNameMethod should have comment or be unexported (golint)
    • Line 25: warning: exported method GenericColumnDescriptorCodeGenerator.ColumnExprMethod should have comment or be unexported (golint)
    • Line 29: warning: exported method GenericColumnDescriptorCodeGenerator.ColumnTypeMethod should have comment or be unexported (golint)
    • Line 33: warning: exported method GenericColumnDescriptorCodeGenerator.NotNullMethod should have comment or be unexported (golint)
    • Line 37: warning: exported method GenericColumnDescriptorCodeGenerator.AllowCommitTimestampMethod should have comment or be unexported (golint)
    • Line 41: warning: exported method GenericColumnDescriptorCodeGenerator.GenerateCode should have comment or be unexported (golint)
    • /go.einride.tech/spanner-aip/internal/codegen/descriptorcodegen/index.go
    • Line 12: warning: exported type IndexDescriptorCodeGenerator should have comment or be unexported (golint)
    • Line 16: warning: exported method IndexDescriptorCodeGenerator.InterfaceType should have comment or be unexported (golint)
    • Line 20: warning: exported method IndexDescriptorCodeGenerator.StructType should have comment or be unexported (golint)
    • Line 24: warning: exported method IndexDescriptorCodeGenerator.ColumnDescriptorMethod should have comment or be unexported (golint)
    • Line 28: warning: exported method IndexDescriptorCodeGenerator.IndexNameMethod should have comment or be unexported (golint)
    • Line 32: warning: exported method IndexDescriptorCodeGenerator.IndexIDMethod should have comment or be unexported (golint)
    • Line 36: warning: exported method IndexDescriptorCodeGenerator.ColumnNamesMethod should have comment or be unexported (golint)
    • Line 40: warning: exported method IndexDescriptorCodeGenerator.ColumnIDsMethod should have comment or be unexported (golint)
    • Line 44: warning: exported method IndexDescriptorCodeGenerator.ColumnExprsMethod should have comment or be unexported (golint)
    • Line 48: warning: exported method IndexDescriptorCodeGenerator.GenerateCode 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!