Preparing report...

Report for github.com/nhost/cli

A+    Excellent!    Found 35 issues across 47 files

Tweet

gofmt100%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command

No problems detected. Good job!


go_vet100%

go vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string.

No problems detected. Good job!


gocyclo91%

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.

    • cli/nhost/nhost.go
    • Line 213: warning: cyclomatic complexity 23 of function (*Configuration).Wrap() is high (> 15) (gocyclo)
    • Line 617: warning: cyclomatic complexity 17 of function (*Configuration).Init() is high (> 15) (gocyclo)

golint29%

Golint is a linter for Go source code.

    • cli/functions/server.go
    • Line 21: warning: comment on exported type Server should be of the form "Server ..." (with optional leading article) (golint)
    • Line 43: warning: comment on exported type ServerConfig should be of the form "ServerConfig ..." (with optional leading article) (golint)
    • Line 72: warning: comment on exported function New should be of the form "New ..." (golint)
    • Line 131: warning: comment on exported method Server.FunctionHandler should be of the form "FunctionHandler ..." (golint)
    • cli/hasura/hasura.go
    • Line 37: warning: comment on exported function Binary should be of the form "Binary ..." (golint)
    • Line 118: warning: exported method Client.GetSchemas should have comment or be unexported (golint)
    • Line 173: warning: exported method Client.GetMetadata should have comment or be unexported (golint)
    • Line 205: warning: exported method Client.Seed should have comment or be unexported (golint)
    • Line 236: warning: exported method Client.ClearMigration should have comment or be unexported (golint)
    • Line 296: warning: exported method Client.GetExtensions should have comment or be unexported (golint)
    • Line 335: warning: don't use underscores in Go names; var enumerable_value should be enumerableValue (golint)
    • Line 346: warning: exported method Client.Track should have comment or be unexported (golint)
    • Line 499: warning: exported method Client.Migration should have comment or be unexported (golint)
    • Line 509: warning: exported method Client.ApplySeeds should have comment or be unexported (golint)
    • Line 521: warning: exported function GetTablesFromLocalMetadata should have comment or be unexported (golint)
    • cli/cmd/vars.go
    • Line 12: warning: comment on exported const Bold should be of the form "Bold ..." (golint)
    • Line 14: warning: exported const Reset should have comment (or a comment on this block) or be unexported (golint)
    • Line 16: warning: comment on exported const Yellow should be of the form "Yellow ..." (golint)
    • Line 28: warning: comment on exported var Version should be of the form "Version ..." (golint)
    • Line 34: warning: exported var Client should have comment or be unexported (golint)
    • cli/cmd/root.go
    • Line 111: warning: comment on exported function Execute should be of the form "Execute ..." (golint)
    • cli/logger/logger.go
    • Line 13: warning: exported var Log should have comment or be unexported (golint)
    • Line 20: warning: exported function Init should have comment or be unexported (golint)
    • cli/environment/containers.go
    • Line 20: warning: comment on exported method Environment.WrapContainersAsServices should be of the form "WrapContainersAsServices ..." (golint)
    • Line 84: warning: comment on exported method Environment.Shutdown should be of the form "Shutdown ..." (golint)
    • Line 85: warning: context.Context should be the first parameter of a function (golint)
    • Line 93: warning: don't use underscores in Go names; var end_waiter should be endWaiter (golint)
    • Line 126: warning: comment on exported method Environment.GetContainers should be of the form "GetContainers ..." (golint)
    • Line 142: warning: comment on exported method Environment.RemoveNetwork should be of the form "RemoveNetwork ..." (golint)
    • Line 153: warning: comment on exported method Environment.PruneNetworks should be of the form "PruneNetworks ..." (golint)
    • Line 171: warning: comment on exported method Environment.PruneContainers should be of the form "PruneContainers ..." (golint)
    • Line 191: warning: comment on exported method Environment.PrepareNetwork should be of the form "PrepareNetwork ..." (golint)
    • Line 233: warning: comment on exported method Environment.GetNetwork should be of the form "GetNetwork ..." (golint)
    • Line 255: warning: comment on exported method Environment.CheckImages should be of the form "CheckImages ..." (golint)
    • cli/environment/environment.go
    • Line 37: warning: exported method Environment.UpdateState should have comment or be unexported (golint)
    • Line 43: warning: exported method Environment.Init should have comment or be unexported (golint)
    • Line 109: warning: exported method Environment.Prepare should have comment or be unexported (golint)
    • Line 209: warning: comment on exported method Environment.HealthCheck should be of the form "HealthCheck ..." (golint)
    • Line 221: warning: don't use underscores in Go names; var health_waiter should be healthWaiter (golint)
    • Line 290: warning: exported method Environment.Seed should have comment or be unexported (golint)
    • Line 292: warning: don't use underscores in Go names; var seed_files should be seedFiles (golint)
    • Line 409: warning: exported method Environment.Cleanup should have comment or be unexported (golint)
    • cli/hasura/metadata.go
    • Line 225: warning: exported type PGColumn should have comment or be unexported (golint)
    • Line 227: warning: exported function UnmarshalPGColumn should have comment or be unexported (golint)
    • Line 233: warning: exported method PGColumn.Marshal should have comment or be unexported (golint)
    • Line 237: warning: exported type ComputedFieldName should have comment or be unexported (golint)
    • Line 239: warning: exported function UnmarshalComputedFieldName should have comment or be unexported (golint)
    • Line 245: warning: exported method ComputedFieldName.Marshal should have comment or be unexported (golint)
    • Line 249: warning: exported type RoleName should have comment or be unexported (golint)
    • Line 251: warning: exported function UnmarshalRoleName should have comment or be unexported (golint)
    • Line 257: warning: exported method RoleName.Marshal should have comment or be unexported (golint)
    • Line 261: warning: exported type TriggerName should have comment or be unexported (golint)
    • Line 263: warning: exported function UnmarshalTriggerName should have comment or be unexported (golint)
    • Line 269: warning: exported method TriggerName.Marshal should have comment or be unexported (golint)
    • Line 273: warning: exported type RemoteRelationshipName should have comment or be unexported (golint)
    • Line 275: warning: exported function UnmarshalRemoteRelationshipName should have comment or be unexported (golint)
    • Line 281: warning: exported method RemoteRelationshipName.Marshal should have comment or be unexported (golint)
    • Line 285: warning: exported type RemoteSchemaName should have comment or be unexported (golint)
    • Line 287: warning: exported function UnmarshalRemoteSchemaName should have comment or be unexported (golint)
    • Line 293: warning: exported method RemoteSchemaName.Marshal should have comment or be unexported (golint)
    • Line 297: warning: exported type CollectionName should have comment or be unexported (golint)
    • Line 299: warning: exported function UnmarshalCollectionName should have comment or be unexported (golint)
    • Line 305: warning: exported method CollectionName.Marshal should have comment or be unexported (golint)
    • Line 309: warning: exported type GraphQLName should have comment or be unexported (golint)
    • Line 311: warning: exported function UnmarshalGraphQLName should have comment or be unexported (golint)
    • Line 317: warning: exported method GraphQLName.Marshal should have comment or be unexported (golint)
    • Line 321: warning: exported type GraphQLType should have comment or be unexported (golint)
    • Line 323: warning: exported function UnmarshalGraphQLType should have comment or be unexported (golint)
    • Line 329: warning: exported method GraphQLType.Marshal should have comment or be unexported (golint)
    • Line 333: warning: exported type RelationshipName should have comment or be unexported (golint)
    • Line 335: warning: exported function UnmarshalRelationshipName should have comment or be unexported (golint)
    • Line 341: warning: exported method RelationshipName.Marshal should have comment or be unexported (golint)
    • Line 345: warning: exported type ActionName should have comment or be unexported (golint)
    • Line 347: warning: exported function UnmarshalActionName should have comment or be unexported (golint)
    • Line 353: warning: exported method ActionName.Marshal should have comment or be unexported (golint)
    • Line 357: warning: exported type WebhookURL should have comment or be unexported (golint)
    • Line 359: warning: exported function UnmarshalWebhookURL should have comment or be unexported (golint)
    • Line 365: warning: exported method WebhookURL.Marshal should have comment or be unexported (golint)
    • Line 369: warning: exported function UnmarshalTableName should have comment or be unexported (golint)
    • Line 375: warning: exported method TableName.Marshal should have comment or be unexported (golint)
    • Line 379: warning: exported function UnmarshalQualifiedTable should have comment or be unexported (golint)
    • Line 385: warning: exported method QualifiedTable.Marshal should have comment or be unexported (golint)
    • Line 389: warning: exported function UnmarshalTableConfig should have comment or be unexported (golint)
    • Line 395: warning: exported method TableConfig.Marshal should have comment or be unexported (golint)
    • Line 399: warning: exported function UnmarshalTableEntry should have comment or be unexported (golint)
    • Line 405: warning: exported method TableEntry.Marshal should have comment or be unexported (golint)
    • Line 409: warning: exported function UnmarshalCustomRootFields should have comment or be unexported (golint)
    • Line 415: warning: exported method CustomRootFields.Marshal should have comment or be unexported (golint)
    • Line 419: warning: exported type CustomColumnNames should have comment or be unexported (golint)
    • Line 421: warning: exported function UnmarshalCustomColumnNames should have comment or be unexported (golint)
    • Line 427: warning: exported method CustomColumnNames.Marshal should have comment or be unexported (golint)
    • Line 431: warning: exported function UnmarshalFunctionName should have comment or be unexported (golint)
    • Line 437: warning: exported method FunctionName.Marshal should have comment or be unexported (golint)
    • Line 441: warning: exported function UnmarshalQualifiedFunction should have comment or be unexported (golint)
    • Line 447: warning: exported method QualifiedFunction.Marshal should have comment or be unexported (golint)
    • Line 451: warning: exported function UnmarshalCustomFunction should have comment or be unexported (golint)
    • Line 457: warning: exported method CustomFunction.Marshal should have comment or be unexported (golint)
    • Line 461: warning: exported function UnmarshalFunctionConfiguration should have comment or be unexported (golint)
    • Line 467: warning: exported method FunctionConfiguration.Marshal should have comment or be unexported (golint)
    • Line 471: warning: exported function UnmarshalObjectRelationship should have comment or be unexported (golint)
    • Line 477: warning: exported method ObjectRelationship.Marshal should have comment or be unexported (golint)
    • Line 481: warning: exported function UnmarshalObjRelUsing should have comment or be unexported (golint)
    • Line 487: warning: exported method ObjRelUsing.Marshal should have comment or be unexported (golint)
    • Line 491: warning: exported function UnmarshalObjRelUsingManualMapping should have comment or be unexported (golint)
    • Line 497: warning: exported method ObjRelUsingManualMapping.Marshal should have comment or be unexported (golint)
    • Line 501: warning: exported function UnmarshalArrayRelationship should have comment or be unexported (golint)
    • Line 507: warning: exported method ArrayRelationship.Marshal should have comment or be unexported (golint)
    • Line 511: warning: exported function UnmarshalArrRelUsing should have comment or be unexported (golint)
    • Line 517: warning: exported method ArrRelUsing.Marshal should have comment or be unexported (golint)
    • Line 521: warning: exported function UnmarshalArrRelUsingFKeyOn should have comment or be unexported (golint)
    • Line 527: warning: exported method ArrRelUsingFKeyOn.Marshal should have comment or be unexported (golint)
    • Line 531: warning: exported function UnmarshalArrRelUsingManualMapping should have comment or be unexported (golint)
    • Line 537: warning: exported method ArrRelUsingManualMapping.Marshal should have comment or be unexported (golint)
    • Line 541: warning: exported type ColumnPresetsExpression should have comment or be unexported (golint)
    • Line 543: warning: exported function UnmarshalColumnPresetsExpression should have comment or be unexported (golint)
    • Line 549: warning: exported method ColumnPresetsExpression.Marshal should have comment or be unexported (golint)
    • Line 553: warning: exported function UnmarshalInsertPermissionEntry should have comment or be unexported (golint)
    • Line 559: warning: exported method InsertPermissionEntry.Marshal should have comment or be unexported (golint)
    • Line 563: warning: exported function UnmarshalInsertPermission should have comment or be unexported (golint)
    • Line 569: warning: exported method InsertPermission.Marshal should have comment or be unexported (golint)
    • Line 573: warning: exported function UnmarshalSelectPermissionEntry should have comment or be unexported (golint)
    • Line 579: warning: exported method SelectPermissionEntry.Marshal should have comment or be unexported (golint)
    • Line 583: warning: exported function UnmarshalSelectPermission should have comment or be unexported (golint)
    • Line 589: warning: exported method SelectPermission.Marshal should have comment or be unexported (golint)
    • Line 593: warning: exported function UnmarshalUpdatePermissionEntry should have comment or be unexported (golint)
    • Line 599: warning: exported method UpdatePermissionEntry.Marshal should have comment or be unexported (golint)
    • Line 603: warning: exported function UnmarshalUpdatePermission should have comment or be unexported (golint)
    • Line 609: warning: exported method UpdatePermission.Marshal should have comment or be unexported (golint)
    • Line 613: warning: exported function UnmarshalDeletePermissionEntry should have comment or be unexported (golint)
    • Line 619: warning: exported method DeletePermissionEntry.Marshal should have comment or be unexported (golint)
    • Line 623: warning: exported function UnmarshalDeletePermission should have comment or be unexported (golint)
    • Line 629: warning: exported method DeletePermission.Marshal should have comment or be unexported (golint)
    • Line 633: warning: exported function UnmarshalComputedField should have comment or be unexported (golint)
    • Line 639: warning: exported method ComputedField.Marshal should have comment or be unexported (golint)
    • Line 643: warning: exported function UnmarshalComputedFieldDefinition should have comment or be unexported (golint)
    • Line 649: warning: exported method ComputedFieldDefinition.Marshal should have comment or be unexported (golint)
    • Line 653: warning: exported function UnmarshalEventTrigger should have comment or be unexported (golint)
    • Line 659: warning: exported method EventTrigger.Marshal should have comment or be unexported (golint)
    • Line 663: warning: exported function UnmarshalEventTriggerDefinition should have comment or be unexported (golint)
    • Line 669: warning: exported method EventTriggerDefinition.Marshal should have comment or be unexported (golint)
    • Line 673: warning: exported function UnmarshalEventTriggerColumns should have comment or be unexported (golint)
    • Line 679: warning: exported method EventTriggerColumns.Marshal should have comment or be unexported (golint)
    • Line 683: warning: exported function UnmarshalOperationSpec should have comment or be unexported (golint)
    • Line 689: warning: exported method OperationSpec.Marshal should have comment or be unexported (golint)
    • Line 693: warning: exported function UnmarshalHeaderFromValue should have comment or be unexported (golint)
    • Line 699: warning: exported method HeaderFromValue.Marshal should have comment or be unexported (golint)
    • Line 703: warning: exported function UnmarshalHeaderFromEnv should have comment or be unexported (golint)
    • Line 709: warning: exported method HeaderFromEnv.Marshal should have comment or be unexported (golint)
    • Line 713: warning: exported function UnmarshalRetryConf should have comment or be unexported (golint)
    • Line 719: warning: exported method RetryConf.Marshal should have comment or be unexported (golint)
    • Line 723: warning: exported function UnmarshalCronTrigger should have comment or be unexported (golint)
    • Line 729: warning: exported method CronTrigger.Marshal should have comment or be unexported (golint)
    • Line 733: warning: exported function UnmarshalRetryConfST should have comment or be unexported (golint)
    • Line 739: warning: exported method RetryConfST.Marshal should have comment or be unexported (golint)
    • Line 743: warning: exported function UnmarshalRemoteSchema should have comment or be unexported (golint)
    • Line 749: warning: exported method RemoteSchema.Marshal should have comment or be unexported (golint)
    • Line 753: warning: exported function UnmarshalRemoteSchemaDef should have comment or be unexported (golint)
    • Line 759: warning: exported method RemoteSchemaDef.Marshal should have comment or be unexported (golint)
    • Line 763: warning: exported function UnmarshalRemoteRelationship should have comment or be unexported (golint)
    • Line 769: warning: exported method RemoteRelationship.Marshal should have comment or be unexported (golint)
    • Line 773: warning: exported function UnmarshalRemoteRelationshipDef should have comment or be unexported (golint)
    • Line 779: warning: exported method RemoteRelationshipDef.Marshal should have comment or be unexported (golint)
    • Line 783: warning: exported type RemoteField should have comment or be unexported (golint)
    • Line 785: warning: exported function UnmarshalRemoteField should have comment or be unexported (golint)
    • Line 791: warning: exported method RemoteField.Marshal should have comment or be unexported (golint)
    • Line 795: warning: exported type InputArguments should have comment or be unexported (golint)
    • Line 797: warning: exported function UnmarshalInputArguments should have comment or be unexported (golint)
    • Line 803: warning: exported method InputArguments.Marshal should have comment or be unexported (golint)
    • Line 807: warning: exported function UnmarshalQueryCollectionEntry should have comment or be unexported (golint)
    • Line 813: warning: exported method QueryCollectionEntry.Marshal should have comment or be unexported (golint)
    • Line 817: warning: exported function UnmarshalQueryCollection should have comment or be unexported (golint)
    • Line 823: warning: exported method QueryCollection.Marshal should have comment or be unexported (golint)
    • Line 827: warning: exported function UnmarshalAllowList should have comment or be unexported (golint)
    • Line 833: warning: exported method AllowList.Marshal should have comment or be unexported (golint)
    • Line 837: warning: exported function UnmarshalCustomTypes should have comment or be unexported (golint)
    • Line 843: warning: exported method CustomTypes.Marshal should have comment or be unexported (golint)
    • Line 847: warning: exported function UnmarshalInputObjectType should have comment or be unexported (golint)
    • Line 853: warning: exported method InputObjectType.Marshal should have comment or be unexported (golint)
    • Line 857: warning: exported function UnmarshalInputObjectField should have comment or be unexported (golint)
    • Line 863: warning: exported method InputObjectField.Marshal should have comment or be unexported (golint)
    • Line 867: warning: exported function UnmarshalObjectType should have comment or be unexported (golint)
    • Line 873: warning: exported method ObjectType.Marshal should have comment or be unexported (golint)
    • Line 877: warning: exported function UnmarshalObjectField should have comment or be unexported (golint)
    • Line 883: warning: exported method ObjectField.Marshal should have comment or be unexported (golint)
    • Line 887: warning: exported function UnmarshalCustomTypeObjectRelationship should have comment or be unexported (golint)
    • Line 893: warning: exported method CustomTypeObjectRelationship.Marshal should have comment or be unexported (golint)
    • Line 897: warning: exported function UnmarshalScalarType should have comment or be unexported (golint)
    • Line 903: warning: exported method ScalarType.Marshal should have comment or be unexported (golint)
    • Line 907: warning: exported function UnmarshalEnumType should have comment or be unexported (golint)
    • Line 913: warning: exported method EnumType.Marshal should have comment or be unexported (golint)
    • Line 917: warning: exported function UnmarshalEnumValue should have comment or be unexported (golint)
    • Line 923: warning: exported method EnumValue.Marshal should have comment or be unexported (golint)
    • Line 927: warning: exported function UnmarshalAction should have comment or be unexported (golint)
    • Line 933: warning: exported method Action.Marshal should have comment or be unexported (golint)
    • Line 937: warning: exported function UnmarshalActionDefinition should have comment or be unexported (golint)
    • Line 943: warning: exported method ActionDefinition.Marshal should have comment or be unexported (golint)
    • Line 947: warning: exported function UnmarshalInputArgument should have comment or be unexported (golint)
    • Line 953: warning: exported method InputArgument.Marshal should have comment or be unexported (golint)
    • Line 957: warning: exported function UnmarshalHasuraMetadataV2 should have comment or be unexported (golint)
    • Line 963: warning: exported method HasuraMetadataV2.Marshal should have comment or be unexported (golint)
    • Line 967: warning: comment on exported type HeaderFromValue should be of the form "HeaderFromValue ..." (with optional leading article) (golint)
    • Line 974: warning: comment on exported type HeaderFromEnv should be of the form "HeaderFromEnv ..." (with optional leading article) (golint)
    • Line 981: warning: comment on exported type ObjectField should be of the form "ObjectField ..." (with optional leading article) (golint)
    • Line 989: warning: comment on exported type HasuraMetadataV2 should be of the form "HasuraMetadataV2 ..." (with optional leading article) (golint)
    • Line 1004: warning: exported type HasuraMetadataV3 should have comment or be unexported (golint)
    • Line 1018: warning: comment on exported type Action should be of the form "Action ..." (with optional leading article) (golint)
    • Line 1027: warning: comment on exported type ActionDefinition should be of the form "ActionDefinition ..." (with optional leading article) (golint)
    • Line 1041: warning: comment on exported type InputArgument should be of the form "InputArgument ..." (with optional leading article) (golint)
    • Line 1048: warning: comment on exported type Header should be of the form "Header ..." (with optional leading article) (golint)
    • Line 1064: warning: comment on exported type AllowList should be of the form "AllowList ..." (with optional leading article) (golint)
    • Line 1070: warning: comment on exported type CronTrigger should be of the form "CronTrigger ..." (with optional leading article) (golint)
    • Line 1083: warning: comment on exported type RetryConfST should be of the form "RetryConfST ..." (with optional leading article) (golint)
    • Line 1094: warning: exported type CustomTypes should have comment or be unexported (golint)
    • Line 1101: warning: comment on exported type EnumType should be of the form "EnumType ..." (with optional leading article) (golint)
    • Line 1109: warning: comment on exported type EnumValue should be of the form "EnumValue ..." (with optional leading article) (golint)
    • Line 1117: warning: comment on exported type InputObjectType should be of the form "InputObjectType ..." (with optional leading article) (golint)
    • Line 1125: warning: comment on exported type InputObjectField should be of the form "InputObjectField ..." (with optional leading article) (golint)
    • Line 1133: warning: comment on exported type ObjectType should be of the form "ObjectType ..." (with optional leading article) (golint)
    • Line 1142: warning: comment on exported type CustomTypeObjectRelationship should be of the form "CustomTypeObjectRelationship ..." (with optional leading article) (golint)
    • Line 1151: warning: exported type QualifiedTable should have comment or be unexported (golint)
    • Line 1156: warning: comment on exported type ScalarType should be of the form "ScalarType ..." (with optional leading article) (golint)
    • Line 1163: warning: comment on exported type CustomFunction should be of the form "CustomFunction ..." (with optional leading article) (golint)
    • Line 1171: warning: comment on exported type FunctionConfiguration should be of the form "FunctionConfiguration ..." (with optional leading article) (golint)
    • Line 1180: warning: exported type QualifiedFunction should have comment or be unexported (golint)
    • Line 1185: warning: comment on exported type QueryCollectionEntry should be of the form "QueryCollectionEntry ..." (with optional leading article) (golint)
    • Line 1193: warning: comment on exported type Definition should be of the form "Definition ..." (with optional leading article) (golint)
    • Line 1198: warning: comment on exported type QueryCollection should be of the form "QueryCollection ..." (with optional leading article) (golint)
    • Line 1205: warning: comment on exported type RemoteSchema should be of the form "RemoteSchema ..." (with optional leading article) (golint)
    • Line 1213: warning: comment on exported type RemoteSchemaDef should be of the form "RemoteSchemaDef ..." (with optional leading article) (golint)
    • Line 1225: warning: comment on exported type TableEntry should be of the form "TableEntry ..." (with optional leading article) (golint)
    • Line 1241: warning: comment on exported type ArrayRelationship should be of the form "ArrayRelationship ..." (with optional leading article) (golint)
    • Line 1249: warning: comment on exported type ArrRelUsing should be of the form "ArrRelUsing ..." (with optional leading article) (golint)
    • Line 1259: warning: comment on exported type ArrRelUsingFKeyOn should be of the form "ArrRelUsingFKeyOn ..." (with optional leading article) (golint)
    • Line 1269: warning: comment on exported type ArrRelUsingManualMapping should be of the form "ArrRelUsingManualMapping ..." (with optional leading article) (golint)
    • Line 1279: warning: comment on exported type ComputedField should be of the form "ComputedField ..." (with optional leading article) (golint)
    • Line 1287: warning: comment on exported type ComputedFieldDefinition should be of the form "ComputedFieldDefinition ..." (with optional leading article) (golint)
    • Line 1297: warning: comment on exported type TableConfig should be of the form "TableConfig ..." (with optional leading article) (golint)
    • Line 1305: warning: comment on exported type CustomRootFields should be of the form "CustomRootFields ..." (with optional leading article) (golint)
    • Line 1322: warning: comment on exported type DeletePermissionEntry should be of the form "DeletePermissionEntry ..." (with optional leading article) (golint)
    • Line 1330: warning: comment on exported type DeletePermission should be of the form "DeletePermission ..." (with optional leading article) (golint)
    • Line 1338: warning: comment on exported type EventTrigger should be of the form "EventTrigger ..." (with optional leading article) (golint)
    • Line 1350: warning: comment on exported type EventTriggerDefinition should be of the form "EventTriggerDefinition ..." (with optional leading article) (golint)
    • Line 1358: warning: comment on exported type OperationSpec should be of the form "OperationSpec ..." (with optional leading article) (golint)
    • Line 1365: warning: comment on exported type RetryConf should be of the form "RetryConf ..." (with optional leading article) (golint)
    • Line 1375: warning: comment on exported type InsertPermissionEntry should be of the form "InsertPermissionEntry ..." (with optional leading article) (golint)
    • Line 1383: warning: comment on exported type InsertPermission should be of the form "InsertPermission ..." (with optional leading article) (golint)
    • Line 1394: warning: comment on exported type ObjectRelationship should be of the form "ObjectRelationship ..." (with optional leading article) (golint)
    • Line 1402: warning: comment on exported type ObjRelUsing should be of the form "ObjRelUsing ..." (with optional leading article) (golint)
    • Line 1412: warning: comment on exported type ObjRelUsingManualMapping should be of the form "ObjRelUsingManualMapping ..." (with optional leading article) (golint)
    • Line 1422: warning: comment on exported type RemoteRelationship should be of the form "RemoteRelationship ..." (with optional leading article) (golint)
    • Line 1429: warning: comment on exported type RemoteRelationshipDef should be of the form "RemoteRelationshipDef ..." (with optional leading article) (golint)
    • Line 1436: warning: exported type RemoteFieldValue should have comment or be unexported (golint)
    • Line 1441: warning: comment on exported type SelectPermissionEntry should be of the form "SelectPermissionEntry ..." (with optional leading article) (golint)
    • Line 1449: warning: comment on exported type SelectPermission should be of the form "SelectPermission ..." (with optional leading article) (golint)
    • Line 1461: warning: comment on exported type UpdatePermissionEntry should be of the form "UpdatePermissionEntry ..." (with optional leading article) (golint)
    • Line 1469: warning: comment on exported type UpdatePermission should be of the form "UpdatePermission ..." (with optional leading article) (golint)
    • Line 1480: warning: exported type ActionDefinitionType should have comment or be unexported (golint)
    • Line 1483: warning: exported const Mutation should have comment (or a comment on this block) or be unexported (golint)
    • Line 1487: warning: comment on exported type CustomTypeObjectRelationshipType should be of the form "CustomTypeObjectRelationshipType ..." (with optional leading article) (golint)
    • Line 1491: warning: exported const Array should have comment (or a comment on this block) or be unexported (golint)
    • Line 1495: warning: exported type Columns should have comment or be unexported (golint)
    • Line 1498: warning: exported const Empty should have comment (or a comment on this block) or be unexported (golint)
    • Line 1501: warning: exported type TableName should have comment or be unexported (golint)
    • Line 1506: warning: exported method TableName.UnmarshalJSON should have comment or be unexported (golint)
    • Line 1506: warning: receiver name x should be consistent with previous receiver name r for TableName (golint)
    • Line 1519: warning: exported method TableName.MarshalJSON should have comment or be unexported (golint)
    • Line 1519: warning: receiver name x should be consistent with previous receiver name r for TableName (golint)
    • Line 1523: warning: exported type FunctionName should have comment or be unexported (golint)
    • Line 1528: warning: exported method FunctionName.UnmarshalJSON should have comment or be unexported (golint)
    • Line 1528: warning: receiver name x should be consistent with previous receiver name r for FunctionName (golint)
    • Line 1541: warning: exported method FunctionName.MarshalJSON should have comment or be unexported (golint)
    • Line 1541: warning: receiver name x should be consistent with previous receiver name r for FunctionName (golint)
    • Line 1545: warning: exported type Filter should have comment or be unexported (golint)
    • Line 1551: warning: exported method Filter.UnmarshalJSON should have comment or be unexported (golint)
    • Line 1562: warning: exported method Filter.MarshalJSON should have comment or be unexported (golint)
    • Line 1566: warning: exported type EventTriggerColumns should have comment or be unexported (golint)
    • Line 1571: warning: exported method EventTriggerColumns.UnmarshalJSON should have comment or be unexported (golint)
    • Line 1571: warning: receiver name x should be consistent with previous receiver name r for EventTriggerColumns (golint)
    • Line 1583: warning: exported method EventTriggerColumns.MarshalJSON should have comment or be unexported (golint)
    • Line 1583: warning: receiver name x should be consistent with previous receiver name r for EventTriggerColumns (golint)
    • cli/cmd/execute.go
    • Line 49: warning: exported type ExecResult should have comment or be unexported (golint)
    • Line 154: warning: context.Context should be the first parameter of a function (golint)
    • Line 154: warning: exported function InspectExecResp should have comment or be unexported (golint)
    • cli/cmd/templates.go
    • Line 49: warning: exported type Entity should have comment or be unexported (golint)
    • Line 86: warning: exported type Template should have comment or be unexported (golint)
    • cli/nhost/nhost.go
    • Line 35: warning: exported method Project.MarshalYAML should have comment or be unexported (golint)
    • Line 39: warning: exported method Project.MarshalJSON should have comment or be unexported (golint)
    • Line 43: warning: exported method Configuration.MarshalYAML should have comment or be unexported (golint)
    • Line 47: warning: exported method Configuration.MarshalJSON should have comment or be unexported (golint)
    • Line 51: warning: exported method Configuration.Save should have comment or be unexported (golint)
    • Line 51: warning: receiver name config should be consistent with previous receiver name r for Configuration (golint)
    • Line 78: warning: comment on exported function GetDotNhost should be of the form "GetDotNhost ..." (golint)
    • Line 93: warning: exported function Env should have comment or be unexported (golint)
    • Line 111: warning: exported function Exists should have comment or be unexported (golint)
    • Line 121: warning: exported function Info should have comment or be unexported (golint)
    • Line 136: warning: comment on exported method Release.Asset should be of the form "Asset ..." (golint)
    • Line 157: warning: comment on exported function LatestRelease should be of the form "LatestRelease ..." (golint)
    • Line 179: warning: comment on exported function Servers should be of the form "Servers ..." (golint)
    • Line 213: warning: exported method Configuration.Wrap should have comment or be unexported (golint)
    • Line 213: warning: receiver name c should be consistent with previous receiver name r for Configuration (golint)
    • Line 359: warning: comment on exported method Service.GetAddress should be of the form "GetAddress ..." (golint)
    • Line 370: warning: comment on exported method Service.Run should be of the form "Run ..." (golint)
    • Line 371: warning: context.Context should be the first parameter of a function (golint)
    • Line 383: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 424: warning: comment on exported method Service.Inspect should be of the form "Inspect ..." (golint)
    • Line 426: warning: context.Context should be the first parameter of a function (golint)
    • Line 446: warning: comment on exported method Service.Exists should be of the form "Exists ..." (golint)
    • Line 447: warning: context.Context should be the first parameter of a function (golint)
    • Line 470: warning: exported method Service.Healthz should have comment or be unexported (golint)
    • Line 480: warning: comment on exported method Service.IssueProxy should be of the form "IssueProxy ..." (golint)
    • Line 483: warning: context.Context should be the first parameter of a function (golint)
    • Line 547: warning: exported method Service.InitConfig should have comment or be unexported (golint)
    • Line 570: warning: comment on exported method Service.Activate should be of the form "Activate ..." (golint)
    • Line 579: warning: comment on exported method Service.Deactivate should be of the form "Deactivate ..." (golint)
    • Line 588: warning: comment on exported method Service.Stop should be of the form "Stop ..." (golint)
    • Line 589: warning: context.Context should be the first parameter of a function (golint)
    • Line 600: warning: comment on exported method Service.Remove should be of the form "Remove ..." (golint)
    • Line 601: warning: context.Context should be the first parameter of a function (golint)
    • Line 617: warning: exported method Configuration.Init should have comment or be unexported (golint)
    • Line 617: warning: receiver name config should be consistent with previous receiver name r for Configuration (golint)
    • Line 905: warning: comment on exported method Service.Logs should be of the form "Logs ..." (golint)
    • Line 907: warning: context.Context should be the first parameter of a function (golint)
    • Line 931: warning: context.Context should be the first parameter of a function (golint)
    • Line 931: warning: exported method Service.Exec should have comment or be unexported (golint)
    • Line 942: warning: comment on exported function GenerateConfig should be of the form "GenerateConfig ..." (golint)
    • Line 1145: warning: exported method Session.Spawn should have comment or be unexported (golint)
    • Line 1169: warning: comment on exported function LoadCredentials should be of the form "LoadCredentials ..." (golint)
    • cli/nhost/utils.go
    • Line 30: warning: exported function ParseEnvVarsFromConfig should have comment or be unexported (golint)
    • Line 52: warning: exported function GetPort should have comment or be unexported (golint)
    • Line 73: warning: exported function PortAvaiable should have comment or be unexported (golint)
    • Line 85: warning: exported function GetContainerName should have comment or be unexported (golint)
    • Line 107: warning: exported function GetCurrentBranch should have comment or be unexported (golint)
    • cli/hasura/migration.go
    • Line 27: warning: exported type Migration should have comment or be unexported (golint)
    • Line 36: warning: exported method Migration.Init should have comment or be unexported (golint)
    • Line 50: warning: exported method Migration.Format should have comment or be unexported (golint)
    • Line 151: warning: exported method Migration.AddExtensions should have comment or be unexported (golint)
    • cli/hasura/pgdump.go
    • Line 10: warning: exported type PGDumpRequest should have comment or be unexported (golint)
    • Line 16: warning: exported method PGDumpRequest.Marshal should have comment or be unexported (golint)
    • Line 20: warning: comment on exported method Client.PGDump should be of the form "PGDump ..." (golint)
    • cli/cmd/dev.go
    • Line 130: warning: don't use underscores in Go names; var end_waiter should be endWaiter (golint)
    • Line 326: warning: exported type Printer should have comment or be unexported (golint)
    • cli/nhost/vars.go
    • Line 13: warning: exported var DOMAIN should have comment or be unexported (golint)
    • Line 16: warning: comment on exported var WORKING_DIR should be of the form "WORKING_DIR ..." (golint)
    • Line 21: warning: comment on exported var SERVICES should be of the form "SERVICES ..." (golint)
    • Line 24: warning: comment on exported var HOME should be of the form "HOME ..." (golint)
    • Line 27: warning: comment on exported var ROOT should be of the form "ROOT ..." (golint)
    • Line 30: warning: comment on exported var AUTH_PATH should be of the form "AUTH_PATH ..." (golint)
    • Line 33: warning: comment on exported var MIGRATIONS_DIR should be of the form "MIGRATIONS_DIR ..." (golint)
    • Line 36: warning: comment on exported var METADATA_DIR should be of the form "METADATA_DIR ..." (golint)
    • Line 39: warning: comment on exported var DATABASE should be of the form "DATABASE ..." (golint)
    • Line 42: warning: comment on exported var SEEDS_DIR should be of the form "SEEDS_DIR ..." (golint)
    • Line 45: warning: comment on exported var WEB_DIR should be of the form "WEB_DIR ..." (golint)
    • Line 48: warning: comment on exported var API_DIR should be of the form "API_DIR ..." (golint)
    • Line 51: warning: comment on exported var EMAILS_DIR should be of the form "EMAILS_DIR ..." (golint)
    • Line 54: warning: comment on exported var LEGACY_DIR should be of the form "LEGACY_DIR ..." (golint)
    • Line 57: warning: comment on exported var GIT_DIR should be of the form "GIT_DIR ..." (golint)
    • Line 60: warning: comment on exported var REMOTE should be of the form "REMOTE ..." (golint)
    • Line 63: warning: comment on exported var ENV_FILE should be of the form "ENV_FILE ..." (golint)
    • Line 66: warning: comment on exported var CONFIG_PATH should be of the form "CONFIG_PATH ..." (golint)
    • Line 69: warning: comment on exported var GITIGNORE should be of the form "GITIGNORE ..." (golint)
    • Line 72: warning: comment on exported var INFO_PATH should be of the form "INFO_PATH ..." (golint)
    • Line 75: warning: comment on exported var NODE_MODULES_PATH should be of the form "NODE_MODULES_PATH ..." (golint)
    • Line 78: warning: comment on exported var REPOSITORY should be of the form "REPOSITORY ..." (golint)
    • Line 81: warning: comment on exported var PREFIX should be of the form "PREFIX ..." (golint)
    • Line 85: warning: comment on exported var JWT_KEY should be of the form "JWT_KEY ..." (golint)
    • Line 88: warning: comment on exported var WEBHOOK_SECRET should be of the form "WEBHOOK_SECRET ..." (golint)
    • Line 91: warning: comment on exported var ADMIN_SECRET should be of the form "ADMIN_SECRET ..." (golint)
    • Line 96: warning: exported const API_VERSION should have comment (or a comment on this block) or be unexported (golint)
    • cli/watcher/watcher.go
    • Line 12: warning: exported type Operation should have comment or be unexported (golint)
    • Line 14: warning: exported type Watcher should have comment or be unexported (golint)
    • Line 29: warning: comment on exported method Watcher.Register should be of the form "Register ..." (golint)
    • Line 40: warning: comment on exported method Watcher.Registered should be of the form "Registered ..." (golint)
    • Line 53: warning: comment on exported function New should be of the form "New ..." (golint)
    • Line 72: warning: comment on exported method Watcher.Start should be of the form "Start ..." (golint)
    • cli/functions/functions.go
    • Line 19: warning: exported method Function.BuildNodePackage should have comment or be unexported (golint)
    • Line 56: warning: exported method Function.BuildNodeServer should have comment or be unexported (golint)
    • Line 104: warning: exported method Function.Prepare should have comment or be unexported (golint)
    • Line 221: warning: exported method Function.BuildGoPlugin should have comment or be unexported (golint)
    • cli/cmd/functions.go
    • Line 52: warning: exported type GoPlugin should have comment or be unexported (golint)
    • Line 65: warning: don't use underscores in Go names; var end_waiter should be endWaiter (golint)
    • Line 92: warning: exported function ServeFuncs should have comment or be unexported (golint)
    • cli/hasura/commonmetadataops.go
    • Line 7: warning: comment on exported type CommonMetadataOperations should be of the form "CommonMetadataOperations ..." (with optional leading article) (golint)
    • Line 19: warning: exported type V2ReplaceMetadataArgs should have comment or be unexported (golint)
    • Line 24: warning: exported type V2ReplaceMetadataResponse should have comment or be unexported (golint)
    • Line 29: warning: exported type GetInconsistentMetadataResponse should have comment or be unexported (golint)
    • cli/util/util.go
    • Line 19: warning: comment on exported const ErrDockerNotFound should be of the form "ErrDockerNotFound ..." (golint)
    • Line 21: warning: exported const ErrServicesNotFound should have comment (or a comment on this block) or be unexported (golint)
    • Line 23: warning: comment on exported const InfoDockerDownload should be of the form "InfoDockerDownload ..." (golint)
    • Line 28: warning: comment on exported function Contains should be of the form "Contains ..." (golint)
    • Line 38: warning: comment on exported function PathExists should be of the form "PathExists ..." (golint)
    • Line 44: warning: comment on exported function Rel should be of the form "Rel ..." (golint)
    • Line 54: warning: comment on exported function DeletePath should be of the form "DeletePath ..." (golint)
    • Line 63: warning: comment on exported function DeleteAllPaths should be of the form "DeleteAllPaths ..." (golint)
    • cli/hasura/client.go
    • Line 9: warning: exported type RequestBody should have comment or be unexported (golint)
    • Line 15: warning: exported type Client should have comment or be unexported (golint)
    • Line 22: warning: exported method RequestBody.Marshal should have comment or be unexported (golint)
    • Line 26: warning: exported method Client.Request should have comment or be unexported (golint)
    • Line 46: warning: comment on exported method Client.Init should be of the form "Init ..." (golint)
    • cli/hasura/types.go
    • Line 4: warning: comment on exported type Response should be of the form "Response ..." (with optional leading article) (golint)
    • cli/nhost/types.go
    • Line 11: warning: comment on exported type User should be of the form "User ..." (with optional leading article) (golint)
    • Line 18: warning: exported type WorkspaceMember should have comment or be unexported (golint)
    • Line 23: warning: exported type Workspace should have comment or be unexported (golint)
    • Line 29: warning: exported type App should have comment or be unexported (golint)
    • Line 38: warning: exported type EnvVar should have comment or be unexported (golint)
    • Line 50: warning: comment on exported type Response should be of the form "Response ..." (with optional leading article) (golint)
    • Line 60: warning: comment on exported type TeamData should be of the form "TeamData ..." (with optional leading article) (golint)
    • Line 65: warning: exported type Team should have comment or be unexported (golint)
    • Line 71: warning: comment on exported type Project should be of the form "Project ..." (with optional leading article) (golint)
    • Line 92: warning: comment on exported type Domains should be of the form "Domains ..." (with optional leading article) (golint)
    • Line 105: warning: comment on exported type Configuration should be of the form "Configuration ..." (with optional leading article) (golint)
    • Line 116: warning: comment on exported type Authentication should be of the form "Authentication ..." (with optional leading article) (golint)
    • Line 127: warning: comment on exported type Service should be of the form "Service ..." (with optional leading article) (golint)
    • Line 155: warning: comment on exported type Information should be of the form "Information ..." (with optional leading article) (golint)
    • Line 162: warning: comment on exported type Server should be of the form "Server ..." (with optional leading article) (golint)
    • Line 170: warning: comment on exported type Credentials should be of the form "Credentials ..." (with optional leading article) (golint)
    • Line 176: warning: comment on exported type Release should be of the form "Release ..." (with optional leading article) (golint)
    • Line 188: warning: comment on exported type Asset should be of the form "Asset ..." (with optional leading article) (golint)
    • Line 198: warning: comment on exported type Route should be of the form "Route ..." (with optional leading article) (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell95%

Misspell Finds commonly misspelled English words