Preparing report...

Report for github.com/vine-io/vine

A+    Excellent!    Found 252 issues across 459 files

Tweet

gofmt93%

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!


golint52%

Golint is a linter for Go source code.

    • vine/lib/sync/sync.go
    • Line 32: warning: exported var ErrLockTimeout should have comment or be unexported (golint)
    • Line 59: warning: exported type Options should have comment or be unexported (golint)
    • Line 64: warning: exported type Option should have comment or be unexported (golint)
    • Line 66: warning: exported type LeaderOptions should have comment or be unexported (golint)
    • Line 68: warning: exported type LeaderOption should have comment or be unexported (golint)
    • Line 70: warning: exported type LockOptions should have comment or be unexported (golint)
    • Line 75: warning: exported type LockOption should have comment or be unexported (golint)
    • vine/lib/api/resolver/path/path.go
    • Line 33: warning: exported type Resolver should have comment or be unexported (golint)
    • Line 37: warning: exported method Resolver.Resolve should have comment or be unexported (golint)
    • Line 57: warning: exported function NewResolver should have comment or be unexported (golint)
    • vine/lib/logger/options.go
    • Line 30: warning: exported type Option should have comment or be unexported (golint)
    • Line 32: warning: exported type Options should have comment or be unexported (golint)
    • Line 65: warning: exported function SetOption should have comment or be unexported (golint)
    • vine/cmd/protoc-gen-validator/plugin/validator.go
    • Line 34: warning: exported var TagString should have comment or be unexported (golint)
    • Line 81: warning: exported type Tag should have comment or be unexported (golint)
    • Line 95: warning: exported function New should have comment or be unexported (golint)
    • Line 494: warning: exported function TrimString should have comment or be unexported (golint)
    • vine/lib/dao/utils/tests/models.go
    • Line 29: warning: exported type Account should have comment or be unexported (golint)
    • Line 34: warning: exported type Pet should have comment or be unexported (golint)
    • Line 40: warning: exported type Toy should have comment or be unexported (golint)
    • Line 46: warning: exported type Company should have comment or be unexported (golint)
    • Line 51: warning: exported type Language should have comment or be unexported (golint)
    • vine/core/registry/memory/memory.go
    • Line 59: warning: exported type Registry should have comment or be unexported (golint)
    • Line 67: warning: exported function NewRegistry should have comment or be unexported (golint)
    • Line 138: warning: exported method Registry.Init should have comment or be unexported (golint)
    • Line 166: warning: exported method Registry.Options should have comment or be unexported (golint)
    • Line 170: warning: exported method Registry.Register should have comment or be unexported (golint)
    • Line 228: warning: exported method Registry.Deregister should have comment or be unexported (golint)
    • Line 255: warning: exported method Registry.GetService should have comment or be unexported (golint)
    • Line 274: warning: exported method Registry.ListServices should have comment or be unexported (golint)
    • Line 288: warning: exported method Registry.Watch should have comment or be unexported (golint)
    • vine/util/is/is.go
    • Line 34: warning: exported type Empty should have comment or be unexported (golint)
    • Line 37: warning: exported var ReEmail should have comment or be unexported (golint)
    • Line 50: warning: exported function Email should have comment or be unexported (golint)
    • Line 54: warning: exported function IPv4 should have comment or be unexported (golint)
    • Line 58: warning: exported function IPv6 should have comment or be unexported (golint)
    • Line 62: warning: exported function IP should have comment or be unexported (golint)
    • Line 66: warning: exported function Domain should have comment or be unexported (golint)
    • Line 70: warning: exported function Uuid should have comment or be unexported (golint)
    • Line 74: warning: exported function Number should have comment or be unexported (golint)
    • Line 78: warning: exported function URL should have comment or be unexported (golint)
    • Line 82: warning: exported function Re should have comment or be unexported (golint)
    • Line 87: warning: exported function Zero should have comment or be unexported (golint)
    • Line 91: warning: exported function In should have comment or be unexported (golint)
    • Line 104: warning: exported function NotIn should have comment or be unexported (golint)
    • Line 117: warning: exported function Crontab should have comment or be unexported (golint)
    • Line 122: warning: exported function MargeErr should have comment or be unexported (golint)
    • vine/util/runtime/runtime.go
    • Line 41: warning: exported method GroupVersionKind.APIGroup should have comment or be unexported (golint)
    • Line 59: warning: exported function FromGVK should have comment or be unexported (golint)
    • Line 87: warning: exported type ObjectSet should have comment or be unexported (golint)
    • Line 117: warning: exported method ObjectSet.IsExists should have comment or be unexported (golint)
    • Line 124: warning: exported method ObjectSet.GetObj should have comment or be unexported (golint)
    • Line 153: warning: exported function AddObj should have comment or be unexported (golint)
    • Line 157: warning: exported function NewObjectSet should have comment or be unexported (golint)
    • Line 164: warning: exported type Schema should have comment or be unexported (golint)
    • Line 182: warning: exported type SchemaSet should have comment or be unexported (golint)
    • Line 187: warning: exported method SchemaSet.RegistrySchema should have comment or be unexported (golint)
    • Line 193: warning: exported method SchemaSet.NewSchema should have comment or be unexported (golint)
    • Line 203: warning: exported function NewSchemaSet should have comment or be unexported (golint)
    • Line 207: warning: exported function RegistrySchema should have comment or be unexported (golint)
    • Line 211: warning: exported function NewSchema should have comment or be unexported (golint)
    • vine/lib/logger/logger.go
    • Line 23: warning: package comment should be of the form "Package logger ..." (golint)
    • Line 27: warning: comment on exported var DefaultLogger should be of the form "DefaultLogger ..." (golint)
    • Line 47: warning: exported function Init should have comment or be unexported (golint)
    • Line 51: warning: exported function Fields should have comment or be unexported (golint)
    • Line 55: warning: exported function Log should have comment or be unexported (golint)
    • Line 59: warning: exported function Logf should have comment or be unexported (golint)
    • Line 63: warning: exported function String should have comment or be unexported (golint)
    • vine/lib/dao/scan.go
    • Line 75: warning: exported function Scan should have comment or be unexported (golint)
    • Line 385: warning: exported function FieldPatch should have comment or be unexported (golint)
    • vine/lib/api/resolver/resolver.go
    • Line 33: warning: exported var ErrNotFound should have comment or be unexported (golint)
    • Line 55: warning: exported type Options should have comment or be unexported (golint)
    • Line 60: warning: exported type Option should have comment or be unexported (golint)
    • vine/lib/dao/migrator/migrator.go
    • Line 42: warning: comment on exported type Options should be of the form "Options ..." (with optional leading article) (golint)
    • Line 49: warning: exported type DaoDataTypeInterface should have comment or be unexported (golint)
    • Line 53: warning: exported method Migrator.RunWithValue should have comment or be unexported (golint)
    • Line 69: warning: exported method Migrator.DataTypeOf should have comment or be unexported (golint)
    • Line 80: warning: exported method Migrator.FullDataTypeOf should have comment or be unexported (golint)
    • Line 104: warning: comment on exported method Migrator.AutoMigrate should be of the form "AutoMigrate ..." (golint)
    • Line 177: warning: exported method Migrator.CreateTable should have comment or be unexported (golint)
    • Line 261: warning: exported method Migrator.DropTable should have comment or be unexported (golint)
    • Line 274: warning: exported method Migrator.HasTable should have comment or be unexported (golint)
    • Line 285: warning: exported method Migrator.RenameTable should have comment or be unexported (golint)
    • Line 312: warning: exported method Migrator.AddColumn should have comment or be unexported (golint)
    • Line 324: warning: exported method Migrator.DropColumn should have comment or be unexported (golint)
    • Line 336: warning: exported method Migrator.AlterColumn should have comment or be unexported (golint)
    • Line 350: warning: exported method Migrator.HasColumn should have comment or be unexported (golint)
    • Line 368: warning: exported method Migrator.RenameColumn should have comment or be unexported (golint)
    • Line 385: warning: exported method Migrator.MigrateColumn should have comment or be unexported (golint)
    • Line 428: warning: exported method Migrator.ColumnTypes should have comment or be unexported (golint)
    • Line 446: warning: exported method Migrator.CreateView should have comment or be unexported (golint)
    • Line 450: warning: exported method Migrator.DropView should have comment or be unexported (golint)
    • Line 476: warning: exported method Migrator.GuessConstraintAndTable should have comment or be unexported (golint)
    • Line 518: warning: exported method Migrator.CreateConstraint should have comment or be unexported (golint)
    • Line 541: warning: exported method Migrator.DropConstraint should have comment or be unexported (golint)
    • Line 553: warning: exported method Migrator.HasConstraint should have comment or be unexported (golint)
    • Line 573: warning: exported method Migrator.BuildIndexOptions should have comment or be unexported (golint)
    • Line 594: warning: exported type BuildIndexOptionsInterface should have comment or be unexported (golint)
    • Line 598: warning: exported method Migrator.CreateIndex should have comment or be unexported (golint)
    • Line 625: warning: exported method Migrator.DropIndex should have comment or be unexported (golint)
    • Line 635: warning: exported method Migrator.HasIndex should have comment or be unexported (golint)
    • Line 652: warning: exported method Migrator.RenameIndex should have comment or be unexported (golint)
    • Line 661: warning: exported method Migrator.CurrentDatabase should have comment or be unexported (golint)
    • Line 764: warning: exported method Migrator.CurrentTable should have comment or be unexported (golint)
    • vine/lib/dao/db.go
    • Line 276: warning: exported function Expr should have comment or be unexported (golint)
    • Line 280: warning: exported method DB.SetupJoinTable should have comment or be unexported (golint)
    • vine/util/helper/helper.go
    • Line 41: warning: exported function RequestToContext should have comment or be unexported (golint)
    • Line 50: warning: exported function TLSConfig should have comment or be unexported (golint)
    • Line 95: warning: exported function UnexpectedCommand should have comment or be unexported (golint)
    • vine/cmd/protoc-gen-vine/plugin/openapi.go
    • Line 36: warning: exported type ComponentKind should have comment or be unexported (golint)
    • Line 39: warning: exported const Auth should have comment (or a comment on this block) or be unexported (golint)
    • Line 169: warning: should omit 2nd value from range; this loop is equivalent to `for k := range ...` (golint)
    • Line 178: warning: should omit 2nd value from range; this loop is equivalent to `for k := range ...` (golint)
    • vine/lib/dao/prepare_stmt.go
    • Line 31: warning: exported type Stmt should have comment or be unexported (golint)
    • Line 36: warning: exported type PreparedStmtDB should have comment or be unexported (golint)
    • Line 43: warning: exported method PreparedStmtDB.Close should have comment or be unexported (golint)
    • Line 82: warning: exported method PreparedStmtDB.BeginTx should have comment or be unexported (golint)
    • Line 90: warning: exported method PreparedStmtDB.ExecContext should have comment or be unexported (golint)
    • Line 104: warning: exported method PreparedStmtDB.QueryContext should have comment or be unexported (golint)
    • Line 118: warning: exported method PreparedStmtDB.QueryRowContext should have comment or be unexported (golint)
    • Line 126: warning: exported type PreparedStmtTX should have comment or be unexported (golint)
    • Line 131: warning: exported method PreparedStmtTX.Commit should have comment or be unexported (golint)
    • Line 138: warning: exported method PreparedStmtTX.Rollback should have comment or be unexported (golint)
    • Line 145: warning: exported method PreparedStmtTX.ExecContext should have comment or be unexported (golint)
    • Line 159: warning: exported method PreparedStmtTX.QueryContext should have comment or be unexported (golint)
    • Line 173: warning: exported method PreparedStmtTX.QueryRowContext should have comment or be unexported (golint)
    • vine/core/registry/cache/cache.go
    • Line 44: warning: exported type Options should have comment or be unexported (golint)
    • Line 49: warning: exported type Option should have comment or be unexported (golint)
    • Line 73: warning: exported var DefaultTTL should have comment or be unexported (golint)
    • vine/lib/dao/logger/logger.go
    • Line 34: warning: exported type LogLevel should have comment or be unexported (golint)
    • Line 37: warning: exported const Silent should have comment (or a comment on this block) or be unexported (golint)
    • Line 48: warning: exported type Options should have comment or be unexported (golint)
    • Line 62: warning: exported var Default should have comment or be unexported (golint)
    • Line 69: warning: exported function New should have comment or be unexported (golint)
    • vine/lib/config/source/service/options.go
    • Line 35: warning: exported function ServiceName should have comment or be unexported (golint)
    • Line 44: warning: exported function Namespace should have comment or be unexported (golint)
    • Line 53: warning: exported function Path should have comment or be unexported (golint)
    • vine/lib/dao/clause/set.go
    • Line 27: warning: exported type Set should have comment or be unexported (golint)
    • Line 29: warning: exported type Assignment should have comment or be unexported (golint)
    • Line 34: warning: exported method Set.Name should have comment or be unexported (golint)
    • Line 38: warning: exported method Set.Build should have comment or be unexported (golint)
    • Line 62: warning: exported function Assignments should have comment or be unexported (golint)
    • Line 76: warning: exported function AssignmentColumns should have comment or be unexported (golint)
    • vine/core/codec/text/text.go
    • Line 33: warning: exported type Codec should have comment or be unexported (golint)
    • Line 42: warning: exported method Codec.ReadHeader should have comment or be unexported (golint)
    • Line 46: warning: exported method Codec.ReadBody should have comment or be unexported (golint)
    • Line 90: warning: exported method Codec.Close should have comment or be unexported (golint)
    • vine/core/registry/options.go
    • Line 31: warning: exported type Options should have comment or be unexported (golint)
    • Line 41: warning: exported type RegisterOptions should have comment or be unexported (golint)
    • Line 48: warning: exported type WatchOptions should have comment or be unexported (golint)
    • Line 57: warning: exported type DeregisterOptions should have comment or be unexported (golint)
    • Line 61: warning: exported type GetOptions should have comment or be unexported (golint)
    • Line 65: warning: exported type ListOptions should have comment or be unexported (golint)
    • Line 69: warning: exported type OpenAPIOptions should have comment or be unexported (golint)
    • Line 80: warning: exported function Timeout should have comment or be unexported (golint)
    • Line 93: warning: comment on exported function TLSConfig should be of the form "TLSConfig ..." (golint)
    • Line 100: warning: exported function RegisterTTL should have comment or be unexported (golint)
    • Line 106: warning: exported function RegisterContext should have comment or be unexported (golint)
    • Line 119: warning: exported function WatchContext should have comment or be unexported (golint)
    • Line 125: warning: exported function DeregisterContext should have comment or be unexported (golint)
    • Line 131: warning: exported function GetContext should have comment or be unexported (golint)
    • Line 137: warning: exported function ListContext should have comment or be unexported (golint)
    • vine/lib/api/resolver/host/host.go
    • Line 31: warning: exported type Resolver should have comment or be unexported (golint)
    • Line 35: warning: exported method Resolver.Resolve should have comment or be unexported (golint)
    • Line 48: warning: exported function NewResolver should have comment or be unexported (golint)
    • vine/lib/cmd/options.go
    • Line 40: warning: exported type Options should have comment or be unexported (golint)
    • Line 72: warning: exported type Option should have comment or be unexported (golint)
    • Line 95: warning: exported function CliApp should have comment or be unexported (golint)
    • Line 101: warning: exported function Broker should have comment or be unexported (golint)
    • Line 107: warning: exported function Config should have comment or be unexported (golint)
    • Line 113: warning: exported function Selector should have comment or be unexported (golint)
    • Line 119: warning: exported function Registry should have comment or be unexported (golint)
    • Line 125: warning: exported function Client should have comment or be unexported (golint)
    • Line 131: warning: exported function Server should have comment or be unexported (golint)
    • Line 137: warning: exported function Dialect should have comment or be unexported (golint)
    • Line 143: warning: exported function Tracer should have comment or be unexported (golint)
    • vine/vine.go
    • Line 61: warning: exported type Option should have comment or be unexported (golint)
    • vine/core/codec/bytes/bytes.go
    • Line 34: warning: exported type Codec should have comment or be unexported (golint)
    • Line 43: warning: exported method Codec.ReadHeader should have comment or be unexported (golint)
    • Line 47: warning: exported method Codec.ReadBody should have comment or be unexported (golint)
    • Line 82: warning: exported method Codec.Close should have comment or be unexported (golint)
    • Line 90: warning: exported function NewCodec should have comment or be unexported (golint)
    • vine/core/codec/proto/message.go
    • Line 25: warning: exported type Message should have comment or be unexported (golint)
    • Line 29: warning: exported method Message.MarshalJSON should have comment or be unexported (golint)
    • Line 33: warning: exported method Message.UnmarshalJSON should have comment or be unexported (golint)
    • Line 38: warning: exported method Message.ProtoMessage should have comment or be unexported (golint)
    • Line 40: warning: exported method Message.Reset should have comment or be unexported (golint)
    • Line 48: warning: exported method Message.Marshal should have comment or be unexported (golint)
    • Line 52: warning: exported method Message.Unmarshal should have comment or be unexported (golint)
    • Line 57: warning: exported function NewMessage should have comment or be unexported (golint)
    • vine/lib/dao/clause/where.go
    • Line 111: warning: exported function And should have comment or be unexported (golint)
    • Line 120: warning: exported type AndConditions should have comment or be unexported (golint)
    • Line 124: warning: exported method AndConditions.Build should have comment or be unexported (golint)
    • Line 134: warning: exported function Or should have comment or be unexported (golint)
    • Line 141: warning: exported type OrConditions should have comment or be unexported (golint)
    • Line 145: warning: exported method OrConditions.Build should have comment or be unexported (golint)
    • Line 155: warning: exported function Not should have comment or be unexported (golint)
    • Line 162: warning: exported type NotConditions should have comment or be unexported (golint)
    • Line 166: warning: exported method NotConditions.Build should have comment or be unexported (golint)
    • vine/lib/api/resolver/vpath/vpath.go
    • Line 35: warning: exported function NewResolver should have comment or be unexported (golint)
    • Line 39: warning: exported type Resolver should have comment or be unexported (golint)
    • Line 47: warning: exported method Resolver.Resolve should have comment or be unexported (golint)
    • vine/lib/api/handler/rpc/rpc.go
    • Line 54: warning: exported const Handler should have comment (or a comment on this block) or be unexported (golint)
    • Line 78: warning: exported type RawMessage should have comment or be unexported (golint)
    • Line 541: warning: exported function NewHandler should have comment or be unexported (golint)
    • Line 548: warning: exported function WithService should have comment or be unexported (golint)
    • vine/cmd/generator/vanity/command/command.go
    • Line 45: warning: exported function Read should have comment or be unexported (golint)
    • Line 62: warning: comment on exported function GeneratePlugin should be of the form "GeneratePlugin ..." (golint)
    • Line 97: warning: exported function Generate should have comment or be unexported (golint)
    • Line 122: warning: exported function Write should have comment or be unexported (golint)
    • vine/lib/logger/context.go
    • Line 29: warning: exported function FromContext should have comment or be unexported (golint)
    • Line 34: warning: exported function NewContext should have comment or be unexported (golint)
    • vine/lib/trace/memory/memory.go
    • Line 35: warning: exported type Tracer should have comment or be unexported (golint)
    • Line 64: warning: exported method Tracer.Start should have comment or be unexported (golint)
    • Line 93: warning: exported method Tracer.Finish should have comment or be unexported (golint)
    • Line 102: warning: exported function NewTracer should have comment or be unexported (golint)
    • vine/core/server/options.go
    • Line 36: warning: exported type Options should have comment or be unexported (golint)
    • Line 67: warning: exported function NewOptions should have comment or be unexported (golint)
    • Line 222: warning: should not use basic type string as key in context.WithValue (golint)
    • vine/lib/api/router/options.go
    • Line 32: warning: exported type Options should have comment or be unexported (golint)
    • Line 38: warning: exported type Option should have comment or be unexported (golint)
    • Line 40: warning: exported function NewOptions should have comment or be unexported (golint)
    • Line 63: warning: exported function WithHandler should have comment or be unexported (golint)
    • Line 69: warning: exported function WithRegistry should have comment or be unexported (golint)
    • Line 75: warning: exported function WithResolver should have comment or be unexported (golint)
    • vine/core/codec/proto/proto.go
    • Line 33: warning: exported type Codec should have comment or be unexported (golint)
    • Line 37: warning: exported method Codec.ReadHeader should have comment or be unexported (golint)
    • Line 41: warning: exported method Codec.ReadBody should have comment or be unexported (golint)
    • Line 69: warning: exported method Codec.Close should have comment or be unexported (golint)
    • Line 77: warning: exported function NewCodec should have comment or be unexported (golint)
    • vine/core/codec/grpc/grpc.go
    • Line 37: warning: exported type Codec should have comment or be unexported (golint)
    • Line 42: warning: exported method Codec.ReadHeader should have comment or be unexported (golint)
    • Line 70: warning: exported method Codec.ReadBody should have comment or be unexported (golint)
    • Line 157: warning: exported method Codec.Close should have comment or be unexported (golint)
    • Line 165: warning: exported function NewCodec should have comment or be unexported (golint)
    • vine/cmd/generator/vanity/enum.go
    • Line 37: warning: exported function EnumHasBoolExtension should have comment or be unexported (golint)
    • Line 54: warning: exported function SetBoolEnumOption should have comment or be unexported (golint)
    • Line 68: warning: exported function TurnOffGoEnumPrefix should have comment or be unexported (golint)
    • Line 72: warning: exported function TurnOffGoEnumStringer should have comment or be unexported (golint)
    • Line 76: warning: exported function TurnOnEnumStringer should have comment or be unexported (golint)
    • vine/core/server/grpc/grpc.go
    • Line 372: warning: context.Context should be the first parameter of a function (golint)
    • Line 494: warning: context.Context should be the first parameter of a function (golint)
    • Line 1074: warning: exported function NewServer should have comment or be unexported (golint)
    • vine/core/codec/json/marshaler.go
    • Line 42: warning: exported type Marshaler should have comment or be unexported (golint)
    • Line 44: warning: exported method Marshaler.Marshal should have comment or be unexported (golint)
    • Line 56: warning: exported method Marshaler.Unmarshal should have comment or be unexported (golint)
    • vine/cmd/protoc-gen-gogo/plugin/marshalto.go
    • Line 23: warning: package comment should be of the form "Package gogo ..." (golint)
    • Line 154: warning: exported type NumGen should have comment or be unexported (golint)
    • Line 163: warning: exported function NewNumGen should have comment or be unexported (golint)
    • Line 167: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 172: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 271: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 275: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 279: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • vine/lib/dao/utils/utils.go
    • Line 43: warning: exported function FileWithLineNum should have comment or be unexported (golint)
    • Line 58: warning: exported function IsValidDBNameChar should have comment or be unexported (golint)
    • Line 62: warning: exported function CheckTruth should have comment or be unexported (golint)
    • Line 75: warning: exported function ToStringKey should have comment or be unexported (golint)
    • Line 98: warning: exported function AssertEqual should have comment or be unexported (golint)
    • Line 113: warning: exported function ToString should have comment or be unexported (golint)
    • vine/util/namespace/resolver.go
    • Line 35: warning: exported function NewResolver should have comment or be unexported (golint)
    • Line 49: warning: exported method Resolver.ResolveWithType should have comment or be unexported (golint)
    • Line 53: warning: exported method Resolver.Resolve should have comment or be unexported (golint)
    • vine/cmd/generator/vanity/field.go
    • Line 37: warning: exported function FieldHasBoolExtension should have comment or be unexported (golint)
    • Line 54: warning: exported function SetBoolFieldOption should have comment or be unexported (golint)
    • Line 68: warning: exported function TurnOffNullable should have comment or be unexported (golint)
    • Line 75: warning: exported function TurnOffNullableForNativeTypes should have comment or be unexported (golint)
    • Line 82: warning: exported function TurnOffNullableForNativeTypesWithoutDefaultsOnly should have comment or be unexported (golint)
    • vine/lib/proxy/options.go
    • Line 31: warning: exported type Options should have comment or be unexported (golint)
    • Line 42: warning: exported type Option should have comment or be unexported (golint)
    • vine/core/client/context.go
    • Line 29: warning: exported function FromContext should have comment or be unexported (golint)
    • Line 34: warning: exported function NewContext should have comment or be unexported (golint)
    • vine/lib/logger/level.go
    • Line 30: warning: exported type Level should have comment or be unexported (golint)
    • Line 91: warning: exported function Info should have comment or be unexported (golint)
    • Line 95: warning: exported function Infof should have comment or be unexported (golint)
    • Line 99: warning: exported function Trace should have comment or be unexported (golint)
    • Line 103: warning: exported function Tracef should have comment or be unexported (golint)
    • Line 107: warning: exported function Debug should have comment or be unexported (golint)
    • Line 111: warning: exported function Debugf should have comment or be unexported (golint)
    • Line 115: warning: exported function Warn should have comment or be unexported (golint)
    • Line 119: warning: exported function Warnf should have comment or be unexported (golint)
    • Line 123: warning: exported function Error should have comment or be unexported (golint)
    • Line 127: warning: exported function Errorf should have comment or be unexported (golint)
    • Line 131: warning: exported function Fatal should have comment or be unexported (golint)
    • Line 136: warning: exported function Fatalf should have comment or be unexported (golint)
    • Line 141: warning: comment on exported function V should be of the form "V ..." (golint)
    • vine/core/client/options.go
    • Line 35: warning: exported type Options should have comment or be unexported (golint)
    • Line 63: warning: exported type CallOptions should have comment or be unexported (golint)
    • Line 93: warning: exported type PublishOptions should have comment or be unexported (golint)
    • Line 101: warning: exported type MessageOptions should have comment or be unexported (golint)
    • Line 105: warning: exported type RequestOptions should have comment or be unexported (golint)
    • Line 114: warning: exported function NewOptions should have comment or be unexported (golint)
    • Line 274: warning: exported function WithSelectOption should have comment or be unexported (golint)
    • Line 350: warning: exported function WithMessageContentType should have comment or be unexported (golint)
    • Line 358: warning: exported function WithContentType should have comment or be unexported (golint)
    • Line 364: warning: exported function StreamingRequest should have comment or be unexported (golint)
    • vine/lib/dao/soft_delete.go
    • Line 35: warning: exported type DeletedAt should have comment or be unexported (golint)
    • Line 50: warning: exported method DeletedAt.MarshalJSON should have comment or be unexported (golint)
    • Line 57: warning: exported method DeletedAt.UnmarshalJSON should have comment or be unexported (golint)
    • Line 69: warning: exported method DeletedAt.QueryClauses should have comment or be unexported (golint)
    • Line 73: warning: exported type SoftDeleteQueryClause should have comment or be unexported (golint)
    • Line 77: warning: exported method SoftDeleteQueryClause.Name should have comment or be unexported (golint)
    • Line 81: warning: exported method SoftDeleteQueryClause.Build should have comment or be unexported (golint)
    • Line 84: warning: exported method SoftDeleteQueryClause.MergeClause should have comment or be unexported (golint)
    • Line 87: warning: exported method SoftDeleteQueryClause.ModifyStatement should have comment or be unexported (golint)
    • Line 109: warning: exported method DeletedAt.DeleteClauses should have comment or be unexported (golint)
    • Line 113: warning: exported type SoftDeleteDeleteClause should have comment or be unexported (golint)
    • Line 117: warning: exported method SoftDeleteDeleteClause.Name should have comment or be unexported (golint)
    • Line 121: warning: exported method SoftDeleteDeleteClause.Build should have comment or be unexported (golint)
    • Line 124: warning: exported method SoftDeleteDeleteClause.MergeClause should have comment or be unexported (golint)
    • Line 127: warning: exported method SoftDeleteDeleteClause.ModifyStatement should have comment or be unexported (golint)
    • vine/lib/dao/clause/expression_builder.go
    • Line 25: warning: exported type EOp should have comment or be unexported (golint)
    • Line 28: warning: exported const EqOp should have comment (or a comment on this block) or be unexported (golint)
    • Line 44: warning: exported function Cond should have comment or be unexported (golint)
    • vine/lib/dao/clause/expression.go
    • Line 178: warning: exported method IN.Build should have comment or be unexported (golint)
    • Line 199: warning: exported method IN.NegationBuild should have comment or be unexported (golint)
    • Line 225: warning: exported method Eq.Build should have comment or be unexported (golint)
    • Line 236: warning: exported method Eq.NegationBuild should have comment or be unexported (golint)
    • Line 243: warning: exported method Neq.Build should have comment or be unexported (golint)
    • Line 254: warning: exported method Neq.NegationBuild should have comment or be unexported (golint)
    • Line 261: warning: exported method Gt.Build should have comment or be unexported (golint)
    • Line 267: warning: exported method Gt.NegationBuild should have comment or be unexported (golint)
    • Line 274: warning: exported method Gte.Build should have comment or be unexported (golint)
    • Line 280: warning: exported method Gte.NegationBuild should have comment or be unexported (golint)
    • Line 287: warning: exported method Lt.Build should have comment or be unexported (golint)
    • Line 293: warning: exported method Lt.NegationBuild should have comment or be unexported (golint)
    • Line 300: warning: exported method Lte.Build should have comment or be unexported (golint)
    • Line 306: warning: exported method Lte.NegationBuild should have comment or be unexported (golint)
    • Line 313: warning: exported method Like.Build should have comment or be unexported (golint)
    • Line 319: warning: exported method Like.NegationBuild should have comment or be unexported (golint)
    • vine/lib/config/reader/options.go
    • Line 33: warning: exported type Options should have comment or be unexported (golint)
    • Line 37: warning: exported type Option should have comment or be unexported (golint)
    • Line 39: warning: exported function NewOptions should have comment or be unexported (golint)
    • Line 55: warning: exported function WithEncoder should have comment or be unexported (golint)
    • vine/lib/api/handler/web/web.go
    • Line 43: warning: exported const Handler should have comment (or a comment on this block) or be unexported (golint)
    • Line 186: warning: exported function NewHandler should have comment or be unexported (golint)
    • Line 192: warning: exported function WithService should have comment or be unexported (golint)
    • vine/lib/dao/statement.go
    • Line 80: warning: exported method Statement.Join should have comment or be unexported (golint)
    • Line 89: warning: comment on exported method Statement.WriteString should be of the form "WriteString ..." (golint)
    • Line 94: warning: comment on exported method Statement.WriteByte should be of the form "WriteByte ..." (golint)
    • Line 184: warning: comment on exported method Statement.AddVar should be of the form "AddVar ..." (golint)
    • Line 463: warning: exported method Statement.Parse should have comment or be unexported (golint)
    • Line 528: warning: comment on exported method Statement.SetColumn should be of the form "SetColumn ..." (golint)
    • vine/scheduler.go
    • Line 35: warning: exported function GetJob should have comment or be unexported (golint)
    • Line 39: warning: exported function GetJobs should have comment or be unexported (golint)
    • Line 43: warning: exported function AddJob should have comment or be unexported (golint)
    • Line 47: warning: exported function UpdateJob should have comment or be unexported (golint)
    • Line 51: warning: exported function RemoveJob should have comment or be unexported (golint)
    • vine/lib/dao/chainable_api.go
    • Line 271: warning: exported method DB.Attrs should have comment or be unexported (golint)
    • Line 277: warning: exported method DB.Assign should have comment or be unexported (golint)
    • Line 283: warning: exported method DB.Unscoped should have comment or be unexported (golint)
    • Line 289: warning: exported method DB.Raw should have comment or be unexported (golint)
    • vine/core/router/handler/table.go
    • Line 33: warning: exported type Table should have comment or be unexported (golint)
    • Line 37: warning: exported method Table.Create should have comment or be unexported (golint)
    • Line 54: warning: exported method Table.Update should have comment or be unexported (golint)
    • Line 71: warning: exported method Table.Delete should have comment or be unexported (golint)
    • Line 114: warning: exported method Table.Query should have comment or be unexported (golint)
    • vine/core/broker/broker.go
    • Line 43: warning: exported type Message should have comment or be unexported (golint)
    • Line 64: warning: exported var DefaultBroker should have comment or be unexported (golint)
    • Line 67: warning: exported function Init should have comment or be unexported (golint)
    • Line 71: warning: exported function Connect should have comment or be unexported (golint)
    • Line 75: warning: exported function Disconnect should have comment or be unexported (golint)
    • Line 79: warning: exported function Publish should have comment or be unexported (golint)
    • Line 83: warning: exported function Subscribe should have comment or be unexported (golint)
    • Line 87: warning: exported function String should have comment or be unexported (golint)
    • vine/cmd/generator/ext.go
    • Line 33: warning: exported const PackageType should have comment (or a comment on this block) or be unexported (golint)
    • Line 39: warning: exported const NilTag should have comment or be unexported (golint)
    • Line 41: warning: exported type ServiceDescriptor should have comment or be unexported (golint)
    • Line 49: warning: exported type MethodDescriptor should have comment or be unexported (golint)
    • Line 55: warning: exported type MessageDescriptor should have comment or be unexported (golint)
    • Line 63: warning: exported type FieldDescriptor should have comment or be unexported (golint)
    • Line 69: warning: exported type Comment should have comment or be unexported (golint)
    • Line 188: warning: exported type FileOutPut should have comment or be unexported (golint)
    • vine/lib/logger/helper.go
    • Line 29: warning: exported type Helper should have comment or be unexported (golint)
    • Line 34: warning: exported function NewHelper should have comment or be unexported (golint)
    • Line 38: warning: exported method Helper.Info should have comment or be unexported (golint)
    • Line 45: warning: exported method Helper.Infof should have comment or be unexported (golint)
    • Line 52: warning: exported method Helper.Trace should have comment or be unexported (golint)
    • Line 59: warning: exported method Helper.Tracef should have comment or be unexported (golint)
    • Line 66: warning: exported method Helper.Debug should have comment or be unexported (golint)
    • Line 73: warning: exported method Helper.Debugf should have comment or be unexported (golint)
    • Line 80: warning: exported method Helper.Warn should have comment or be unexported (golint)
    • Line 87: warning: exported method Helper.Warnf should have comment or be unexported (golint)
    • Line 101: warning: exported method Helper.Errorf should have comment or be unexported (golint)
    • Line 108: warning: exported method Helper.Fatal should have comment or be unexported (golint)
    • Line 116: warning: exported method Helper.Fatalf should have comment or be unexported (golint)
    • Line 124: warning: exported method Helper.WithError should have comment or be unexported (golint)
    • Line 130: warning: exported method Helper.WithFields should have comment or be unexported (golint)
    • vine/lib/dao/clause/select.go
    • Line 32: warning: exported method Select.Name should have comment or be unexported (golint)
    • Line 36: warning: exported method Select.Build should have comment or be unexported (golint)
    • Line 53: warning: exported method Select.MergeClause should have comment or be unexported (golint)
    • vine/cmd/generator/vanity/foreach.go
    • Line 33: warning: exported function ForEachFile should have comment or be unexported (golint)
    • Line 39: warning: exported function OnlyProto2 should have comment or be unexported (golint)
    • Line 50: warning: exported function OnlyProto3 should have comment or be unexported (golint)
    • Line 61: warning: exported function ForEachMessageInFiles should have comment or be unexported (golint)
    • Line 67: warning: exported function ForEachMessage should have comment or be unexported (golint)
    • Line 74: warning: exported function ForEachFieldInFilesExcludingExtensions should have comment or be unexported (golint)
    • Line 80: warning: exported function ForEachFieldInFiles should have comment or be unexported (golint)
    • Line 89: warning: exported function ForEachFieldExcludingExtensions should have comment or be unexported (golint)
    • Line 98: warning: exported function ForEachField should have comment or be unexported (golint)
    • Line 110: warning: exported function ForEachEnumInFiles should have comment or be unexported (golint)
    • Line 118: warning: exported function ForEachEnum should have comment or be unexported (golint)
    • vine/lib/dao/schema/field.go
    • Line 40: warning: exported type DataType should have comment or be unexported (golint)
    • Line 42: warning: exported type TimeType should have comment or be unexported (golint)
    • Line 44: warning: exported var TimeReflectType should have comment or be unexported (golint)
    • Line 47: warning: exported const UnixSecond should have comment (or a comment on this block) or be unexported (golint)
    • Line 53: warning: exported const Bool should have comment (or a comment on this block) or be unexported (golint)
    • Line 62: warning: exported type Field should have comment or be unexported (golint)
    • Line 99: warning: exported method Schema.ParseField should have comment or be unexported (golint)
    • vine/cmd/vine/version/version.go
    • Line 10: warning: exported var GitCommit should have comment or be unexported (golint)
    • Line 15: warning: exported function Version should have comment or be unexported (golint)
    • Line 37: warning: exported function GoV should have comment or be unexported (golint)
    • vine/lib/dao/schema/relationship.go
    • Line 40: warning: exported const HasOne should have comment (or a comment on this block) or be unexported (golint)
    • Line 47: warning: exported type Relationships should have comment or be unexported (golint)
    • Line 55: warning: exported type Relationship should have comment or be unexported (golint)
    • Line 67: warning: exported type Polymorphic should have comment or be unexported (golint)
    • Line 73: warning: exported type Reference should have comment or be unexported (golint)
    • Line 523: warning: exported type Constraint should have comment or be unexported (golint)
    • Line 534: warning: exported method Relationship.ParseConstraint should have comment or be unexported (golint)
    • Line 595: warning: exported method Relationship.ToQueryConditions should have comment or be unexported (golint)
    • vine/lib/trace/options.go
    • Line 25: warning: exported type Options should have comment or be unexported (golint)
    • Line 30: warning: exported type Option should have comment or be unexported (golint)
    • Line 32: warning: exported type ReadOptions should have comment or be unexported (golint)
    • Line 37: warning: exported type ReadOption should have comment or be unexported (golint)
    • Line 39: warning: comment on exported function ReadTrace should be of the form "ReadTrace ..." (golint)
    • vine/util/context/context.go
    • Line 34: warning: exported function FromRequest should have comment or be unexported (golint)
    • Line 61: warning: exported type RequestCtx should have comment or be unexported (golint)
    • Line 68: warning: exported method RequestCtx.Clone should have comment or be unexported (golint)
    • Line 73: warning: exported method RequestCtx.Context should have comment or be unexported (golint)
    • Line 77: warning: exported method RequestCtx.Deadline should have comment or be unexported (golint)
    • Line 81: warning: exported method RequestCtx.Done should have comment or be unexported (golint)
    • Line 85: warning: exported method RequestCtx.Err should have comment or be unexported (golint)
    • Line 89: warning: exported method RequestCtx.Value should have comment or be unexported (golint)
    • Line 93: warning: context.Context should be the first parameter of a function (golint)
    • Line 93: warning: exported function NewRequestCtx should have comment or be unexported (golint)
    • vine/lib/api/resolver/grpc/grpc.go
    • Line 34: warning: exported type Resolver should have comment or be unexported (golint)
    • Line 36: warning: exported method Resolver.Resolve should have comment or be unexported (golint)
    • Line 58: warning: exported function NewResolver should have comment or be unexported (golint)
    • vine/lib/dao/clause/delete.go
    • Line 25: warning: exported type Delete should have comment or be unexported (golint)
    • Line 29: warning: exported method Delete.Name should have comment or be unexported (golint)
    • Line 33: warning: exported method Delete.Build should have comment or be unexported (golint)
    • Line 42: warning: exported method Delete.MergeClause should have comment or be unexported (golint)
    • vine/core/codec/codec.go
    • Line 31: warning: exported const Error should have comment (or a comment on this block) or be unexported (golint)
    • Line 38: warning: exported var ErrInvalidMessage should have comment or be unexported (golint)
    • Line 41: warning: exported type MessageType should have comment or be unexported (golint)
    • Line 58: warning: exported type Reader should have comment or be unexported (golint)
    • Line 63: warning: exported type Writer should have comment or be unexported (golint)
    • vine/lib/dao/utils/tests/utils.go
    • Line 14: warning: exported function AssertObjEqual should have comment or be unexported (golint)
    • Line 24: warning: exported function AssertEqual should have comment or be unexported (golint)
    • Line 114: warning: exported function Now should have comment or be unexported (golint)
    • vine/lib/dao/options.go
    • Line 77: warning: exported function NewOptions should have comment or be unexported (golint)
    • Line 105: warning: exported type Option should have comment or be unexported (golint)
    • Line 107: warning: exported function DSN should have comment or be unexported (golint)
    • Line 113: warning: exported function Namer should have comment or be unexported (golint)
    • Line 119: warning: exported function Logger should have comment or be unexported (golint)
    • vine/lib/dao/callbacks/update.go
    • Line 34: warning: exported function SetupUpdateReflectValue should have comment or be unexported (golint)
    • Line 53: warning: exported function BeforeUpdate should have comment or be unexported (golint)
    • Line 75: warning: exported function Update should have comment or be unexported (golint)
    • Line 111: warning: exported function AfterUpdate should have comment or be unexported (golint)
    • vine/lib/api/handler/options.go
    • Line 32: warning: exported var DefaultMaxRecvSize should have comment or be unexported (golint)
    • Line 35: warning: exported type Options should have comment or be unexported (golint)
    • Line 42: warning: exported type Option should have comment or be unexported (golint)
    • Line 81: warning: exported function WithClient should have comment or be unexported (golint)
    • vine/core/client/selector/options.go
    • Line 31: warning: exported type Options should have comment or be unexported (golint)
    • Line 40: warning: exported type SelectOptions should have comment or be unexported (golint)
    • Line 77: warning: comment on exported function WithStrategy should be of the form "WithStrategy ..." (golint)
    • vine/lib/config/source/options.go
    • Line 33: warning: exported type Options should have comment or be unexported (golint)
    • Line 44: warning: exported type Option should have comment or be unexported (golint)
    • Line 46: warning: exported function NewOptions should have comment or be unexported (golint)
    • vine/lib/cmd/cmd.go
    • Line 69: warning: exported type Cmd should have comment or be unexported (golint)
    • Line 84: warning: exported var DefaultCmd should have comment or be unexported (golint)
    • Line 536: warning: exported function DefaultOptions should have comment or be unexported (golint)
    • Line 540: warning: exported function App should have comment or be unexported (golint)
    • Line 544: warning: exported function Init should have comment or be unexported (golint)
    • Line 548: warning: exported function NewCmd should have comment or be unexported (golint)
    • vine/core/codec/json/json.go
    • Line 36: warning: exported type Codec should have comment or be unexported (golint)
    • Line 42: warning: exported method Codec.ReadHeader should have comment or be unexported (golint)
    • Line 46: warning: exported method Codec.ReadBody should have comment or be unexported (golint)
    • Line 63: warning: exported method Codec.Close should have comment or be unexported (golint)
    • Line 71: warning: exported function NewCodec should have comment or be unexported (golint)
    • vine/lib/dao/association.go
    • Line 43: warning: exported method DB.Association should have comment or be unexported (golint)
    • Line 66: warning: exported method Association.Find should have comment or be unexported (golint)
    • Line 73: warning: exported method Association.Append should have comment or be unexported (golint)
    • Line 88: warning: exported method Association.Replace should have comment or be unexported (golint)
    • Line 187: warning: exported method Association.Delete should have comment or be unexported (golint)
    • Line 326: warning: exported method Association.Clear should have comment or be unexported (golint)
    • Line 330: warning: exported method Association.Count should have comment or be unexported (golint)
    • vine/lib/dao/finisher_api.go
    • Line 282: warning: exported method DB.FirstOrInit should have comment or be unexported (golint)
    • Line 307: warning: exported method DB.FirstOrCreate should have comment or be unexported (golint)
    • Line 367: warning: exported method DB.UpdateColumn should have comment or be unexported (golint)
    • Line 375: warning: exported method DB.UpdateColumns should have comment or be unexported (golint)
    • Line 396: warning: exported method DB.Count should have comment or be unexported (golint)
    • Line 456: warning: exported method DB.Row should have comment or be unexported (golint)
    • Line 466: warning: exported method DB.Rows should have comment or be unexported (golint)
    • Line 530: warning: exported method DB.ScanRows should have comment or be unexported (golint)
    • Line 636: warning: exported method DB.SavePoint should have comment or be unexported (golint)
    • Line 645: warning: exported method DB.RollbackTo should have comment or be unexported (golint)
    • vine/cmd/protoc-gen-vine/plugin/util.go
    • Line 8: warning: exported type LinkComponents should have comment or be unexported (golint)
    • Line 14: warning: exported function NewLinkComponents should have comment or be unexported (golint)
    • Line 21: warning: exported method LinkComponents.Push should have comment or be unexported (golint)
    • Line 31: warning: exported method LinkComponents.Range should have comment or be unexported (golint)
    • vine/lib/dao/schema/index.go
    • Line 31: warning: exported type Index should have comment or be unexported (golint)
    • Line 41: warning: exported type IndexOption should have comment or be unexported (golint)
    • Line 88: warning: exported method Schema.LookIndex should have comment or be unexported (golint)
    • vine/lib/web/web.go
    • Line 36: warning: exported const MethodGet should have comment (or a comment on this block) or be unexported (golint)
    • vine/util/version/version.go
    • Line 23: warning: package comment should be of the form "Package version ..." (golint)
    • Line 27: warning: exported const V should have comment (or a comment on this block) or be unexported (golint)
    • vine/core/codec/bytes/marshaler.go
    • Line 29: warning: exported type Marshaler should have comment or be unexported (golint)
    • Line 31: warning: exported type Message should have comment or be unexported (golint)
    • Line 36: warning: exported method Marshaler.Marshal should have comment or be unexported (golint)
    • Line 48: warning: exported method Message.Unmarshal should have comment or be unexported (golint)
    • vine/lib/dao/callbacks/create.go
    • Line 34: warning: exported function BeforeCreate should have comment or be unexported (golint)
    • Line 55: warning: exported function Create should have comment or be unexported (golint)
    • Line 58: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 131: warning: exported function CreateWithReturning should have comment or be unexported (golint)
    • Line 227: warning: exported function AfterCreate should have comment or be unexported (golint)
    • vine/lib/dao/callbacks/query.go
    • Line 35: warning: exported function Query should have comment or be unexported (golint)
    • Line 52: warning: exported function BuildQuerySQL should have comment or be unexported (golint)
    • Line 189: warning: exported function Preload should have comment or be unexported (golint)
    • Line 227: warning: exported function AfterQuery should have comment or be unexported (golint)
    • vine/cmd/protoc-gen-dao/plugin/schema.go
    • Line 50: warning: exported type Field should have comment or be unexported (golint)
    • Line 63: warning: exported type MapFields should have comment or be unexported (golint)
    • Line 68: warning: exported type Schema should have comment or be unexported (golint)
    • Line 79: warning: exported type FieldTag should have comment or be unexported (golint)
    • Line 89: warning: exported function MargeTags should have comment or be unexported (golint)
    • vine/util/http/options.go
    • Line 29: warning: exported type Options should have comment or be unexported (golint)
    • Line 33: warning: exported type Option should have comment or be unexported (golint)
    • Line 35: warning: exported function WithRegistry should have comment or be unexported (golint)
    • vine/lib/api/api.go
    • Line 34: warning: exported type Api should have comment or be unexported (golint)
    • Line 47: warning: exported type Options should have comment or be unexported (golint)
    • Line 49: warning: exported type Option should have comment or be unexported (golint)
    • vine/lib/api/handler/api/api.go
    • Line 39: warning: exported const Handler should have comment (or a comment on this block) or be unexported (golint)
    • Line 125: warning: exported function NewHandler should have comment or be unexported (golint)
    • Line 132: warning: exported function WithService should have comment or be unexported (golint)
    • vine/lib/dao/schema/schema.go
    • Line 40: warning: exported type Schema should have comment or be unexported (golint)
    • Line 75: warning: exported method Schema.MakeSlice should have comment or be unexported (golint)
    • Line 82: warning: exported method Schema.LookUpField should have comment or be unexported (golint)
    • Line 92: warning: exported type Tabler should have comment or be unexported (golint)
    • Line 96: warning: comment on exported function Parse should be of the form "Parse ..." (golint)
    • Line 260: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • vine/core/registry/memory/watcher.go
    • Line 32: warning: exported type Watcher should have comment or be unexported (golint)
    • Line 39: warning: exported method Watcher.Next should have comment or be unexported (golint)
    • Line 53: warning: exported method Watcher.Stop should have comment or be unexported (golint)
    • vine/cmd/generator/vanity/msg.go
    • Line 37: warning: exported function MessageHasBoolExtension should have comment or be unexported (golint)
    • Line 54: warning: exported function SetBoolMessageOption should have comment or be unexported (golint)
    • Line 68: warning: exported function TurnOffGoGetters should have comment or be unexported (golint)
    • Line 72: warning: exported function TurnOffGoStringer should have comment or be unexported (golint)
    • Line 76: warning: exported function TurnOnVerboseEqual should have comment or be unexported (golint)
    • Line 80: warning: exported function TurnOnFace should have comment or be unexported (golint)
    • Line 84: warning: exported function TurnOnGoString should have comment or be unexported (golint)
    • Line 88: warning: exported function TurnOnPopulate should have comment or be unexported (golint)
    • Line 92: warning: exported function TurnOnStringer should have comment or be unexported (golint)
    • Line 96: warning: exported function TurnOnEqual should have comment or be unexported (golint)
    • Line 100: warning: exported function TurnOnDescription should have comment or be unexported (golint)
    • Line 104: warning: exported function TurnOnTestGen should have comment or be unexported (golint)
    • Line 108: warning: exported function TurnOnBenchGen should have comment or be unexported (golint)
    • Line 112: warning: exported function TurnOnMarshaler should have comment or be unexported (golint)
    • Line 116: warning: exported function TurnOnUnmarshaler should have comment or be unexported (golint)
    • Line 120: warning: exported function TurnOnSizer should have comment or be unexported (golint)
    • Line 124: warning: exported function TurnOnUnsafeUnmarshaler should have comment or be unexported (golint)
    • Line 128: warning: exported function TurnOnUnsafeMarshaler should have comment or be unexported (golint)
    • Line 132: warning: exported function TurnOffGoExtensionsMap should have comment or be unexported (golint)
    • Line 136: warning: exported function TurnOffGoUnrecognized should have comment or be unexported (golint)
    • Line 140: warning: exported function TurnOffGoUnkeyed should have comment or be unexported (golint)
    • Line 144: warning: exported function TurnOffGoSizecache should have comment or be unexported (golint)
    • Line 148: warning: exported function TurnOnCompare should have comment or be unexported (golint)
    • Line 152: warning: exported function TurnOnMessageName should have comment or be unexported (golint)
    • vine/core/broker/options.go
    • Line 33: warning: exported type Options should have comment or be unexported (golint)
    • Line 50: warning: exported type PublishOptions should have comment or be unexported (golint)
    • Line 56: warning: exported type SubscribeOptions should have comment or be unexported (golint)
    • Line 71: warning: exported type Option should have comment or be unexported (golint)
    • Line 73: warning: exported type PublishOption should have comment or be unexported (golint)
    • Line 82: warning: exported type SubscribeOption should have comment or be unexported (golint)
    • Line 84: warning: exported function NewSubscribeOptions should have comment or be unexported (golint)
    • vine/lib/dao/clause/joins.go
    • Line 25: warning: exported type JoinType should have comment or be unexported (golint)
    • Line 28: warning: exported const CrossJoin should have comment (or a comment on this block) or be unexported (golint)
    • Line 43: warning: exported method Join.Build should have comment or be unexported (golint)
    • vine/lib/dao/dao.go
    • Line 66: warning: exported type TxBeginner should have comment or be unexported (golint)
    • Line 70: warning: exported type ConnPoolBeginner should have comment or be unexported (golint)
    • Line 74: warning: exported type TxCommitter should have comment or be unexported (golint)
    • Line 84: warning: exported type JSONOp should have comment or be unexported (golint)
    • Line 87: warning: exported const JSONHasKey should have comment (or a comment on this block) or be unexported (golint)
    • Line 129: warning: exported var DefaultDialect should have comment or be unexported (golint)
    • vine/lib/api/server/options.go
    • Line 32: warning: exported type Option should have comment or be unexported (golint)
    • Line 34: warning: exported type Options should have comment or be unexported (golint)
    • Line 42: warning: exported type Wrapper should have comment or be unexported (golint)
    • Line 44: warning: exported function WrapHandler should have comment or be unexported (golint)
    • Line 50: warning: exported function EnableCORS should have comment or be unexported (golint)
    • Line 56: warning: exported function EnableTLS should have comment or be unexported (golint)
    • Line 62: warning: exported function TLSConfig should have comment or be unexported (golint)
    • Line 68: warning: exported function Resolver should have comment or be unexported (golint)
    • vine/cmd/vine/app/api/api.go
    • Line 59: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 63: warning: exported var Name should have comment or be unexported (golint)
    • Line 76: warning: exported function Run should have comment or be unexported (golint)
    • Line 291: warning: exported function Commands should have comment or be unexported (golint)
    • vine/cmd/generator/helper.go
    • Line 39: warning: exported method FileDescriptor.Enums should have comment or be unexported (golint)
    • Line 43: warning: exported method Descriptor.IsGroup should have comment or be unexported (golint)
    • Line 47: warning: exported method Generator.IsGroup should have comment or be unexported (golint)
    • Line 54: warning: exported method Generator.TypeNameByObject should have comment or be unexported (golint)
    • Line 62: warning: exported method Generator.OneOfTypeName should have comment or be unexported (golint)
    • Line 89: warning: exported type PluginImports should have comment or be unexported (golint)
    • Line 99: warning: exported function NewPluginImports should have comment or be unexported (golint)
    • Line 103: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 109: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 117: warning: exported type Single should have comment or be unexported (golint)
    • Line 140: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 153: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 157: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 161: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 165: warning: exported method Generator.GetFieldName should have comment or be unexported (golint)
    • Line 195: warning: exported method Generator.GetOneOfFieldName should have comment or be unexported (golint)
    • Line 221: warning: exported method Generator.IsMap should have comment or be unexported (golint)
    • Line 233: warning: exported method Generator.GetMapKeyField should have comment or be unexported (golint)
    • Line 248: warning: exported method Generator.GetMapValueField should have comment or be unexported (golint)
    • Line 315: warning: exported function GoTypeToName should have comment or be unexported (golint)
    • Line 319: warning: exported function EmbedFieldName should have comment or be unexported (golint)
    • Line 331: warning: exported method Generator.GeneratePlugin should have comment or be unexported (golint)
    • Line 355: warning: exported method Generator.SetFile should have comment or be unexported (golint)
    • Line 396: warning: exported function GetCustomType should have comment or be unexported (golint)
    • Line 438: warning: exported function FileName should have comment or be unexported (golint)
    • Line 446: warning: exported method Generator.AllFiles should have comment or be unexported (golint)
    • Line 450: warning: exported method Descriptor.Path should have comment or be unexported (golint)
    • Line 460: warning: exported method FileDescriptor.GoPackageName should have comment or be unexported (golint)
    • vine/lib/dao/clause/clause.go
    • Line 35: warning: exported type Writer should have comment or be unexported (golint)
    • Line 47: warning: exported type Clause should have comment or be unexported (golint)
    • Line 86: warning: exported const PrimaryKey should have comment (or a comment on this block) or be unexported (golint)
    • Line 93: warning: exported var PrimaryColumn should have comment or be unexported (golint)
    • vine/lib/dao/callbacks/interfaces.go
    • Line 27: warning: exported type BeforeCreateInterface should have comment or be unexported (golint)
    • Line 31: warning: exported type AfterCreateInterface should have comment or be unexported (golint)
    • Line 35: warning: exported type BeforeUpdateInterface should have comment or be unexported (golint)
    • Line 39: warning: exported type AfterUpdateInterface should have comment or be unexported (golint)
    • Line 43: warning: exported type BeforeSaveInterface should have comment or be unexported (golint)
    • Line 47: warning: exported type AfterSaveInterface should have comment or be unexported (golint)
    • Line 51: warning: exported type BeforeDeleteInterface should have comment or be unexported (golint)
    • Line 55: warning: exported type AfterDeleteInterface should have comment or be unexported (golint)
    • Line 59: warning: exported type AfterFindInterface should have comment or be unexported (golint)
    • vine/cmd/generator/vanity/file.go
    • Line 39: warning: exported function NotGoogleProtobufDescriptorProto should have comment or be unexported (golint)
    • Line 45: warning: exported function FilterFiles should have comment or be unexported (golint)
    • Line 56: warning: exported function FileHasBoolExtension should have comment or be unexported (golint)
    • Line 73: warning: exported function SetBoolFileOption should have comment or be unexported (golint)
    • Line 87: warning: exported function TurnOffGoGettersAll should have comment or be unexported (golint)
    • Line 91: warning: exported function TurnOffGoEnumPrefixAll should have comment or be unexported (golint)
    • Line 95: warning: exported function TurnOffGoStringerAll should have comment or be unexported (golint)
    • Line 99: warning: exported function TurnOnVerboseEqualAll should have comment or be unexported (golint)
    • Line 103: warning: exported function TurnOnFaceAll should have comment or be unexported (golint)
    • Line 107: warning: exported function TurnOnGoStringAll should have comment or be unexported (golint)
    • Line 111: warning: exported function TurnOnPopulateAll should have comment or be unexported (golint)
    • Line 115: warning: exported function TurnOnStringerAll should have comment or be unexported (golint)
    • Line 119: warning: exported function TurnOnEqualAll should have comment or be unexported (golint)
    • Line 123: warning: exported function TurnOnDescriptionAll should have comment or be unexported (golint)
    • Line 127: warning: exported function TurnOnTestGenAll should have comment or be unexported (golint)
    • Line 131: warning: exported function TurnOnBenchGenAll should have comment or be unexported (golint)
    • Line 135: warning: exported function TurnOnMarshalerAll should have comment or be unexported (golint)
    • Line 139: warning: exported function TurnOnUnmarshalerAll should have comment or be unexported (golint)
    • Line 143: warning: exported function TurnOnStable_MarshalerAll should have comment or be unexported (golint)
    • Line 143: warning: don't use underscores in Go names; func TurnOnStable_MarshalerAll should be TurnOnStableMarshalerAll (golint)
    • Line 147: warning: exported function TurnOnSizerAll should have comment or be unexported (golint)
    • Line 151: warning: exported function TurnOffGoEnumStringerAll should have comment or be unexported (golint)
    • Line 155: warning: exported function TurnOnEnumStringerAll should have comment or be unexported (golint)
    • Line 159: warning: exported function TurnOnUnsafeUnmarshalerAll should have comment or be unexported (golint)
    • Line 163: warning: exported function TurnOnUnsafeMarshalerAll should have comment or be unexported (golint)
    • Line 167: warning: exported function TurnOffGoExtensionsMapAll should have comment or be unexported (golint)
    • Line 171: warning: exported function TurnOffGoUnrecognizedAll should have comment or be unexported (golint)
    • Line 175: warning: exported function TurnOffGoUnkeyedAll should have comment or be unexported (golint)
    • Line 179: warning: exported function TurnOffGoSizecacheAll should have comment or be unexported (golint)
    • Line 183: warning: exported function TurnOffGogoImport should have comment or be unexported (golint)
    • Line 187: warning: exported function TurnOnCompareAll should have comment or be unexported (golint)
    • Line 191: warning: exported function TurnOnMessageNameAll should have comment or be unexported (golint)
    • Line 195: warning: exported function TurnOffMessageNameAll should have comment or be unexported (golint)
    • Line 199: warning: exported function TurnOnGoRegistration should have comment or be unexported (golint)
    • Line 203: warning: exported function TurnOffTypeDesc should have comment or be unexported (golint)
    • vine/lib/dao/nop/migrator.go
    • Line 9: warning: exported type Migrator should have comment or be unexported (golint)
    • Line 12: warning: exported method Migrator.AutoMigrate should have comment or be unexported (golint)
    • Line 16: warning: exported method Migrator.CurrentDatabase should have comment or be unexported (golint)
    • Line 20: warning: exported method Migrator.FullDataTypeOf should have comment or be unexported (golint)
    • Line 24: warning: exported method Migrator.CreateTable should have comment or be unexported (golint)
    • Line 28: warning: exported method Migrator.DropTable should have comment or be unexported (golint)
    • Line 32: warning: exported method Migrator.HasTable should have comment or be unexported (golint)
    • Line 36: warning: exported method Migrator.RenameTable should have comment or be unexported (golint)
    • Line 40: warning: exported method Migrator.AddColumn should have comment or be unexported (golint)
    • Line 44: warning: exported method Migrator.DropColumn should have comment or be unexported (golint)
    • Line 48: warning: exported method Migrator.AlterColumn should have comment or be unexported (golint)
    • Line 52: warning: exported method Migrator.MigrateColumn should have comment or be unexported (golint)
    • Line 56: warning: exported method Migrator.HasColumn should have comment or be unexported (golint)
    • Line 60: warning: exported method Migrator.RenameColumn should have comment or be unexported (golint)
    • Line 64: warning: exported method Migrator.ColumnTypes should have comment or be unexported (golint)
    • Line 68: warning: exported method Migrator.CreateView should have comment or be unexported (golint)
    • Line 72: warning: exported method Migrator.DropView should have comment or be unexported (golint)
    • Line 76: warning: exported method Migrator.CreateConstraint should have comment or be unexported (golint)
    • Line 80: warning: exported method Migrator.DropConstraint should have comment or be unexported (golint)
    • Line 84: warning: exported method Migrator.HasConstraint should have comment or be unexported (golint)
    • Line 88: warning: exported method Migrator.CreateIndex should have comment or be unexported (golint)
    • Line 92: warning: exported method Migrator.DropIndex should have comment or be unexported (golint)
    • Line 96: warning: exported method Migrator.HasIndex should have comment or be unexported (golint)
    • Line 100: warning: exported method Migrator.RenameIndex should have comment or be unexported (golint)
    • vine/lib/proxy/http/http.go
    • Line 58: warning: comment on exported var DefaultBackend should be of the form "DefaultBackend ..." (golint)
    • Line 60: warning: comment on exported var DefaultRouter should be of the form "DefaultRouter ..." (golint)
    • Line 64: warning: comment on exported method Resolver.Resolve should be of the form "Resolve ..." (golint)
    • Line 143: warning: exported method Router.ProcessMessage should have comment or be unexported (golint)
    • Line 207: warning: should omit 2nd value from range; this loop is equivalent to `for k := range ...` (golint)
    • vine/lib/api/handler/rpc/message.go
    • Line 25: warning: exported type Message should have comment or be unexported (golint)
    • Line 29: warning: exported method Message.ProtoMessage should have comment or be unexported (golint)
    • Line 31: warning: exported method Message.Reset should have comment or be unexported (golint)
    • Line 39: warning: exported method Message.Marshal should have comment or be unexported (golint)
    • Line 43: warning: exported method Message.Unmarshal should have comment or be unexported (golint)
    • Line 48: warning: exported function NewMessage should have comment or be unexported (golint)
    • vine/util/context/metadata/metadata.go
    • Line 38: warning: exported method Metadata.Get should have comment or be unexported (golint)
    • Line 50: warning: exported method Metadata.Set should have comment or be unexported (golint)
    • Line 55: warning: exported method Metadata.Delete should have comment or be unexported (golint)
    • vine/lib/dao/migrator.go
    • Line 47: warning: exported type ColumnType should have comment or be unexported (golint)
    • Line 55: warning: exported type Migrator should have comment or be unexported (golint)
    • vine/cmd/protoc-gen-cli/plugin/cli.go
    • Line 34: warning: exported var TagString should have comment or be unexported (golint)
    • Line 81: warning: exported type Tag should have comment or be unexported (golint)
    • Line 95: warning: exported function New should have comment or be unexported (golint)
    • Line 494: warning: exported function TrimString should have comment or be unexported (golint)
    • vine/cmd/vine/app/cli/util/util.go
    • Line 23: warning: package comment should be of the form "Package util ..." (golint)
    • Line 74: warning: exported type Env should have comment or be unexported (golint)
    • Line 79: warning: exported function AddEnv should have comment or be unexported (golint)
    • Line 139: warning: exported function GetEnvByName should have comment or be unexported (golint)
    • Line 160: warning: exported function GetEnvs should have comment or be unexported (golint)
    • Line 185: warning: exported function IsLocal should have comment or be unexported (golint)
    • Line 189: warning: exported function IsServer should have comment or be unexported (golint)
    • Line 193: warning: exported function IsPlatform should have comment or be unexported (golint)
    • vine/cmd/vine/app/cli/run/run.go
    • Line 44: warning: exported type Runner should have comment or be unexported (golint)
    • Line 51: warning: exported function NewRunner should have comment or be unexported (golint)
    • Line 55: warning: exported method Runner.Run should have comment or be unexported (golint)
    • Line 68: warning: exported method Runner.Kill should have comment or be unexported (golint)
    • Line 82: warning: exported method Runner.Wait should have comment or be unexported (golint)
    • Line 90: warning: exported method Runner.Stop should have comment or be unexported (golint)
    • Line 241: warning: exported function Commands should have comment or be unexported (golint)
    • vine/cmd/protoc-gen-dao/plugin/dao.go
    • Line 41: warning: exported var TagString should have comment or be unexported (golint)
    • Line 57: warning: exported type Tag should have comment or be unexported (golint)
    • Line 85: warning: exported function New should have comment or be unexported (golint)
    • Line 283: warning: should omit 2nd value from range; this loop is equivalent to `for k := range ...` (golint)
    • vine/core/codec/proto/marshaler.go
    • Line 36: warning: exported type Marshaler should have comment or be unexported (golint)
    • Line 38: warning: exported method Marshaler.Marshal should have comment or be unexported (golint)
    • Line 58: warning: exported method Marshaler.Unmarshal should have comment or be unexported (golint)
    • vine/core/registry/registry.go
    • Line 32: warning: exported var DefaultRegistry should have comment or be unexported (golint)
    • Line 54: warning: exported type Option should have comment or be unexported (golint)
    • Line 56: warning: exported type RegisterOption should have comment or be unexported (golint)
    • Line 58: warning: exported type WatchOption should have comment or be unexported (golint)
    • Line 60: warning: exported type DeregisterOption should have comment or be unexported (golint)
    • Line 62: warning: exported type GetOption should have comment or be unexported (golint)
    • Line 64: warning: exported type ListOption should have comment or be unexported (golint)
    • Line 66: warning: exported type OpenAPIOption should have comment or be unexported (golint)
    • Line 93: warning: exported function String should have comment or be unexported (golint)
    • vine/cmd/generator/generator.go
    • Line 23: warning: package comment should be of the form "Package generator ..." (golint)
    • Line 23: warning: package comment should not have leading space (golint)
    • Line 277: warning: exported method ImportedDescriptor.TypeName should have comment or be unexported (golint)
    • Line 319: warning: exported method FileDescriptor.Messages should have comment or be unexported (golint)
    • Line 323: warning: exported method FileDescriptor.TagServices should have comment or be unexported (golint)
    • Line 327: warning: exported method FileDescriptor.Comments should have comment or be unexported (golint)
    • Line 331: warning: exported method FileDescriptor.Ext should have comment or be unexported (golint)
    • Line 512: warning: exported method Generator.EnableEdit should have comment or be unexported (golint)
    • Line 1141: warning: exported method Generator.PrintImport should have comment or be unexported (golint)
    • Line 1331: warning: don't use underscores in Go names; var new_ should be new (golint)
    • Line 1387: warning: exported method Generator.File should have comment or be unexported (golint)
    • Line 1994: warning: exported method Generator.GoMapType should have comment or be unexported (golint)
    • Line 2063: warning: exported method Generator.RecordTypeUse should have comment or be unexported (golint)
    • Line 2135: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 2175: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 2182: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 3312: warning: exported method Generator.GenerateExtension should have comment or be unexported (golint)
    • Line 3387: warning: exported method Generator.GenerateFileDescriptor should have comment or be unexported (golint)
    • Line 3543: warning: comment on exported function IsScalar should be of the form "IsScalar ..." (golint)
    • vine/lib/dao/schema/utils.go
    • Line 36: warning: exported function ParseTagSetting should have comment or be unexported (golint)
    • Line 203: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • vine/core/server/handler.go
    • Line 31: warning: exported type HandlerOption should have comment or be unexported (golint)
    • Line 33: warning: exported type HandlerOptions should have comment or be unexported (golint)
    • Line 39: warning: exported type SubscriberOption should have comment or be unexported (golint)
    • Line 41: warning: exported type SubscriberOptions should have comment or be unexported (golint)
    • Line 83: warning: exported function NewSubscriberOptions should have comment or be unexported (golint)
    • vine/cmd/vine/app/cli/util/tool/tool.go
    • Line 31: warning: exported type Config should have comment or be unexported (golint)
    • Line 38: warning: exported type Package should have comment or be unexported (golint)
    • Line 43: warning: exported type Mods should have comment or be unexported (golint)
    • Line 45: warning: exported type Mod should have comment or be unexported (golint)
    • Line 56: warning: exported type Protos should have comment or be unexported (golint)
    • Line 58: warning: exported type Proto should have comment or be unexported (golint)
    • Line 67: warning: exported function New should have comment or be unexported (golint)
    • vine/lib/dao/schema/interfaces.go
    • Line 27: warning: exported type DataTypeInterface should have comment or be unexported (golint)
    • Line 31: warning: exported type CreateClausesInterface should have comment or be unexported (golint)
    • Line 35: warning: exported type QueryClausesInterface should have comment or be unexported (golint)
    • Line 39: warning: exported type UpdateClausesInterface should have comment or be unexported (golint)
    • Line 43: warning: exported type DeleteClausesInterface should have comment or be unexported (golint)
    • vine/lib/dao/callbacks/delete.go
    • Line 34: warning: exported function BeforeDelete should have comment or be unexported (golint)
    • Line 47: warning: exported function DeleteBeforeAssociations should have comment or be unexported (golint)
    • Line 129: warning: exported function Delete should have comment or be unexported (golint)
    • Line 180: warning: exported function AfterDelete should have comment or be unexported (golint)

gocyclo86%

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.

    • vine/lib/dao/association.go
    • Line 343: warning: cyclomatic complexity 51 of function (*Association).saveAssociation() is high (> 15) (gocyclo)
    • Line 187: warning: cyclomatic complexity 27 of function (*Association).Delete() is high (> 15) (gocyclo)
    • Line 88: warning: cyclomatic complexity 22 of function (*Association).Replace() is high (> 15) (gocyclo)
    • vine/lib/dao/migrator/migrator.go
    • Line 105: warning: cyclomatic complexity 23 of function (Migrator).AutoMigrate() is high (> 15) (gocyclo)
    • Line 667: warning: cyclomatic complexity 20 of function (Migrator).ReorderModels() is high (> 15) (gocyclo)
    • Line 177: warning: cyclomatic complexity 19 of function (Migrator).CreateTable() is high (> 15) (gocyclo)
    • Line 385: warning: cyclomatic complexity 18 of function (Migrator).MigrateColumn() is high (> 15) (gocyclo)
    • vine/cmd/protoc-gen-gogo/plugin/unmarshal.go
    • Line 474: warning: cyclomatic complexity 201 of function (*gogo).field() is high (> 15) (gocyclo)
    • Line 228: warning: cyclomatic complexity 32 of function (*gogo).declareMapField() is high (> 15) (gocyclo)
    • Line 1275: warning: cyclomatic complexity 30 of function (*gogo).GenerateUnmarshal() is high (> 15) (gocyclo)
    • Line 309: warning: cyclomatic complexity 30 of function (*gogo).mapUnmarshalField() is high (> 15) (gocyclo)
    • vine/lib/proxy/mucp/mucp.go
    • Line 359: warning: cyclomatic complexity 16 of function (*Proxy).ServeRequest() is high (> 15) (gocyclo)
    • Line 489: warning: cyclomatic complexity 16 of function (*Proxy).serveRequest() is high (> 15) (gocyclo)
    • vine/util/jsonpb/jsonpb.go
    • Line 812: warning: cyclomatic complexity 112 of function (*Unmarshaler).unmarshalValue() is high (> 15) (gocyclo)
    • Line 173: warning: cyclomatic complexity 66 of function (*Marshaler).marshalObject() is high (> 15) (gocyclo)
    • Line 520: warning: cyclomatic complexity 53 of function (*Marshaler).marshalValue() is high (> 15) (gocyclo)
    • Line 1306: warning: cyclomatic complexity 33 of function checkRequiredFields() is high (> 15) (gocyclo)
    • vine/cmd/generator/generator.go
    • Line 2942: warning: cyclomatic complexity 59 of function (*Generator).GenerateMessage() is high (> 15) (gocyclo)
    • Line 1675: warning: cyclomatic complexity 50 of function (*Generator).goTag() is high (> 15) (gocyclo)
    • Line 1879: warning: cyclomatic complexity 43 of function (*Generator).GoType() is high (> 15) (gocyclo)
    • Line 2119: warning: cyclomatic complexity 30 of function (*Generator).getterDefault() is high (> 15) (gocyclo)
    • Line 2400: warning: cyclomatic complexity 28 of function (*Generator).generateDefaultConstants() is high (> 15) (gocyclo)
    • Line 2618: warning: cyclomatic complexity 21 of function (*Generator).generateOneofDecls() is high (> 15) (gocyclo)
    • Line 533: warning: cyclomatic complexity 20 of function (*Generator).CommandLineParameters() is high (> 15) (gocyclo)
    • Line 1994: warning: cyclomatic complexity 18 of function (*Generator).GoMapType() is high (> 15) (gocyclo)
    • Line 1532: warning: cyclomatic complexity 18 of function (*Generator).generateEnum() is high (> 15) (gocyclo)
    • Line 2805: warning: cyclomatic complexity 18 of function (*Generator).generateCommonMethods() is high (> 15) (gocyclo)
    • Line 1843: warning: cyclomatic complexity 16 of function needsStar() is high (> 15) (gocyclo)
    • Line 1433: warning: cyclomatic complexity 16 of function (*Generator).generateImports() is high (> 15) (gocyclo)
    • vine/lib/dao/callbacks/create.go
    • Line 249: warning: cyclomatic complexity 62 of function ConvertToCreateValues() is high (> 15) (gocyclo)
    • Line 131: warning: cyclomatic complexity 27 of function CreateWithReturning() is high (> 15) (gocyclo)
    • Line 55: warning: cyclomatic complexity 26 of function Create() is high (> 15) (gocyclo)
    • vine/lib/dao/scan.go
    • Line 75: warning: cyclomatic complexity 66 of function Scan() is high (> 15) (gocyclo)
    • Line 272: warning: cyclomatic complexity 33 of function patch() is high (> 15) (gocyclo)
    • vine/cmd/protoc-gen-vine/plugin/openapi.go
    • Line 542: warning: cyclomatic complexity 74 of function (*vine).generateSchema() is high (> 15) (gocyclo)
    • Line 133: warning: cyclomatic complexity 22 of function (*vine).generateMethodOpenAPI() is high (> 15) (gocyclo)
    • Line 341: warning: cyclomatic complexity 17 of function (*vine).generateResponse() is high (> 15) (gocyclo)
    • vine/core/client/grpc/grpc.go
    • Line 402: warning: cyclomatic complexity 20 of function (*grpcClient).Call() is high (> 15) (gocyclo)
    • Line 515: warning: cyclomatic complexity 16 of function (*grpcClient).Stream() is high (> 15) (gocyclo)
    • vine/lib/dao/callbacks.go
    • Line 245: warning: cyclomatic complexity 31 of function sortCallbacks() is high (> 15) (gocyclo)
    • Line 96: warning: cyclomatic complexity 17 of function (*processor).Execute() is high (> 15) (gocyclo)
    • vine/cmd/protoc-gen-dao/plugin/dao.go
    • Line 610: warning: cyclomatic complexity 37 of function (*dao).generateSchemaCURDMethods() is high (> 15) (gocyclo)
    • Line 411: warning: cyclomatic complexity 24 of function (*dao).generateSchemaIOMethods() is high (> 15) (gocyclo)
    • Line 212: warning: cyclomatic complexity 16 of function (*dao).buildFields() is high (> 15) (gocyclo)
    • vine/lib/dao/statement.go
    • Line 288: warning: cyclomatic complexity 66 of function (*Statement).BuildCondition() is high (> 15) (gocyclo)
    • Line 633: warning: cyclomatic complexity 23 of function (*Statement).SelectAndOmitColumns() is high (> 15) (gocyclo)
    • Line 105: warning: cyclomatic complexity 23 of function (*Statement).QuoteTo() is high (> 15) (gocyclo)
    • Line 185: warning: cyclomatic complexity 21 of function (*Statement).AddVar() is high (> 15) (gocyclo)
    • Line 583: warning: cyclomatic complexity 17 of function (*Statement).Changed() is high (> 15) (gocyclo)
    • vine/lib/api/handler/rpc/rpc.go
    • Line 270: warning: cyclomatic complexity 43 of function requestPayload() is high (> 15) (gocyclo)
    • Line 118: warning: cyclomatic complexity 19 of function (*rpcHandler).Handle() is high (> 15) (gocyclo)
    • vine/core/server/grpc/grpc.go
    • Line 884: warning: cyclomatic complexity 26 of function (*grpcServer).Start() is high (> 15) (gocyclo)
    • Line 631: warning: cyclomatic complexity 25 of function (*grpcServer).Register() is high (> 15) (gocyclo)
    • Line 372: warning: cyclomatic complexity 19 of function (*grpcServer).processRequest() is high (> 15) (gocyclo)
    • Line 236: warning: cyclomatic complexity 19 of function (*grpcServer).handler() is high (> 15) (gocyclo)

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!