Advertisement
Guest User

Untitled

a guest
Feb 8th, 2016
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.20 KB | None | 0 0
  1. nueno-mbp:contrail-go-api[list_mock]$ go get -u github.com/golang/lint/golint
  2. nueno-mbp:contrail-go-api[list_mock]$ golint
  3. client.go:36:6: exported type Authenticator should have comment or be unexported
  4. client.go:40:6: exported type NopAuthenticator should have comment or be unexported
  5. client.go:43:1: exported method NopAuthenticator.AddAuthentication should have comment or be unexported
  6. client.go:48:6: type ApiClient should be APIClient
  7. client.go:58:32: don't use underscores in Go names; interface method parameter parent_id should be parentID
  8. client.go:60:38: don't use underscores in Go names; interface method parameter parent_id should be parentID
  9. client.go:63:1: comment on exported type Client should be of the form "Client ..." (with optional leading article)
  10. client.go:71:1: comment on exported type ListResult should be of the form "ListResult ..." (with optional leading article)
  11. client.go:73:2: don't use underscores in Go names; struct field Fq_name should be FqName
  12. client.go:75:2: struct field Uuid should be UUID
  13. client.go:82:1: comment on exported function NewClient should be of the form "NewClient ..."
  14. client.go:95:1: exported method Client.GetServer should have comment or be unexported
  15. client.go:99:1: exported method Client.SetAuthenticator should have comment or be unexported
  16. client.go:119:1: receiver name c should be consistent with previous receiver name client for Client
  17. client.go:133:1: receiver name c should be consistent with previous receiver name client for Client
  18. client.go:147:1: receiver name c should be consistent with previous receiver name client for Client
  19. client.go:159:1: receiver name c should be consistent with previous receiver name client for Client
  20. client.go:174:1: receiver name c should be consistent with previous receiver name client for Client
  21. client.go:178:2: var objJson should be objJSON
  22. client.go:183:6: var rawJson should be rawJSON
  23. client.go:218:1: receiver name c should be consistent with previous receiver name client for Client
  24. client.go:246:12: should omit type reflect.Type from declaration of var xtype; it will be inferred from the right-hand side
  25. client.go:257:1: comment on exported method Client.ReadListResult should be of the form "ReadListResult ..."
  26. client.go:258:1: receiver name c should be consistent with previous receiver name client for Client
  27. client.go:263:1: comment on exported method Client.ReadReference should be of the form "ReadReference ..."
  28. client.go:264:1: receiver name c should be consistent with previous receiver name client for Client
  29. client.go:276:1: receiver name c should be consistent with previous receiver name client for Client
  30. client.go:277:2: var objJson should be objJSON
  31. client.go:281:6: var rawJson should be rawJSON
  32. client.go:314:1: exported method Client.DeleteByUuid should have comment or be unexported
  33. client.go:314:1: receiver name c should be consistent with previous receiver name client for Client
  34. client.go:314:18: method DeleteByUuid should be DeleteByUUID
  35. client.go:335:1: receiver name c should be consistent with previous receiver name client for Client
  36. client.go:353:1: comment on exported method Client.FindByUuid should be of the form "FindByUuid ..."
  37. client.go:354:1: receiver name c should be consistent with previous receiver name client for Client
  38. client.go:354:18: method FindByUuid should be FindByUUID
  39. client.go:360:1: exported method Client.UuidByName should have comment or be unexported
  40. client.go:360:1: receiver name c should be consistent with previous receiver name client for Client
  41. client.go:360:18: method UuidByName should be UUIDByName
  42. client.go:364:3: don't use underscores in Go names; struct field Fq_name should be FqName
  43. client.go:388:3: struct field Uuid should be UUID
  44. client.go:398:1: exported method Client.FQNameByUuid should have comment or be unexported
  45. client.go:398:1: receiver name c should be consistent with previous receiver name client for Client
  46. client.go:398:18: method FQNameByUuid should be FQNameByUUID
  47. client.go:400:3: struct field Uuid should be UUID
  48. client.go:426:3: don't use underscores in Go names; struct field Fq_name should be FqName
  49. client.go:432:1: comment on exported method Client.FindByName should be of the form "FindByName ..."
  50. client.go:434:1: receiver name c should be consistent with previous receiver name client for Client
  51. client.go:444:1: comment on exported method Client.ListByParent should be of the form "ListByParent ..."
  52. client.go:445:1: receiver name c should be consistent with previous receiver name client for Client
  53. client.go:446:19: don't use underscores in Go names; method parameter parent_id should be parentID
  54. client.go:487:1: exported method Client.List should have comment or be unexported
  55. client.go:487:1: receiver name c should be consistent with previous receiver name client for Client
  56. client.go:491:1: exported method Client.ListDetailByParent should have comment or be unexported
  57. client.go:491:1: receiver name c should be consistent with previous receiver name client for Client
  58. client.go:492:19: don't use underscores in Go names; method parameter parent_id should be parentID
  59. client.go:539:12: should omit type reflect.Type from declaration of var xtype; it will be inferred from the right-hand side
  60. client.go:566:1: exported method Client.ListDetail should have comment or be unexported
  61. client.go:566:1: receiver name c should be consistent with previous receiver name client for Client
  62. client.go:571:1: comment on exported method Client.GetField should be of the form "GetField ..."
  63. client.go:572:1: receiver name c should be consistent with previous receiver name client for Client
  64. client.go:599:1: comment on exported method Client.UpdateReference should be of the form "UpdateReference ..."
  65. client.go:600:1: receiver name c should be consistent with previous receiver name client for Client
  66. client.go:623:1: exported function RegisterTypeMap should have comment or be unexported
  67. keystone.go:15:6: exported type KeystoneClient should have comment or be unexported
  68. keystone.go:16:2: don't use underscores in Go names; struct field os_auth_url should be osAuthURL
  69. keystone.go:17:2: don't use underscores in Go names; struct field os_tenant_name should be osTenantName
  70. keystone.go:18:2: don't use underscores in Go names; struct field os_username should be osUsername
  71. keystone.go:19:2: don't use underscores in Go names; struct field os_password should be osPassword
  72. keystone.go:20:2: don't use underscores in Go names; struct field os_token should be osToken
  73. keystone.go:25:1: comment on exported type KeystoneToken should be of the form "KeystoneToken ..." (with optional leading article)
  74. keystone.go:27:2: struct field Id should be ID
  75. keystone.go:30:3: struct field Id should be ID
  76. keystone.go:35:2: don't use underscores in Go names; struct field Issued_At should be IssuedAt
  77. keystone.go:38:1: exported function NewKeystoneClient should have comment or be unexported
  78. keystone.go:38:24: don't use underscores in Go names; func parameter auth_url should be authURL
  79. keystone.go:38:34: don't use underscores in Go names; func parameter tenant_name should be tenantName
  80. keystone.go:49:1: comment on exported method KeystoneClient.Authenticate should be of the form "Authenticate ..."
  81. keystone.go:55:5: struct field Id should be ID
  82. keystone.go:74:5: struct field Id should be ID
  83. keystone.go:134:1: comment on exported method KeystoneClient.AddAuthentication should be of the form "AddAuthentication ..."
  84. object.go:16:1: comment on exported type IObject should be of the form "IObject ..." (with optional leading article)
  85. object.go:38:2: don't use underscores in Go names; struct field fq_name should be fqName
  86. object.go:42:2: don't use underscores in Go names; struct field parent_href should be parentHref
  87. object.go:43:2: don't use underscores in Go names; struct field parent_type should be parentType
  88. object.go:44:2: don't use underscores in Go names; struct field parent_uuid should be parentUUID
  89. object.go:52:1: comment on exported method ObjectBase.VSetName should be of the form "VSetName ..."
  90. object.go:74:1: exported method ObjectBase.VSetParent should have comment or be unexported
  91. object.go:81:1: comment on exported method ObjectBase.GetName should be of the form "GetName ..."
  92. object.go:86:1: comment on exported method ObjectBase.GetUuid should be of the form "GetUuid ..."
  93. object.go:87:24: method GetUuid should be GetUUID
  94. object.go:91:1: comment on exported method ObjectBase.SetUuid should be of the form "SetUuid ..."
  95. object.go:92:24: method SetUuid should be SetUUID
  96. object.go:99:1: comment on exported method ObjectBase.GetHref should be of the form "GetHref ..."
  97. object.go:104:1: comment on exported method ObjectBase.SetFQName should be of the form "SetFQName ..."
  98. object.go:111:1: exported method ObjectBase.GetFQName should have comment or be unexported
  99. object.go:115:1: exported method ObjectBase.GetParentType should have comment or be unexported
  100. object.go:119:1: exported method ObjectBase.SetClient should have comment or be unexported
  101. object.go:123:1: exported method ObjectBase.IsTransient should have comment or be unexported
  102. object.go:127:1: exported method ObjectBase.GetField should have comment or be unexported
  103. object.go:131:1: exported method ObjectBase.UnmarshalCommon should have comment or be unexported
  104. object.go:163:1: comment on exported method ObjectBase.MarshalId should be of the form "MarshalId ..."
  105. object.go:164:24: method MarshalId should be MarshalID
  106. object.go:184:1: comment on exported method ObjectBase.MarshalCommon should be of the form "MarshalCommon ..."
  107. object.go:210:6: type referenceUuidSorter should be referenceUUIDSorter
  108. object.go:259:1: comment on exported method ObjectBase.UpdateReference should be of the form "UpdateReference ..."
  109. object_test.go:164:3: should replace t.Error(fmt.Sprintf(...)) with t.Errorf(...)
  110. object_test.go:229:3: should replace t.Error(fmt.Sprintf(...)) with t.Errorf(...)
  111. reference.go:7:6: exported type LinkAttribute should have comment or be unexported
  112. reference.go:14:2: struct field Uuid should be UUID
  113. reference.go:19:6: exported type ReferenceList should have comment or be unexported
  114. reference.go:21:6: exported type ReferencePair should have comment or be unexported
  115. reference.go:26:1: comment on exported type ReferenceUpdateMsg should be of the form "ReferenceUpdateMsg ..." (with optional leading article)
  116. reference.go:31:2: struct field Uuid should be UUID
  117. reference.go:35:2: struct field RefUuid should be RefUUID
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement