Preparing report...

Report for github.com/f5devcentral/go-bigip

A    Great!    Found 16 issues across 19 files

Tweet

gofmt94%

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!


golint15%

Golint is a linter for Go source code.

    • go-bigip/f5teem/config.go
    • Line 30: warning: exported type TeemObject should have comment or be unexported (golint)
    • Line 43: warning: exported type AssetInfo should have comment or be unexported (golint)
    • go-bigip/bigiq.go
    • Line 26: warning: exported type BigiqDevice should have comment or be unexported (golint)
    • Line 33: warning: exported type DeviceRef should have comment or be unexported (golint)
    • Line 36: warning: exported type ManagedDevice should have comment or be unexported (golint)
    • Line 40: warning: exported type UnmanagedDevice should have comment or be unexported (golint)
    • Line 81: warning: exported type MembersList should have comment or be unexported (golint)
    • Line 103: warning: exported type LicenseParam should have comment or be unexported (golint)
    • Line 119: warning: exported type BigiqAs3AllTaskType should have comment or be unexported (golint)
    • Line 123: warning: exported type BigiqAs3TaskType should have comment or be unexported (golint)
    • Line 129: warning: exported type BigiqResults should have comment or be unexported (golint)
    • Line 138: warning: exported method BigIP.PostLicense should have comment or be unexported (golint)
    • Line 150: warning: exported method BigIP.GetLicenseStatus should have comment or be unexported (golint)
    • Line 169: warning: exported method BigIP.GetDeviceLicenseStatus should have comment or be unexported (golint)
    • Line 178: warning: exported method BigIP.GetRegPools should have comment or be unexported (golint)
    • Line 187: warning: exported method BigIP.GetPoolType should have comment or be unexported (golint)
    • Line 219: warning: exported method BigIP.GetManagedDevices should have comment or be unexported (golint)
    • Line 228: warning: exported method BigIP.GetDeviceId should have comment or be unexported (golint)
    • Line 244: warning: exported method BigIP.GetRegkeyPoolId should have comment or be unexported (golint)
    • Line 258: warning: exported method BigIP.RegkeylicenseAssign should have comment or be unexported (golint)
    • Line 271: warning: exported method BigIP.GetMemberStatus should have comment or be unexported (golint)
    • Line 286: warning: exported method BigIP.RegkeylicenseRevoke should have comment or be unexported (golint)
    • Line 300: warning: exported method BigIP.LicenseRevoke should have comment or be unexported (golint)
    • Line 314: warning: error should be the last type when returning multiple items (golint)
    • Line 314: warning: exported method BigIP.PostAs3Bigiq should have comment or be unexported (golint)
    • Line 320: warning: don't use underscores in Go names; var tenant_list should be tenantList (golint)
    • Line 320: warning: don't use underscores in Go names; var tenant_count should be tenantCount (golint)
    • Line 325: warning: don't use underscores in Go names; var success_count should be successCount (golint)
    • Line 339: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 342: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 349: warning: exported method BigIP.GetAs3Bigiq should have comment or be unexported (golint)
    • Line 446: warning: error should be the last type when returning multiple items (golint)
    • Line 446: warning: exported method BigIP.DeleteAs3Bigiq should have comment or be unexported (golint)
    • go-bigip/gtm.go
    • Line 1: warning: package comment should be of the form "Package bigip ..." (golint)
    • Line 18: warning: exported type Datacenters should have comment or be unexported (golint)
    • Line 22: warning: exported type Datacenter should have comment or be unexported (golint)
    • Line 26: warning: don't use underscores in Go names; struct field App_service should be AppService (golint)
    • Line 29: warning: don't use underscores in Go names; struct field Prober_pool should be ProberPool (golint)
    • Line 32: warning: exported type Gtmmonitors should have comment or be unexported (golint)
    • Line 36: warning: exported type Gtmmonitor should have comment or be unexported (golint)
    • Line 38: warning: don't use underscores in Go names; struct field Defaults_from should be DefaultsFrom (golint)
    • Line 40: warning: don't use underscores in Go names; struct field Probe_timeout should be ProbeTimeout (golint)
    • Line 45: warning: exported type Servers should have comment or be unexported (golint)
    • Line 49: warning: exported type Server should have comment or be unexported (golint)
    • Line 53: warning: don't use underscores in Go names; struct field Virtual_server_discovery should be VirtualServerDiscovery (golint)
    • Line 56: warning: don't use underscores in Go names; struct field GTMVirtual_Server should be GTMVirtualServer (golint)
    • Line 63: warning: don't use underscores in Go names; struct field Virtual_server_discovery should be VirtualServerDiscovery (golint)
    • Line 68: warning: don't use underscores in Go names; struct field GTMVirtual_Server should be GTMVirtualServer (golint)
    • Line 73: warning: exported method Server.MarshalJSON should have comment or be unexported (golint)
    • Line 89: warning: exported method Server.UnmarshalJSON should have comment or be unexported (golint)
    • Line 106: warning: exported type ServerAddressess should have comment or be unexported (golint)
    • Line 110: warning: exported type ServerAddresses should have comment or be unexported (golint)
    • Line 112: warning: don't use underscores in Go names; struct field Device_name should be DeviceName (golint)
    • Line 116: warning: exported type VSrecords should have comment or be unexported (golint)
    • Line 120: warning: exported type VSrecord should have comment or be unexported (golint)
    • Line 125: warning: don't use underscores in Go names; type Pool_as should be PoolAs (golint)
    • Line 125: warning: exported type Pool_as should have comment or be unexported (golint)
    • Line 126: warning: don't use underscores in Go names; struct field Pool_as should be PoolAs (golint)
    • Line 129: warning: don't use underscores in Go names; type Pool_a should be PoolA (golint)
    • Line 129: warning: exported type Pool_a should have comment or be unexported (golint)
    • Line 132: warning: don't use underscores in Go names; struct field Load_balancing_mode should be LoadBalancingMode (golint)
    • Line 133: warning: don't use underscores in Go names; struct field Max_answers_returned should be MaxAnswersReturned (golint)
    • Line 134: warning: don't use underscores in Go names; struct field Alternate_mode should be AlternateMode (golint)
    • Line 135: warning: don't use underscores in Go names; struct field Fallback_ip should be FallbackIP (golint)
    • Line 136: warning: don't use underscores in Go names; struct field Fallback_mode should be FallbackMode (golint)
    • Line 146: warning: don't use underscores in Go names; const uriPool_a should be uriPoolA (golint)
    • Line 149: warning: exported method BigIP.Datacenters should have comment or be unexported (golint)
    • Line 160: warning: exported method BigIP.CreateDatacenter should have comment or be unexported (golint)
    • Line 160: warning: don't use underscores in Go names; method parameter app_service should be appService (golint)
    • Line 160: warning: don't use underscores in Go names; method parameter prober_pool should be proberPool (golint)
    • Line 173: warning: exported method BigIP.ModifyDatacenter should have comment or be unexported (golint)
    • Line 177: warning: exported method BigIP.DeleteDatacenter should have comment or be unexported (golint)
    • Line 181: warning: exported method BigIP.Gtmmonitors should have comment or be unexported (golint)
    • Line 191: warning: exported method BigIP.CreateGtmmonitor should have comment or be unexported (golint)
    • Line 191: warning: don't use underscores in Go names; method parameter defaults_from should be defaultsFrom (golint)
    • Line 203: warning: exported method BigIP.ModifyGtmmonitor should have comment or be unexported (golint)
    • Line 207: warning: exported method BigIP.DeleteGtmmonitor should have comment or be unexported (golint)
    • Line 211: warning: exported method BigIP.CreateGtmserver should have comment or be unexported (golint)
    • Line 216: warning: comment on exported method BigIP.UpdateGtmserver should be of the form "UpdateGtmserver ..." (golint)
    • Line 221: warning: comment on exported method BigIP.DeleteGtmserver should be of the form "DeleteGtmserver ..." (golint)
    • Line 226: warning: exported method BigIP.GetGtmserver should have comment or be unexported (golint)
    • Line 239: warning: exported method BigIP.CreatePool_a should have comment or be unexported (golint)
    • Line 239: warning: don't use underscores in Go names; method CreatePool_a should be CreatePoolA (golint)
    • Line 239: warning: don't use underscores in Go names; method parameter load_balancing_mode should be loadBalancingMode (golint)
    • Line 239: warning: don't use underscores in Go names; method parameter max_answers_returned should be maxAnswersReturned (golint)
    • Line 239: warning: don't use underscores in Go names; method parameter alternate_mode should be alternateMode (golint)
    • Line 239: warning: don't use underscores in Go names; method parameter fallback_ip should be fallbackIP (golint)
    • Line 239: warning: don't use underscores in Go names; method parameter fallback_mode should be fallbackMode (golint)
    • Line 254: warning: exported method BigIP.ModifyPool_a should have comment or be unexported (golint)
    • Line 254: warning: don't use underscores in Go names; method ModifyPool_a should be ModifyPoolA (golint)
    • Line 258: warning: exported method BigIP.Pool_as should have comment or be unexported (golint)
    • Line 258: warning: don't use underscores in Go names; method Pool_as should be PoolAs (golint)
    • Line 259: warning: don't use underscores in Go names; var pool_a should be poolA (golint)
    • go-bigip/partitions.go
    • Line 1: warning: package comment should be of the form "Package bigip ..." (golint)
    • Line 18: warning: exported type TMPartition should have comment or be unexported (golint)
    • go-bigip/sys.go
    • Line 1: warning: package comment should be of the form "Package bigip ..." (golint)
    • Line 20: warning: exported type Version should have comment or be unexported (golint)
    • Line 42: warning: exported type NTPs should have comment or be unexported (golint)
    • Line 46: warning: exported type NTP should have comment or be unexported (golint)
    • Line 52: warning: exported type BigipCommand should have comment or be unexported (golint)
    • Line 58: warning: exported type BigipCmdResp should have comment or be unexported (golint)
    • Line 65: warning: exported type DNSs should have comment or be unexported (golint)
    • Line 69: warning: exported type DNS should have comment or be unexported (golint)
    • Line 76: warning: exported type Provisions should have comment or be unexported (golint)
    • Line 80: warning: exported type Provision should have comment or be unexported (golint)
    • Line 89: warning: exported type Syslogs should have comment or be unexported (golint)
    • Line 93: warning: exported type Syslog should have comment or be unexported (golint)
    • Line 105: warning: exported method Syslog.MarshalJSON should have comment or be unexported (golint)
    • Line 110: warning: exported method Syslog.UnmarshalJSON should have comment or be unexported (golint)
    • Line 123: warning: exported type RemoteServer should have comment or be unexported (golint)
    • Line 135: warning: exported method RemoteServer.MarshalJSON should have comment or be unexported (golint)
    • Line 143: warning: exported method RemoteServer.UnmarshalJSON should have comment or be unexported (golint)
    • Line 157: warning: exported type SNMPs should have comment or be unexported (golint)
    • Line 161: warning: exported type SNMP should have comment or be unexported (golint)
    • Line 167: warning: exported type TRAPs should have comment or be unexported (golint)
    • Line 171: warning: exported type TRAP should have comment or be unexported (golint)
    • Line 188: warning: exported type Bigiplicenses should have comment or be unexported (golint)
    • Line 192: warning: exported type Bigiplicense should have comment or be unexported (golint)
    • Line 193: warning: don't use underscores in Go names; struct field Registration_key should be RegistrationKey (golint)
    • Line 197: warning: exported type LogIPFIXs should have comment or be unexported (golint)
    • Line 200: warning: exported type LogIPFIX should have comment or be unexported (golint)
    • Line 210: warning: exported type LogPublishers should have comment or be unexported (golint)
    • Line 213: warning: exported type LogPublisher should have comment or be unexported (golint)
    • Line 218: warning: exported type Destinations should have comment or be unexported (golint)
    • Line 231: warning: exported method LogPublisher.MarshalJSON should have comment or be unexported (golint)
    • Line 240: warning: exported method LogPublisher.UnmarshalJSON should have comment or be unexported (golint)
    • Line 278: warning: exported const REST_DOWNLOAD_PATH should have comment (or a comment on this block) or be unexported (golint)
    • Line 508: warning: exported method BigIP.CreateNTP should have comment or be unexported (golint)
    • Line 518: warning: exported method BigIP.ModifyNTP should have comment or be unexported (golint)
    • Line 522: warning: exported method BigIP.NTPs should have comment or be unexported (golint)
    • Line 532: warning: exported method BigIP.BigipVersion should have comment or be unexported (golint)
    • Line 542: warning: exported method BigIP.RunCommand should have comment or be unexported (golint)
    • Line 552: warning: exported method BigIP.CreateDNS should have comment or be unexported (golint)
    • Line 562: warning: exported method BigIP.ModifyDNS should have comment or be unexported (golint)
    • Line 566: warning: comment on exported method BigIP.DNSs should be of the form "DNSs ..." (golint)
    • Line 578: warning: exported method BigIP.CreateProvision should have comment or be unexported (golint)
    • Line 611: warning: exported method BigIP.ProvisionModule should have comment or be unexported (golint)
    • Line 634: warning: exported method BigIP.DeleteProvision should have comment or be unexported (golint)
    • Line 639: warning: exported method BigIP.Provisions should have comment or be unexported (golint)
    • Line 690: warning: exported method BigIP.Syslogs should have comment or be unexported (golint)
    • Line 701: warning: exported method BigIP.CreateSyslog should have comment or be unexported (golint)
    • Line 705: warning: exported method BigIP.ModifySyslog should have comment or be unexported (golint)
    • Line 709: warning: exported method BigIP.CreateSNMP should have comment or be unexported (golint)
    • Line 719: warning: exported method BigIP.ModifySNMP should have comment or be unexported (golint)
    • Line 723: warning: exported method BigIP.SNMPs should have comment or be unexported (golint)
    • Line 734: warning: exported method BigIP.CreateTRAP should have comment or be unexported (golint)
    • Line 754: warning: exported method BigIP.ModifyTRAP should have comment or be unexported (golint)
    • Line 758: warning: exported method BigIP.TRAPs should have comment or be unexported (golint)
    • Line 769: warning: exported method BigIP.DeleteTRAP should have comment or be unexported (golint)
    • Line 773: warning: exported method BigIP.Bigiplicenses should have comment or be unexported (golint)
    • Line 784: warning: exported method BigIP.GetBigipLiceseStatus should have comment or be unexported (golint)
    • Line 800: warning: exported method BigIP.CreateBigiplicense should have comment or be unexported (golint)
    • Line 800: warning: don't use underscores in Go names; method parameter registration_key should be registrationKey (golint)
    • Line 809: warning: exported method BigIP.ModifyBigiplicense should have comment or be unexported (golint)
    • Line 813: warning: exported method BigIP.LogIPFIXs should have comment or be unexported (golint)
    • Line 824: warning: exported method BigIP.CreateLogIPFIX should have comment or be unexported (golint)
    • Line 839: warning: exported method BigIP.ModifyLogIPFIX should have comment or be unexported (golint)
    • Line 843: warning: exported method BigIP.DeleteLogIPFIX should have comment or be unexported (golint)
    • Line 847: warning: exported method BigIP.LogPublisher should have comment or be unexported (golint)
    • Line 858: warning: exported method BigIP.CreateLogPublisher should have comment or be unexported (golint)
    • Line 862: warning: exported method BigIP.ModifyLogPublisher should have comment or be unexported (golint)
    • Line 866: warning: exported method BigIP.DeleteLogPublisher should have comment or be unexported (golint)
    • go-bigip/app.go
    • Line 12: warning: package comment should be of the form "Package bigip ..." (golint)
    • Line 22: warning: exported type Appsvcs should have comment or be unexported (golint)
    • Line 25: warning: exported type Appsvc01 should have comment or be unexported (golint)
    • Line 59: warning: exported type Appsvc02 should have comment or be unexported (golint)
    • Line 115: warning: comment on exported method BigIP.Appsvc01 should be of the form "Appsvc01 ..." (golint)
    • Line 126: warning: exported method BigIP.Appsvc02 should have comment or be unexported (golint)
    • Line 137: warning: comment on exported method BigIP.CreateAppsvc01 should be of the form "CreateAppsvc01 ..." (golint)
    • Line 146: warning: exported method BigIP.CreateAppsvc02 should have comment or be unexported (golint)
    • Line 154: warning: exported method BigIP.DeleteAppsvc01 should have comment or be unexported (golint)
    • Line 157: warning: exported method BigIP.DeleteAppsvc02 should have comment or be unexported (golint)
    • Line 161: warning: exported method BigIP.ModifyAppsvc01 should have comment or be unexported (golint)
    • Line 170: warning: exported method BigIP.ModifyAppsvc02 should have comment or be unexported (golint)
    • go-bigip/device.go
    • Line 1: warning: package comment should be of the form "Package bigip ..." (golint)
    • Line 17: warning: comment on exported type LICs should be of the form "LICs ..." (with optional leading article) (golint)
    • Line 22: warning: comment on exported type LIC should be of the form "LIC ..." (with optional leading article) (golint)
    • Line 29: warning: exported type LicensePools should have comment or be unexported (golint)
    • Line 33: warning: exported type LicensePool should have comment or be unexported (golint)
    • Line 39: warning: exported type LICDTO should have comment or be unexported (golint)
    • Line 45: warning: exported type Devicenames should have comment or be unexported (golint)
    • Line 49: warning: exported type Devicename should have comment or be unexported (golint)
    • Line 55: warning: exported type Devices should have comment or be unexported (golint)
    • Line 107: warning: exported type Devicegroups should have comment or be unexported (golint)
    • Line 111: warning: exported type Devicegroup should have comment or be unexported (golint)
    • Line 138: warning: exported type Devicerecords should have comment or be unexported (golint)
    • Line 142: warning: exported type Devicerecord should have comment or be unexported (golint)
    • Line 147: warning: exported method Devicegroup.MarshalJSON should have comment or be unexported (golint)
    • Line 164: warning: exported method Devicegroup.UnmarshalJSON should have comment or be unexported (golint)
    • Line 203: warning: exported method LIC.MarshalJSON should have comment or be unexported (golint)
    • Line 209: warning: exported method LIC.UnmarshalJSON should have comment or be unexported (golint)
    • Line 231: warning: comment on exported method BigIP.LIC should be of the form "LIC ..." (golint)
    • Line 245: warning: exported method BigIP.CreateLIC should have comment or be unexported (golint)
    • Line 260: warning: exported method BigIP.ModifyLIC should have comment or be unexported (golint)
    • Line 268: warning: exported method BigIP.LICs should have comment or be unexported (golint)
    • Line 283: warning: exported method BigIP.CreateDevice should have comment or be unexported (golint)
    • Line 294: warning: comment on exported method BigIP.ModifyDevice should be of the form "ModifyDevice ..." (golint)
    • Line 299: warning: exported method BigIP.DeleteDevice should have comment or be unexported (golint)
    • Line 303: warning: exported method BigIP.Devices should have comment or be unexported (golint)
    • Line 326: warning: exported method BigIP.CreateDevicegroup should have comment or be unexported (golint)
    • Line 330: warning: exported method BigIP.UpdateDevicegroup should have comment or be unexported (golint)
    • Line 333: warning: exported method BigIP.ModifyDevicegroup should have comment or be unexported (golint)
    • Line 337: warning: exported method BigIP.Devicegroups should have comment or be unexported (golint)
    • Line 347: warning: exported method BigIP.DeleteDevicegroup should have comment or be unexported (golint)
    • Line 351: warning: exported method BigIP.DeleteDevicegroupDevices should have comment or be unexported (golint)
    • Line 355: warning: exported method BigIP.DevicegroupsDevices should have comment or be unexported (golint)
    • go-bigip/net.go
    • Line 1: warning: package comment should be of the form "Package bigip ..." (golint)
    • Line 210: warning: exported type IkePeer should have comment or be unexported (golint)
    • Line 287: warning: exported type IPSecPolicy should have comment or be unexported (golint)
    • Line 518: warning: exported method BigIP.GetRoute should have comment or be unexported (golint)
    • Line 660: warning: exported method BigIP.GetIkePeer should have comment or be unexported (golint)
    • Line 675: warning: exported method BigIP.CreateIkePeer should have comment or be unexported (golint)
    • Line 678: warning: exported method BigIP.DeleteIkePeer should have comment or be unexported (golint)
    • Line 681: warning: exported method BigIP.ModifyIkePeer should have comment or be unexported (golint)
    • go-bigip/f5teem/f5teem.go
    • Line 1: warning: package comment should be of the form "Package f5teem ..." (golint)
    • Line 33: warning: exported function AnonymousClient should have comment or be unexported (golint)
    • Line 89: warning: exported method TeemObject.Report should have comment or be unexported (golint)
    • go-bigip/application.go
    • Line 1: warning: package comment should be of the form "Package bigip ..." (golint)
    • Line 22: warning: exported type Iapps should have comment or be unexported (golint)
    • Line 26: warning: exported type Iapp should have comment or be unexported (golint)
    • Line 72: warning: exported method BigIP.CreateIapp should have comment or be unexported (golint)
    • Line 76: warning: exported method BigIP.UpdateIapp should have comment or be unexported (golint)
    • Line 89: warning: exported method BigIP.Iapp should have comment or be unexported (golint)
    • Line 108: warning: exported method BigIP.DeleteIapp should have comment or be unexported (golint)
    • go-bigip/bigip.go
    • Line 1: warning: package comment should be of the form "Package bigip ..." (golint)
    • Line 32: warning: exported type ConfigOptions should have comment or be unexported (golint)
    • Line 215: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 444: warning: error should be the last type when returning multiple items (golint)
    • Line 469: warning: error should be the last type when returning multiple items (golint)
    • Line 500: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • go-bigip/fastbigip.go
    • Line 18: warning: exported type FastPayload should have comment or be unexported (golint)
    • Line 23: warning: exported type FastTask should have comment or be unexported (golint)
    • Line 33: warning: exported type FastTemplateSet should have comment or be unexported (golint)
    • Line 43: warning: exported type TmplArrType should have comment or be unexported (golint)
    • go-bigip/ltm.go
    • Line 1: warning: package comment should be of the form "Package bigip ..." (golint)
    • Line 192: warning: comment on exported type DataGroup should be of the form "DataGroup ..." (with optional leading article) (golint)
    • Line 202: warning: exported type DataGroupRecord should have comment or be unexported (golint)
    • Line 216: warning: exported method DataGroup.MarshalJSON should have comment or be unexported (golint)
    • Line 227: warning: exported method DataGroup.UnmarshalJSON should have comment or be unexported (golint)
    • Line 292: warning: comment on exported type PoolMembers should be of the form "PoolMembers ..." (with optional leading article) (golint)
    • Line 302: warning: exported type PoolMemberFqdn should have comment or be unexported (golint)
    • Line 318: warning: comment on exported type PoolMember should be of the form "PoolMember ..." (with optional leading article) (golint)
    • Line 373: warning: exported method Pool.MarshalJSON should have comment or be unexported (golint)
    • Line 379: warning: exported method Pool.UnmarshalJSON should have comment or be unexported (golint)
    • Line 623: warning: exported type Policies should have comment or be unexported (golint)
    • Line 627: warning: exported type VirtualServerPolicies should have comment or be unexported (golint)
    • Line 631: warning: exported type PolicyPublish should have comment or be unexported (golint)
    • Line 636: warning: exported type PolicyPublishDTO should have comment or be unexported (golint)
    • Line 641: warning: exported method PolicyPublish.MarshalJSON should have comment or be unexported (golint)
    • Line 648: warning: exported method PolicyPublish.UnmarshalJSON should have comment or be unexported (golint)
    • Line 659: warning: exported type Policy should have comment or be unexported (golint)
    • Line 682: warning: exported method Policy.MarshalJSON should have comment or be unexported (golint)
    • Line 697: warning: exported method Policy.UnmarshalJSON should have comment or be unexported (golint)
    • Line 716: warning: exported type VirtualServerPolicy should have comment or be unexported (golint)
    • Line 721: warning: exported type VirtualServerPolicyDTO should have comment or be unexported (golint)
    • Line 727: warning: exported type PolicyRules should have comment or be unexported (golint)
    • Line 731: warning: exported type PolicyRule should have comment or be unexported (golint)
    • Line 751: warning: exported method PolicyRule.MarshalJSON should have comment or be unexported (golint)
    • Line 765: warning: exported method PolicyRule.UnmarshalJSON should have comment or be unexported (golint)
    • Line 781: warning: exported type PolicyRuleActions should have comment or be unexported (golint)
    • Line 785: warning: exported type PolicyRuleAction should have comment or be unexported (golint)
    • Line 893: warning: exported type PolicyRuleConditions should have comment or be unexported (golint)
    • Line 897: warning: exported type PolicyRuleCondition should have comment or be unexported (golint)
    • Line 943: warning: don't use underscores in Go names; struct field Last_15secs should be Last15secs (golint)
    • Line 944: warning: don't use underscores in Go names; struct field Last_1min should be Last1min (golint)
    • Line 945: warning: don't use underscores in Go names; struct field Last_5mins should be Last5mins (golint)
    • Line 992: warning: exported method VirtualAddress.MarshalJSON should have comment or be unexported (golint)
    • Line 998: warning: exported method VirtualAddress.UnmarshalJSON should have comment or be unexported (golint)
    • Line 1079: warning: exported type Profiles should have comment or be unexported (golint)
    • Line 1083: warning: exported type Profile should have comment or be unexported (golint)
    • Line 1091: warning: exported type IRules should have comment or be unexported (golint)
    • Line 1095: warning: exported type IRule should have comment or be unexported (golint)
    • Line 1114: warning: exported type Oneconnects should have comment or be unexported (golint)
    • Line 1118: warning: exported type Oneconnect should have comment or be unexported (golint)
    • Line 1137: warning: don't use underscores in Go names; struct field FinWait_2Timeout should be FinWait2Timeout (golint)
    • Line 1144: warning: exported type Tcps should have comment or be unexported (golint)
    • Line 1148: warning: exported type Tcp should have comment or be unexported (golint)
    • Line 1154: warning: don't use underscores in Go names; struct field FinWait_2Timeout should be FinWait2Timeout (golint)
    • Line 1171: warning: don't use underscores in Go names; struct field ForceHttp_10Response should be ForceHTTP10Response (golint)
    • Line 1175: warning: exported type Fasthttps should have comment or be unexported (golint)
    • Line 1179: warning: exported type Fasthttp should have comment or be unexported (golint)
    • Line 1189: warning: don't use underscores in Go names; struct field ForceHttp_10Response should be ForceHTTP10Response (golint)
    • Line 1206: warning: exported type Fastl4s should have comment or be unexported (golint)
    • Line 1210: warning: exported type Fastl4 should have comment or be unexported (golint)
    • Line 1232: warning: exported type Httpcompresss should have comment or be unexported (golint)
    • Line 1236: warning: exported type Httpcompress should have comment or be unexported (golint)
    • Line 1262: warning: exported type Http2s should have comment or be unexported (golint)
    • Line 1266: warning: exported type Http2 should have comment or be unexported (golint)
    • Line 1283: warning: exported type Recordss should have comment or be unexported (golint)
    • Line 1287: warning: exported type Records should have comment or be unexported (golint)
    • Line 1291: warning: exported type RecordsDTO should have comment or be unexported (golint)
    • Line 1296: warning: exported type Datagroup should have comment or be unexported (golint)
    • Line 1302: warning: exported type Datagroups should have comment or be unexported (golint)
    • Line 1306: warning: exported type DatagroupDTO should have comment or be unexported (golint)
    • Line 1314: warning: exported method Datagroup.MarshalJSON should have comment or be unexported (golint)
    • Line 1320: warning: exported method Datagroup.UnmarshalJSON should have comment or be unexported (golint)
    • Line 1329: warning: exported method Records.MarshalJSON should have comment or be unexported (golint)
    • Line 1335: warning: exported method Records.UnmarshalJSON should have comment or be unexported (golint)
    • Line 1344: warning: exported method Monitor.MarshalJSON should have comment or be unexported (golint)
    • Line 1353: warning: exported method Monitor.UnmarshalJSON should have comment or be unexported (golint)
    • Line 1362: warning: exported method Oneconnect.MarshalJSON should have comment or be unexported (golint)
    • Line 1368: warning: exported method Oneconnect.UnmarshalJSON should have comment or be unexported (golint)
    • Line 1377: warning: exported method Tcp.MarshalJSON should have comment or be unexported (golint)
    • Line 1383: warning: exported method Tcp.UnmarshalJSON should have comment or be unexported (golint)
    • Line 1392: warning: exported method Fasthttp.MarshalJSON should have comment or be unexported (golint)
    • Line 1398: warning: exported method Fasthttp.UnmarshalJSON should have comment or be unexported (golint)
    • Line 1407: warning: exported method Fastl4.MarshalJSON should have comment or be unexported (golint)
    • Line 1413: warning: exported method Fastl4.UnmarshalJSON should have comment or be unexported (golint)
    • Line 1422: warning: exported method Httpcompress.MarshalJSON should have comment or be unexported (golint)
    • Line 1428: warning: exported method Httpcompress.UnmarshalJSON should have comment or be unexported (golint)
    • Line 1437: warning: exported method Http2.MarshalJSON should have comment or be unexported (golint)
    • Line 1443: warning: exported method Http2.UnmarshalJSON should have comment or be unexported (golint)
    • Line 1452: warning: exported type Snats should have comment or be unexported (golint)
    • Line 1456: warning: comment on exported type Snat should be of the form "Snat ..." (with optional leading article) (golint)
    • Line 1487: warning: exported type Originsrecords should have comment or be unexported (golint)
    • Line 1491: warning: exported type Originsrecord should have comment or be unexported (golint)
    • Line 1493: warning: don't use underscores in Go names; struct field app_service should be appService (golint)
    • Line 1496: warning: exported method Snat.MarshalJSON should have comment or be unexported (golint)
    • Line 1513: warning: exported method Snat.UnmarshalJSON should have comment or be unexported (golint)
    • Line 1535: warning: exported type Snatpools should have comment or be unexported (golint)
    • Line 1552: warning: exported method Snatpool.MarshalJSON should have comment or be unexported (golint)
    • Line 1558: warning: exported method Snatpool.UnmarshalJSON should have comment or be unexported (golint)
    • Line 1574: warning: exported type TcpProfile should have comment or be unexported (golint)
    • Line 1596: warning: don't use underscores in Go names; struct field FinWait_2Timeout should be FinWait2Timeout (golint)
    • Line 1664: warning: exported type UdpProfile should have comment or be unexported (golint)
    • Line 1685: warning: exported type HttpProfiles should have comment or be unexported (golint)
    • Line 1689: warning: exported type HttpProfile should have comment or be unexported (golint)
    • Line 1719: warning: exported type OneconnectProfiles should have comment or be unexported (golint)
    • Line 1723: warning: exported type OneconnectProfile should have comment or be unexported (golint)
    • Line 1738: warning: exported type HttpCompressionProfiles should have comment or be unexported (golint)
    • Line 1742: warning: exported type HttpCompressionProfile should have comment or be unexported (golint)
    • Line 1743: warning: don't use underscores in Go names; struct field AllowHttp_10 should be AllowHTTP10 (golint)
    • Line 1786: warning: exported const ENABLED should have comment (or a comment on this block) or be unexported (golint)
    • Line 2017: warning: don't use underscores in Go names; method parameter rate_limit should be rateLimit (golint)
    • Line 2017: warning: don't use underscores in Go names; method parameter connection_limit should be connectionLimit (golint)
    • Line 2017: warning: don't use underscores in Go names; method parameter dynamic_ratio should be dynamicRatio (golint)
    • Line 2034: warning: don't use underscores in Go names; method parameter rate_limit should be rateLimit (golint)
    • Line 2034: warning: don't use underscores in Go names; method parameter connection_limit should be connectionLimit (golint)
    • Line 2034: warning: don't use underscores in Go names; method parameter dynamic_ratio should be dynamicRatio (golint)
    • Line 2034: warning: don't use underscores in Go names; method parameter address_family should be addressFamily (golint)
    • Line 2054: warning: comment on exported method BigIP.GetNode should be of the form "GetNode ..." (golint)
    • Line 2110: warning: exported method BigIP.AddInternalDataGroup should have comment or be unexported (golint)
    • Line 2114: warning: exported method BigIP.DeleteInternalDataGroup should have comment or be unexported (golint)
    • Line 2119: warning: comment on exported method BigIP.ModifyInternalDataGroupRecords should be of the form "ModifyInternalDataGroupRecords ..." (golint)
    • Line 2124: warning: comment on exported method BigIP.GetInternalDataGroup should be of the form "GetInternalDataGroup ..." (golint)
    • Line 2138: warning: comment on exported method BigIP.GetInternalDataGroupRecords should be of the form "GetInternalDataGroupRecords ..." (golint)
    • Line 2171: warning: exported method BigIP.AddPoolMemberNode should have comment or be unexported (golint)
    • Line 2184: warning: exported method BigIP.AddPoolMemberFQDN should have comment or be unexported (golint)
    • Line 2277: warning: comment on exported method BigIP.GetPool should be of the form "GetPool ..." (golint)
    • Line 2369: warning: don't use underscores in Go names; var policy_names should be policyNames (golint)
    • Line 2403: warning: comment on exported method BigIP.VirtualServerPolicyNames should be of the form "VirtualServerPolicyNames ..." (golint)
    • Line 2437: warning: exported method BigIP.CreateVirtualAddress should have comment or be unexported (golint)
    • Line 2456: warning: exported method BigIP.DeleteVirtualAddress should have comment or be unexported (golint)
    • Line 2481: warning: don't use underscores in Go names; method parameter defaults_from should be defaultsFrom (golint)
    • Line 2481: warning: don't use underscores in Go names; method parameter receive_disable should be receiveDisable (golint)
    • Line 2498: warning: comment on exported method BigIP.AddMonitor should be of the form "AddMonitor ..." (golint)
    • Line 2512: warning: comment on exported method BigIP.GetMonitor should be of the form "GetMonitor ..." (golint)
    • Line 2602: warning: exported method BigIP.Policies should have comment or be unexported (golint)
    • Line 2612: warning: comment on exported method BigIP.GetPolicy should be of the form "GetPolicy ..." (golint)
    • Line 2620: warning: don't use underscores in Go names; var policy_name should be policyName (golint)
    • Line 2636: warning: should omit 2nd value from range; this loop is equivalent to `for i := range ...` (golint)
    • Line 2657: warning: should omit 2nd value from range; this loop is equivalent to `for ri := range ...` (golint)
    • Line 2659: warning: should omit 2nd value from range; this loop is equivalent to `for ai := range ...` (golint)
    • Line 2662: warning: should omit 2nd value from range; this loop is equivalent to `for ci := range ...` (golint)
    • Line 2668: warning: comment on exported method BigIP.CreatePolicy should be of the form "CreatePolicy ..." (golint)
    • Line 2674: warning: exported method BigIP.PublishPolicy should have comment or be unexported (golint)
    • Line 2690: warning: comment on exported method BigIP.UpdatePolicy should be of the form "UpdatePolicy ..." (golint)
    • Line 2703: warning: comment on exported method BigIP.DeletePolicy should be of the form "DeletePolicy ..." (golint)
    • Line 2710: warning: don't use underscores in Go names; var policy_name should be policyName (golint)
    • Line 2714: warning: comment on exported method BigIP.CreatePolicyDraft should be of the form "CreatePolicyDraft ..." (golint)
    • Line 2717: warning: don't use underscores in Go names; var policy_name should be policyName (golint)
    • Line 2725: warning: comment on exported method BigIP.CreateOneconnect should be of the form "CreateOneconnect ..." (golint)
    • Line 2730: warning: exported method BigIP.GetOneconnect should have comment or be unexported (golint)
    • Line 2756: warning: comment on exported method BigIP.CreateTcp should be of the form "CreateTcp ..." (golint)
    • Line 2773: warning: comment on exported method BigIP.DeleteTcp should be of the form "DeleteTcp ..." (golint)
    • Line 2784: warning: exported method BigIP.GetTcp should have comment or be unexported (golint)
    • Line 2797: warning: exported method BigIP.CreateFasthttp should have comment or be unexported (golint)
    • Line 2814: warning: comment on exported method BigIP.DeleteFasthttp should be of the form "DeleteFasthttp ..." (golint)
    • Line 2825: warning: exported method BigIP.GetFasthttp should have comment or be unexported (golint)
    • Line 2835: warning: exported method BigIP.CreateFastl4 should have comment or be unexported (golint)
    • Line 2851: warning: comment on exported method BigIP.DeleteFastl4 should be of the form "DeleteFastl4 ..." (golint)
    • Line 2862: warning: exported method BigIP.GetFastl4 should have comment or be unexported (golint)
    • Line 2877: warning: exported method BigIP.CreateHttpcompress should have comment or be unexported (golint)
    • Line 2889: warning: comment on exported method BigIP.DeleteHttpcompress should be of the form "DeleteHttpcompress ..." (golint)
    • Line 2894: warning: comment on exported method BigIP.ModifyHttpcompress should be of the form "ModifyHttpcompress ..." (golint)
    • Line 2900: warning: exported method BigIP.GetHttpcompress should have comment or be unexported (golint)
    • Line 2913: warning: comment on exported method BigIP.CreateHttp2 should be of the form "CreateHttp2 ..." (golint)
    • Line 2926: warning: comment on exported method BigIP.DeleteHttp2 should be of the form "DeleteHttp2 ..." (golint)
    • Line 2931: warning: comment on exported method BigIP.ModifyHttp2 should be of the form "ModifyHttp2 ..." (golint)
    • Line 2937: warning: exported method BigIP.GetHttp2 should have comment or be unexported (golint)
    • Line 2973: warning: exported method BigIP.Records should have comment or be unexported (golint)
    • Line 2983: warning: exported method BigIP.DeleteDatagroup should have comment or be unexported (golint)
    • Line 2988: warning: exported method BigIP.AddRecords should have comment or be unexported (golint)
    • Line 3009: warning: comment on exported method BigIP.CreateSnat should be of the form "CreateSnat ..." (golint)
    • Line 3029: warning: exported method BigIP.ModifySnat should have comment or be unexported (golint)
    • Line 3033: warning: comment on exported method BigIP.GetSnat should be of the form "GetSnat ..." (golint)
    • Line 3047: warning: exported method BigIP.DeleteSnat should have comment or be unexported (golint)
    • Line 3051: warning: exported method BigIP.UpdateSnat should have comment or be unexported (golint)
    • Line 3055: warning: comment on exported method BigIP.Snatpools should be of the form "Snatpools ..." (golint)
    • Line 3067: warning: exported method BigIP.CreateSnatpool should have comment or be unexported (golint)
    • Line 3077: warning: exported method BigIP.ModifySnatpool should have comment or be unexported (golint)
    • Line 3081: warning: comment on exported method BigIP.GetSnatpool should be of the form "GetSnatpool ..." (golint)
    • Line 3095: warning: exported method BigIP.DeleteSnatpool should have comment or be unexported (golint)
    • Line 3578: warning: exported method BigIP.GetHttpProfile should have comment or be unexported (golint)
    • Line 3602: warning: exported method BigIP.AddHttpProfile should have comment or be unexported (golint)
    • Line 3628: warning: exported method BigIP.GetOneconnectProfile should have comment or be unexported (golint)
    • Line 3652: warning: exported method BigIP.AddOneconnectProfile should have comment or be unexported (golint)
    • Line 3678: warning: exported method BigIP.GetHttpCompressionProfile should have comment or be unexported (golint)
    • Line 3702: warning: exported method BigIP.AddHttpCompressionProfile should have comment or be unexported (golint)
    • go-bigip/as3bigip.go
    • Line 39: warning: exported type As3AllTaskType should have comment or be unexported (golint)
    • Line 42: warning: exported type As3TaskType should have comment or be unexported (golint)
    • Line 47: warning: exported type Results1 should have comment or be unexported (golint)
    • Line 59: warning: error should be the last type when returning multiple items (golint)
    • Line 79: warning: don't use underscores in Go names; var tenant_list should be tenantList (golint)
    • Line 79: warning: don't use underscores in Go names; var tenant_count should be tenantCount (golint)
    • Line 85: warning: don't use underscores in Go names; var success_count should be successCount (golint)
    • Line 134: warning: error should be the last type when returning multiple items (golint)
    • Line 134: warning: exported method BigIP.DeleteAs3Bigip should have comment or be unexported (golint)
    • Line 154: warning: don't use underscores in Go names; var tenant_count should be tenantCount (golint)
    • Line 157: warning: don't use underscores in Go names; var success_count should be successCount (golint)
    • Line 172: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 175: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 183: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 203: warning: exported method BigIP.ModifyAs3 should have comment or be unexported (golint)
    • Line 203: warning: don't use underscores in Go names; method parameter as3_json should be as3JSON (golint)
    • Line 240: warning: exported method BigIP.GetAs3 should have comment or be unexported (golint)
    • Line 344: warning: exported method BigIP.GetTenantList should have comment or be unexported (golint)
    • Line 385: warning: exported method BigIP.GetTarget should have comment or be unexported (golint)
    • Line 401: warning: exported method BigIP.AddTeemAgent should have comment or be unexported (golint)
    • Line 436: warning: exported method BigIP.AddServiceDiscoveryNodes should have comment or be unexported (golint)
    • Line 448: warning: exported method BigIP.GetServiceDiscoveryNodes should have comment or be unexported (golint)
    • Line 478: warning: exported method BigIP.TenantDifference should have comment or be unexported (golint)
    • Line 495: warning: don't use underscores in Go names; var diff_tenant_list should be diffTenantList (golint)
    • go-bigip/shared.go
    • Line 24: warning: comment on exported method BigIP.InstallLicense should be of the form "InstallLicense ..." (golint)
    • Line 30: warning: comment on exported method BigIP.RevokeLicense should be of the form "RevokeLicense ..." (golint)
    • Line 36: warning: comment on exported method BigIP.UploadFile should be of the form "UploadFile ..." (golint)
    • Line 49: warning: comment on exported method BigIP.UploadBytes should be of the form "UploadBytes ..." (golint)
    • go-bigip/utility.go
    • Line 1: warning: package comment should be of the form "Package bigip ..." (golint)
    • Line 15: warning: comment on exported type ULICs should be of the form "ULICs ..." (with optional leading article) (golint)
    • Line 20: warning: comment on exported type ULIC should be of the form "ULIC ..." (with optional leading article) (golint)
    • Line 28: warning: exported type UtilityPools should have comment or be unexported (golint)
    • Line 32: warning: exported type UtilityPool should have comment or be unexported (golint)
    • Line 38: warning: exported type ULICDTO should have comment or be unexported (golint)
    • Line 70: warning: exported method ULIC.MarshalJSON should have comment or be unexported (golint)
    • Line 76: warning: exported method ULIC.UnmarshalJSON should have comment or be unexported (golint)
    • Line 99: warning: comment on exported method BigIP.ULIC should be of the form "ULIC ..." (golint)
    • Line 113: warning: exported method BigIP.CreateULIC should have comment or be unexported (golint)
    • Line 129: warning: exported method BigIP.ModifyULIC should have comment or be unexported (golint)
    • Line 137: warning: exported method BigIP.ULICs should have comment or be unexported (golint)
    • Line 152: warning: exported method BigIP.DeleteULIC should have comment or be unexported (golint)

gocyclo89%

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.

    • go-bigip/as3bigip.go
    • Line 59: warning: cyclomatic complexity 20 of function (*BigIP).PostAs3Bigip() is high (> 15) (gocyclo)
    • Line 134: warning: cyclomatic complexity 18 of function (*BigIP).DeleteAs3Bigip() is high (> 15) (gocyclo)

ineffassign89%

IneffAssign detects ineffectual assignments in Go code.

    • go-bigip/ltm.go
    • Line 2617: warning: ineffectual assignment to values (ineffassign)
    • Line 2681: warning: ineffectual assignment to values (ineffassign)
    • Line 2707: warning: ineffectual assignment to values (ineffassign)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell78%

Misspell Finds commonly misspelled English words

    • go-bigip/as3bigip.go
    • Line 97: warning: "Sucessfully" is a misspelling of "Successfully" (misspell)
    • Line 109: warning: "Sucessfully" is a misspelling of "Successfully" (misspell)
    • Line 169: warning: "Sucessfully" is a misspelling of "Successfully" (misspell)
    • Line 179: warning: "Sucessfully" is a misspelling of "Successfully" (misspell)
    • Line 221: warning: "Sucessfully" is a misspelling of "Successfully" (misspell)
    • go-bigip/fastbigip.go
    • Line 152: warning: "Sucessfully" is a misspelling of "Successfully" (misspell)
    • Line 191: warning: "Sucessfully" is a misspelling of "Successfully" (misspell)
    • Line 224: warning: "Sucessfully" is a misspelling of "Successfully" (misspell)
    • go-bigip/app.go
    • Line 142: warning: "successfull" is a misspelling of "successful" (misspell)
    • Line 150: warning: "successfull" is a misspelling of "successful" (misspell)
    • Line 166: warning: "successfull" is a misspelling of "successful" (misspell)
    • Line 174: warning: "successfull" is a misspelling of "successful" (misspell)