Preparing report...

Report for github.com/hortonworks/cb-cli

A+    Excellent!    Found 64 issues across 101 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!


gocyclo93%

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.


golint39%

Golint is a linter for Go source code.

    • cb-cli/dataplane/cloud/gcp/stack_template.go
    • Line 9: warning: exported method GcpProvider.GenerateDefaultNetwork should have comment or be unexported (golint)
    • Line 50: warning: exported method GcpProvider.GenerateDefaultNetworkWithParams should have comment or be unexported (golint)
    • Line 54: warning: exported method GcpProvider.SetParametersTemplate should have comment or be unexported (golint)
    • Line 57: warning: exported method GcpProvider.SetInstanceGroupParametersTemplate should have comment or be unexported (golint)
    • Line 60: warning: exported method GcpProvider.GenerateNetworkRequestFromNetworkResponse should have comment or be unexported (golint)
    • cb-cli/dataplane/oauth/oauth_client.go
    • Line 17: warning: exported var PREFIX_TRIM should have comment or be unexported (golint)
    • Line 19: warning: exported type Cloudbreak should have comment or be unexported (golint)
    • Line 22: warning: exported type Sdx should have comment or be unexported (golint)
    • Line 25: warning: exported type FreeIpa should have comment or be unexported (golint)
    • Line 29: warning: exported type Environment should have comment or be unexported (golint)
    • Line 33: warning: exported type Redbeams should have comment or be unexported (golint)
    • Line 37: warning: exported function NewCloudbreakHTTPClientFromContext should have comment or be unexported (golint)
    • Line 41: warning: exported function NewCloudbreakHTTPClient should have comment or be unexported (golint)
    • Line 49: warning: exported function NewCloudbreakActorCrnHTTPClient should have comment or be unexported (golint)
    • Line 57: warning: comment on exported function NewSDXClientFromContext should be of the form "NewSDXClientFromContext ..." (golint)
    • Line 62: warning: exported function NewSDXClient should have comment or be unexported (golint)
    • Line 70: warning: exported function NewSDXActorCrnHTTPClient should have comment or be unexported (golint)
    • Line 78: warning: comment on exported function NewFreeIpaClientFromContext should be of the form "NewFreeIpaClientFromContext ..." (golint)
    • Line 83: warning: exported function NewFreeIpaClient should have comment or be unexported (golint)
    • Line 91: warning: exported function NewFreeIpaActorCrnHTTPClient should have comment or be unexported (golint)
    • Line 99: warning: comment on exported function NewEnvironmentClientFromContext should be of the form "NewEnvironmentClientFromContext ..." (golint)
    • Line 104: warning: exported function NewEnvironmentClient should have comment or be unexported (golint)
    • Line 112: warning: exported function NewEnvironmentActorCrnHTTPClient should have comment or be unexported (golint)
    • Line 120: warning: exported function NewRedbeamsClientFromContext should have comment or be unexported (golint)
    • Line 124: warning: exported function NewRedbeamsClient should have comment or be unexported (golint)
    • cb-cli/dataplane/distrox/distrox_functions.go
    • Line 22: warning: exported const AVAILABLE should have comment (or a comment on this block) or be unexported (golint)
    • Line 28: warning: exported type DistroX should have comment or be unexported (golint)
    • Line 30: warning: exported method DistroX.WaitForDistroXOperationToFinish should have comment or be unexported (golint)
    • cb-cli/dataplane/connectors/connectors.go
    • Line 79: warning: exported function ListRegions should have comment or be unexported (golint)
    • Line 87: warning: exported function ListAvailabilityZones should have comment or be unexported (golint)
    • Line 95: warning: exported function ListAwsVolumeTypes should have comment or be unexported (golint)
    • Line 100: warning: exported function ListAzureVolumeTypes should have comment or be unexported (golint)
    • Line 105: warning: exported function ListGcpVolumeTypes should have comment or be unexported (golint)
    • Line 118: warning: exported function ListInstanceTypes should have comment or be unexported (golint)
    • cb-cli/dataplane/cloud/openstack/credential.go
    • Line 12: warning: exported var FACINGS should have comment or be unexported (golint)
    • Line 13: warning: exported var SCOPES should have comment or be unexported (golint)
    • Line 15: warning: exported method OpenstackProvider.GetCredentialRequest should have comment or be unexported (golint)
    • Line 67: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 74: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • cb-cli/dataplane/flow/flow.go
    • Line 40: warning: exported function ListByCrn should have comment or be unexported (golint)
    • Line 49: warning: exported function ListByName should have comment or be unexported (golint)
    • Line 74: warning: exported function DescribeLastFlowByCrn should have comment or be unexported (golint)
    • Line 83: warning: exported function DescribeLastFlowByName should have comment or be unexported (golint)
    • cb-cli/dataplane/sdx/sdx.go
    • Line 69: warning: exported type ClientSdx should have comment or be unexported (golint)
    • Line 103: warning: exported function CreateSdx should have comment or be unexported (golint)
    • Line 186: warning: exported type CloudStorageSetter should have comment or be unexported (golint)
    • Line 188: warning: exported method CloudStorageSetter.SetCloudStorage should have comment or be unexported (golint)
    • Line 298: warning: exported function DeleteSdx should have comment or be unexported (golint)
    • Line 311: warning: exported function RepairSdx should have comment or be unexported (golint)
    • Line 345: warning: exported function ListSdx should have comment or be unexported (golint)
    • Line 355: warning: exported function GetListOfSdx should have comment or be unexported (golint)
    • Line 388: warning: exported function SyncSdx should have comment or be unexported (golint)
    • Line 400: warning: exported function ListSdxAdvertisedRuntimesSdx should have comment or be unexported (golint)
    • Line 423: warning: exported function RetrySdx should have comment or be unexported (golint)
    • Line 439: warning: exported function DescribeSdx should have comment or be unexported (golint)
    • Line 499: warning: exported function StartSdx should have comment or be unexported (golint)
    • Line 510: warning: exported function StopSdx should have comment or be unexported (golint)
    • Line 547: warning: exported function SdxClusterkUpgrade should have comment or be unexported (golint)
    • Line 603: warning: exported function GetVmLogs should have comment or be unexported (golint)
    • Line 621: warning: exported function CollectDiagnostics should have comment or be unexported (golint)
    • Line 684: warning: exported function GetCMRoles should have comment or be unexported (golint)
    • Line 702: warning: exported function CollectCmDiagnostics should have comment or be unexported (golint)
    • Line 744: warning: exported function RotateCertificates should have comment or be unexported (golint)
    • cb-cli/dataplane/cloud/aws/stack_template.go
    • Line 12: warning: exported method AwsProvider.GenerateDefaultNetwork should have comment or be unexported (golint)
    • Line 36: warning: exported method AwsProvider.GenerateDefaultNetworkWithParams should have comment or be unexported (golint)
    • Line 64: warning: exported method AwsProvider.SetParametersTemplate should have comment or be unexported (golint)
    • Line 67: warning: exported method AwsProvider.SetInstanceGroupParametersTemplate should have comment or be unexported (golint)
    • Line 70: warning: exported method AwsProvider.GenerateNetworkRequestFromNetworkResponse should have comment or be unexported (golint)
    • cb-cli/dataplane/utils/utils.go
    • Line 19: warning: exported function CheckClientVersion should have comment or be unexported (golint)
    • Line 31: warning: exported function SafeClusterDescriptionConvert should have comment or be unexported (golint)
    • Line 38: warning: exported function SafeClusterViewStatusConvert should have comment or be unexported (golint)
    • Line 45: warning: exported function SafeClusterStatusConvert should have comment or be unexported (golint)
    • Line 52: warning: exported function CheckServerAddress should have comment or be unexported (golint)
    • Line 58: warning: exported function ConvertToInt32Ptr should have comment or be unexported (golint)
    • Line 70: warning: exported function ConvertToFloat64Ptr should have comment or be unexported (golint)
    • cb-cli/help/help.go
    • Line 17: warning: exported var AppHelpTemplate should have comment or be unexported (golint)
    • Line 40: warning: exported var CommandHelpTemplate should have comment or be unexported (golint)
    • Line 60: warning: exported var SubCommandHelpTemplate should have comment or be unexported (golint)
    • Line 81: warning: exported var HiddenAppHelpTemplate should have comment or be unexported (golint)
    • Line 104: warning: exported function HiddenCommands should have comment or be unexported (golint)
    • Line 114: warning: exported function ShowHiddenCommands should have comment or be unexported (golint)
    • Line 122: warning: exported function PrintHelp should have comment or be unexported (golint)
    • cb-cli/dataplane/config/config.go
    • Line 22: warning: exported type Config should have comment or be unexported (golint)
    • Line 32: warning: exported type ConfigList should have comment or be unexported (golint)
    • Line 34: warning: exported method Config.Yaml should have comment or be unexported (golint)
    • Line 39: warning: exported method ConfigList.Json should have comment or be unexported (golint)
    • Line 44: warning: exported method ConfigList.Yaml should have comment or be unexported (golint)
    • Line 49: warning: exported function CheckConfigAndCommandFlags should have comment or be unexported (golint)
    • Line 60: warning: exported function CheckConfigAndCommandFlagsWithoutWorkspace should have comment or be unexported (golint)
    • Line 70: warning: exported function CheckConfigAndCommandFlagsDP should have comment or be unexported (golint)
    • Line 161: warning: exported function PrintConfig should have comment or be unexported (golint)
    • Line 166: warning: exported function GetHomeDirectory should have comment or be unexported (golint)
    • Line 174: warning: exported function ReadConfig should have comment or be unexported (golint)
    • Line 192: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 193: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 197: warning: exported function WriteConfigToFile should have comment or be unexported (golint)
    • Line 256: warning: exported function CheckResourceAddressingFlags should have comment or be unexported (golint)
    • cb-cli/dataplane/redbeams/redbeams.go
    • Line 19: warning: exported type ClientRedbeams should have comment or be unexported (golint)
    • Line 24: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 49: warning: exported function NewDetailsFromResponse should have comment or be unexported (golint)
    • Line 90: warning: exported function NewDetailsFromStatusResponse should have comment or be unexported (golint)
    • Line 101: warning: exported function ListDatabaseServers should have comment or be unexported (golint)
    • Line 123: warning: exported function GetDatabaseServer should have comment or be unexported (golint)
    • Line 152: warning: exported function CreateManagedDatabaseServer should have comment or be unexported (golint)
    • Line 178: warning: exported function ReleaseManagedDatabaseServer should have comment or be unexported (golint)
    • Line 195: warning: exported function RegisterDatabaseServer should have comment or be unexported (golint)
    • Line 221: warning: exported function DeleteDatabaseServer should have comment or be unexported (golint)
    • Line 257: warning: exported function NewDetailsFromDbResponse should have comment or be unexported (golint)
    • Line 278: warning: exported function ListDatabases should have comment or be unexported (golint)
    • Line 300: warning: exported function GetDatabase should have comment or be unexported (golint)
    • Line 329: warning: exported function CreateDatabase should have comment or be unexported (golint)
    • Line 352: warning: exported function RegisterDatabase should have comment or be unexported (golint)
    • Line 378: warning: exported function DeleteDatabase should have comment or be unexported (golint)
    • cb-cli/dataplane/distrox/distrox.go
    • Line 92: warning: exported function DeleteDistroX should have comment or be unexported (golint)
    • Line 105: warning: exported function DeleteMultipleDistroxClusters should have comment or be unexported (golint)
    • Line 172: warning: exported function ScaleDistroX should have comment or be unexported (golint)
    • Line 198: warning: exported function StartDistroX should have comment or be unexported (golint)
    • Line 215: warning: exported function StopDistroX should have comment or be unexported (golint)
    • Line 232: warning: exported function CreateDistroX should have comment or be unexported (golint)
    • Line 244: warning: exported function ChangeImage should have comment or be unexported (golint)
    • Line 257: warning: exported function DescribeDistroX should have comment or be unexported (golint)
    • Line 281: warning: exported function ListDistroXs should have comment or be unexported (golint)
    • Line 300: warning: exported function GetListOfDistroXs should have comment or be unexported (golint)
    • Line 312: warning: exported function RepairDistroXHostGroups should have comment or be unexported (golint)
    • Line 322: warning: exported function RepairDistroXNodes should have comment or be unexported (golint)
    • Line 353: warning: exported function RetryDistroX should have comment or be unexported (golint)
    • Line 370: warning: exported function SyncDistroX should have comment or be unexported (golint)
    • Line 383: warning: exported function GetRequestByName should have comment or be unexported (golint)
    • Line 401: warning: exported function GetVmLogs should have comment or be unexported (golint)
    • Line 419: warning: exported function GetCMRoles should have comment or be unexported (golint)
    • Line 437: warning: exported function CollectCmDiagnostics should have comment or be unexported (golint)
    • Line 448: warning: exported function CollectDiagnostics should have comment or be unexported (golint)
    • Line 542: warning: exported function RotateCertificates should have comment or be unexported (golint)
    • Line 554: warning: exported function DistroxClusterkUpgrade should have comment or be unexported (golint)
    • cb-cli/dataplane/stack/stack.go
    • Line 76: warning: exported function CreateStack should have comment or be unexported (golint)
    • Line 89: warning: exported function ChangeImage should have comment or be unexported (golint)
    • Line 185: warning: exported function GetStackRequest should have comment or be unexported (golint)
    • Line 199: warning: exported function DescribeStack should have comment or be unexported (golint)
    • Line 210: warning: exported function DescribeStackInstances should have comment or be unexported (golint)
    • Line 247: warning: exported function ScaleStack should have comment or be unexported (golint)
    • Line 273: warning: exported function StartStack should have comment or be unexported (golint)
    • Line 291: warning: exported function StopStack should have comment or be unexported (golint)
    • Line 309: warning: exported function SyncStack should have comment or be unexported (golint)
    • Line 323: warning: exported function UpdateSalt should have comment or be unexported (golint)
    • Line 337: warning: exported function RepairStackHostGroups should have comment or be unexported (golint)
    • Line 347: warning: exported function RepairStackNodes should have comment or be unexported (golint)
    • Line 379: warning: exported function RetryCluster should have comment or be unexported (golint)
    • Line 397: warning: exported function DeleteStack should have comment or be unexported (golint)
    • Line 411: warning: exported function ListStacks should have comment or be unexported (golint)
    • Line 439: warning: exported function GenerateInventoryFile should have comment or be unexported (golint)
    • cb-cli/dataplane/cloud/yarn/stack_template.go
    • Line 9: warning: exported method YarnProvider.GetNetworkParamatersTemplate should have comment or be unexported (golint)
    • Line 13: warning: exported method YarnProvider.SetParametersTemplate should have comment or be unexported (golint)
    • Line 19: warning: exported method YarnProvider.SetInstanceGroupParametersTemplate should have comment or be unexported (golint)
    • Line 22: warning: exported method YarnProvider.GenerateDefaultNetworkWithParams should have comment or be unexported (golint)
    • cb-cli/dataplane/cloud/yarn/yarn.go
    • Line 21: warning: exported type YarnProvider should have comment or be unexported (golint)
    • Line 25: warning: exported method YarnProvider.GetName should have comment or be unexported (golint)
    • Line 29: warning: exported method YarnProvider.SkippedFields should have comment or be unexported (golint)
    • Line 33: warning: exported method YarnProvider.GenerateDefaultTemplate should have comment or be unexported (golint)
    • Line 50: warning: exported method YarnProvider.GenerateDefaultNetwork should have comment or be unexported (golint)
    • Line 54: warning: exported method YarnProvider.GenerateDefaultSecurityGroup should have comment or be unexported (golint)
    • Line 58: warning: exported method YarnProvider.GenerateNetworkRequestFromNetworkResponse should have comment or be unexported (golint)
    • cb-cli/dataplane/audit/audit.go
    • Line 54: warning: exported function ListBlueprintAudits should have comment or be unexported (golint)
    • Line 58: warning: exported function ListClusterAudits should have comment or be unexported (golint)
    • Line 62: warning: exported function ListCredentialAudits should have comment or be unexported (golint)
    • Line 66: warning: exported function ListDatabaseAudits should have comment or be unexported (golint)
    • Line 70: warning: exported function ListImagecatalogAudits should have comment or be unexported (golint)
    • Line 74: warning: exported function ListLdapAudits should have comment or be unexported (golint)
    • Line 78: warning: exported function ListRecipeAudits should have comment or be unexported (golint)
    • Line 108: warning: exported function DescribeAudit should have comment or be unexported (golint)
    • cb-cli/dataplane/proxy/proxy.go
    • Line 22: warning: exported var Header should have comment or be unexported (golint)
    • Line 37: warning: exported function CreateProxy should have comment or be unexported (golint)
    • Line 81: warning: exported function ListProxies should have comment or be unexported (golint)
    • Line 113: warning: exported function DeleteProxy should have comment or be unexported (golint)
    • cb-cli/dataplane/cloud/azure/stack_template.go
    • Line 12: warning: exported method AzureProvider.GenerateDefaultNetwork should have comment or be unexported (golint)
    • Line 30: warning: exported method AzureProvider.GenerateDefaultNetworkWithParams should have comment or be unexported (golint)
    • Line 62: warning: exported method AzureProvider.SetParametersTemplate should have comment or be unexported (golint)
    • Line 68: warning: exported method AzureProvider.SetInstanceGroupParametersTemplate should have comment or be unexported (golint)
    • Line 80: warning: exported method AzureProvider.GenerateNetworkRequestFromNetworkResponse should have comment or be unexported (golint)
    • cb-cli/dataplane/common/common.go
    • Line 3: warning: exported var CloudResourceHeader should have comment or be unexported (golint)
    • Line 5: warning: exported type CloudResourceOut should have comment or be unexported (golint)
    • Line 11: warning: exported method CloudResourceOut.DataAsStringArray should have comment or be unexported (golint)
    • cb-cli/dataplane/blueprint/blueprint.go
    • Line 56: warning: exported function CreateBlueprintFromUrl should have comment or be unexported (golint)
    • Line 70: warning: exported function CreateBlueprintFromFile should have comment or be unexported (golint)
    • Line 105: warning: exported function DescribeBlueprint should have comment or be unexported (golint)
    • Line 118: warning: exported type GetBlueprintInWorkspace should have comment or be unexported (golint)
    • Line 122: warning: exported function FetchBlueprint should have comment or be unexported (golint)
    • Line 130: warning: exported function DeleteBlueprints should have comment or be unexported (golint)
    • Line 146: warning: exported function ListBlueprints should have comment or be unexported (golint)
    • cb-cli/dataplane/types/types.go
    • Line 3: warning: exported type S should have comment or be unexported (golint)
    • Line 7: warning: exported type I32 should have comment or be unexported (golint)
    • Line 11: warning: exported type I64 should have comment or be unexported (golint)
    • Line 15: warning: exported type B should have comment or be unexported (golint)
    • cb-cli/dataplane/clusterdefinition/clusterdefinition.go
    • Line 55: warning: exported function CreateClusterDefinitionFromFile should have comment or be unexported (golint)
    • Line 87: warning: exported function DescribeClusterDefinition should have comment or be unexported (golint)
    • Line 103: warning: exported function DeleteClusterDefinitions should have comment or be unexported (golint)
    • Line 120: warning: exported function ListClusterDefinitions should have comment or be unexported (golint)
    • cb-cli/dataplane/telemetry/telemetry.go
    • Line 20: warning: exported var TelemetryHeader should have comment or be unexported (golint)
    • Line 41: warning: exported function UpdateAccountTelemetry should have comment or be unexported (golint)
    • Line 74: warning: exported function DescribeAccountTelemetry should have comment or be unexported (golint)
    • Line 95: warning: exported function TestAnonymizationRule should have comment or be unexported (golint)
    • cb-cli/dataplane/common/config.go
    • Line 4: warning: don't use underscores in Go names; const Config_dir should be ConfigDir (golint)
    • Line 4: warning: exported const Config_dir should have comment (or a comment on this block) or be unexported (golint)
    • Line 5: warning: don't use underscores in Go names; const Config_file should be ConfigFile (golint)
    • cb-cli/dataplane/kerberos/kerberos.go
    • Line 16: warning: exported var Header should have comment or be unexported (golint)
    • Line 44: warning: exported function GetVerifyKdcTrustFlag should have comment or be unexported (golint)
    • Line 48: warning: exported function CreateAdKerberos should have comment or be unexported (golint)
    • Line 80: warning: exported function CreateMitKerberos should have comment or be unexported (golint)
    • Line 108: warning: exported function CreateFreeIpaKerberos should have comment or be unexported (golint)
    • Line 136: warning: exported function CreateKerberosRequest should have comment or be unexported (golint)
    • Line 151: warning: exported function SendCreateKerberosRequest should have comment or be unexported (golint)
    • Line 158: warning: exported function SendCreateKerberosRequestImpl should have comment or be unexported (golint)
    • Line 169: warning: exported function GetKerberos should have comment or be unexported (golint)
    • Line 178: warning: exported function GetKerberosImpl should have comment or be unexported (golint)
    • Line 190: warning: exported function DeleteKerberos should have comment or be unexported (golint)
    • Line 199: warning: exported function DeleteKerberosImpl should have comment or be unexported (golint)
    • cb-cli/dataplane/imagecatalog/imagecatalogs.go
    • Line 83: warning: exported function CreateImagecatalogFromUrl should have comment or be unexported (golint)
    • Line 115: warning: exported function ListImagecatalogs should have comment or be unexported (golint)
    • Line 143: warning: exported function DeleteImagecatalog should have comment or be unexported (golint)
    • Line 156: warning: exported function DescribeImagecatalog should have comment or be unexported (golint)
    • Line 175: warning: exported function ListAwsImages should have comment or be unexported (golint)
    • Line 180: warning: exported function ListAzureImages should have comment or be unexported (golint)
    • Line 185: warning: exported function ListGcpImages should have comment or be unexported (golint)
    • Line 190: warning: exported function ListOpenstackImages should have comment or be unexported (golint)
    • Line 203: warning: exported function ListImagesValidForUpgrade should have comment or be unexported (golint)
    • Line 247: warning: exported function DescribeAwsImage should have comment or be unexported (golint)
    • Line 252: warning: exported function DescribeAzureImage should have comment or be unexported (golint)
    • Line 257: warning: exported function DescribeGcpImage should have comment or be unexported (golint)
    • Line 262: warning: exported function DescribeOpenstackImage should have comment or be unexported (golint)
    • cb-cli/dataplane/ldap/ldap.go
    • Line 27: warning: exported var Header should have comment or be unexported (golint)
    • Line 64: warning: exported var Users should have comment or be unexported (golint)
    • Line 76: warning: exported var Groups should have comment or be unexported (golint)
    • Line 90: warning: exported function CreateLDAP should have comment or be unexported (golint)
    • Line 174: warning: exported function DeleteLdap should have comment or be unexported (golint)
    • Line 189: warning: exported function DescribeLdap should have comment or be unexported (golint)
    • Line 226: warning: exported function CreateLdapUser should have comment or be unexported (golint)
    • Line 289: warning: exported function DeleteLdapUser should have comment or be unexported (golint)
    • Line 311: warning: exported function CreateLdapGroup should have comment or be unexported (golint)
    • Line 338: warning: exported function DeleteLdapGroup should have comment or be unexported (golint)
    • Line 360: warning: exported function ListLdapUsers should have comment or be unexported (golint)
    • Line 398: warning: exported function ListLdapGroups should have comment or be unexported (golint)
    • cb-cli/dataplane/cloud/cloud.go
    • Line 10: warning: exported type CloudType should have comment or be unexported (golint)
    • Line 13: warning: exported const AWS should have comment (or a comment on this block) or be unexported (golint)
    • Line 20: warning: exported type NetworkMode should have comment or be unexported (golint)
    • Line 23: warning: exported const NEW_NETWORK_NEW_SUBNET should have comment (or a comment on this block) or be unexported (golint)
    • Line 31: warning: exported type CloudStorageType should have comment or be unexported (golint)
    • Line 34: warning: exported const WASB should have comment (or a comment on this block) or be unexported (golint)
    • Line 42: warning: exported type EncryptionType should have comment or be unexported (golint)
    • Line 45: warning: exported const REGION_FIELD should have comment (or a comment on this block) or be unexported (golint)
    • Line 52: warning: exported function SetProviderType should have comment or be unexported (golint)
    • Line 56: warning: exported var CloudProviders should have comment or be unexported (golint)
    • Line 58: warning: exported type CloudProvider should have comment or be unexported (golint)
    • Line 71: warning: exported function GetProvider should have comment or be unexported (golint)
    • Line 75: warning: exported type Node should have comment or be unexported (golint)
    • Line 81: warning: exported type DefaultCloudProvider should have comment or be unexported (golint)
    • Line 84: warning: exported method DefaultCloudProvider.SkippedFields should have comment or be unexported (golint)
    • Line 88: warning: exported method DefaultCloudProvider.GetCredentialParameters should have comment or be unexported (golint)
    • Line 92: warning: exported method DefaultCloudProvider.GenerateDefaultTemplate should have comment or be unexported (golint)
    • Line 105: warning: exported method DefaultCloudProvider.GenerateDefaultSecurityGroup should have comment or be unexported (golint)
    • Line 129: warning: exported function CreateBaseCredentialRequest should have comment or be unexported (golint)
    • cb-cli/dataplane/userprofile/userprofile.go
    • Line 36: warning: exported function GetShowTerminatedClustersPreferences should have comment or be unexported (golint)
    • Line 55: warning: exported function ActivateShowTerminatedClusters should have comment or be unexported (golint)
    • Line 71: warning: exported function DectivateShowTerminatedClusters should have comment or be unexported (golint)
    • Line 86: warning: exported function DeleteShowTerminatedClustersPreferences should have comment or be unexported (golint)
    • cb-cli/dataplane/env/environment.go
    • Line 32: warning: exported var EnvironmentHeader should have comment or be unexported (golint)
    • Line 114: warning: exported function CreateEnvironmentFromTemplate should have comment or be unexported (golint)
    • Line 135: warning: exported function EditEnvironmentFromTemplate should have comment or be unexported (golint)
    • Line 163: warning: exported function EditEnvironmentTelemetryFeaturesFromTemplate should have comment or be unexported (golint)
    • Line 203: warning: exported function GenerateAwsEnvironmentTemplate should have comment or be unexported (golint)
    • Line 209: warning: exported function GenerateAzureEnvironmentTemplate should have comment or be unexported (golint)
    • Line 261: warning: exported function ListEnvironments should have comment or be unexported (golint)
    • Line 355: warning: exported function DescribeEnvironment should have comment or be unexported (golint)
    • Line 381: warning: exported function StartEnvironment should have comment or be unexported (golint)
    • Line 393: warning: exported function StopEnvironment should have comment or be unexported (golint)
    • Line 405: warning: exported function DeleteEnvironment should have comment or be unexported (golint)
    • Line 419: warning: exported function ChangeCredential should have comment or be unexported (golint)
    • Line 438: warning: exported function GetResourceGroups should have comment or be unexported (golint)
    • Line 527: warning: exported function GetEnvCrnByName should have comment or be unexported (golint)
    • cb-cli/dataplane/flags/flags.go
    • Line 11: warning: exported var REQUIRED should have comment or be unexported (golint)
    • Line 12: warning: exported var OPTIONAL should have comment or be unexported (golint)
    • Line 15: warning: exported var FlDebugOptional should have comment or be unexported (golint)
    • Line 1623: warning: exported type RequiredFlag should have comment or be unexported (golint)
    • Line 1627: warning: exported type StringFlag should have comment or be unexported (golint)
    • Line 1632: warning: exported type StringSliceFlag should have comment or be unexported (golint)
    • Line 1637: warning: exported type BoolFlag should have comment or be unexported (golint)
    • Line 1642: warning: exported type IntFlag should have comment or be unexported (golint)
    • Line 1647: warning: exported type Int64Flag should have comment or be unexported (golint)
    • Line 1652: warning: exported type Float64Flag should have comment or be unexported (golint)
    • Line 1657: warning: exported function RequiredFlags should have comment or be unexported (golint)
    • Line 1667: warning: exported function OptionalFlags should have comment or be unexported (golint)
    • Line 1679: warning: exported function CheckRequiredFlagsAndArguments should have comment or be unexported (golint)
    • Line 1751: warning: exported type FlagBuilder should have comment or be unexported (golint)
    • Line 1755: warning: exported function NewFlagBuilder should have comment or be unexported (golint)
    • Line 1759: warning: exported method FlagBuilder.AddFlags should have comment or be unexported (golint)
    • Line 1766: warning: exported method FlagBuilder.AddAGlobalFlags should have comment or be unexported (golint)
    • Line 1773: warning: exported method FlagBuilder.AddGlobalFlagsWithoutWorkspace should have comment or be unexported (golint)
    • Line 1780: warning: exported method FlagBuilder.AddResourceDefaultFlags should have comment or be unexported (golint)
    • Line 1787: warning: exported method FlagBuilder.AddNameFlag should have comment or be unexported (golint)
    • Line 1794: warning: exported method FlagBuilder.AddResourceFlagsWithOptionalName should have comment or be unexported (golint)
    • Line 1801: warning: exported method FlagBuilder.AddResourceAddressingFlags should have comment or be unexported (golint)
    • Line 1808: warning: exported method FlagBuilder.AddOutputFlag should have comment or be unexported (golint)
    • Line 1813: warning: exported method FlagBuilder.AddTemplateFlags should have comment or be unexported (golint)
    • Line 1820: warning: exported method FlagBuilder.AddCommonKerberosCreateFlags should have comment or be unexported (golint)
    • Line 1828: warning: exported method FlagBuilder.Build should have comment or be unexported (golint)
    • Line 1832: warning: exported function PrintFlagCompletion should have comment or be unexported (golint)
    • cb-cli/dataplane/stack/stack_template.go
    • Line 46: warning: exported function GenerateAwsStackTemplate should have comment or be unexported (golint)
    • Line 51: warning: exported function GenerateAzureStackTemplate should have comment or be unexported (golint)
    • Line 56: warning: exported function GenerateGcpStackTemplate should have comment or be unexported (golint)
    • Line 61: warning: exported function GenerateOpenstackStackTemplate should have comment or be unexported (golint)
    • Line 66: warning: exported function GenerateYarnStackTemplate should have comment or be unexported (golint)
    • Line 71: warning: exported function GenerateAtachedStackTemplate should have comment or be unexported (golint)
    • cb-cli/dataplane/freeipa/freeipa.go
    • Line 30: warning: exported type ClientFreeIpa should have comment or be unexported (golint)
    • Line 38: warning: exported function CreateFreeIpa should have comment or be unexported (golint)
    • Line 52: warning: exported function DeleteFreeIpa should have comment or be unexported (golint)
    • Line 64: warning: exported function DescribeFreeIpa should have comment or be unexported (golint)
    • Line 83: warning: exported function StartFreeIpa should have comment or be unexported (golint)
    • Line 95: warning: exported function StopFreeIpa should have comment or be unexported (golint)
    • Line 107: warning: exported function RebootFreeIpa should have comment or be unexported (golint)
    • Line 138: warning: exported function RepairFreeIpa should have comment or be unexported (golint)
    • Line 203: warning: exported function ListFreeIpa should have comment or be unexported (golint)
    • Line 271: warning: exported function SynchronizeAllUsers should have comment or be unexported (golint)
    • Line 297: warning: exported function SynchronizeCurrentUser should have comment or be unexported (golint)
    • Line 318: warning: exported function SetPassword should have comment or be unexported (golint)
    • Line 363: warning: exported function GetSyncOperationStatus should have comment or be unexported (golint)
    • Line 370: warning: exported function GetVmLogs should have comment or be unexported (golint)
    • Line 388: warning: exported function CollectDiagnostics should have comment or be unexported (golint)
    • Line 507: warning: exported function GetEnvironmentSyncState should have comment or be unexported (golint)
    • Line 529: warning: exported function AddDnsARecord should have comment or be unexported (golint)
    • Line 549: warning: exported function DeleteDnsARecord should have comment or be unexported (golint)
    • Line 561: warning: exported function AddDnsCnameRecord should have comment or be unexported (golint)
    • Line 580: warning: exported function DeleteDnsCnameRecord should have comment or be unexported (golint)
    • cb-cli/dataplane/credential/credential.go
    • Line 26: warning: exported var AwsPrerequisiteOutputHeader should have comment or be unexported (golint)
    • Line 49: warning: exported function CreateAwsCredential should have comment or be unexported (golint)
    • Line 54: warning: exported function ModifyAwsCredential should have comment or be unexported (golint)
    • Line 59: warning: exported function CreateAwsGovCredential should have comment or be unexported (golint)
    • Line 64: warning: exported function ModifyAwsGovCredential should have comment or be unexported (golint)
    • Line 69: warning: exported function CreateAzureCredential should have comment or be unexported (golint)
    • Line 74: warning: exported function ModifyAzureCredential should have comment or be unexported (golint)
    • Line 79: warning: exported function CreateGcpCredential should have comment or be unexported (golint)
    • Line 84: warning: exported function ModifyGcpCredential should have comment or be unexported (golint)
    • Line 89: warning: exported function CreateOpenstackCredential should have comment or be unexported (golint)
    • Line 94: warning: exported function CreateYarnCredential should have comment or be unexported (golint)
    • Line 99: warning: exported function ModifyOpenstackCredential should have comment or be unexported (golint)
    • Line 104: warning: exported function CreateCredentialFromFile should have comment or be unexported (golint)
    • Line 112: warning: exported function ModifyCredentialFromFile should have comment or be unexported (golint)
    • Line 135: warning: exported function VerifyCredential should have comment or be unexported (golint)
    • Line 313: warning: exported function DescribeCredential should have comment or be unexported (golint)
    • Line 329: warning: exported function DeleteCredential should have comment or be unexported (golint)
    • Line 341: warning: exported function ListCredentials should have comment or be unexported (golint)
    • Line 379: warning: exported function GetAwsCredentialPrerequisites should have comment or be unexported (golint)
    • cb-cli/cmd/command_tree.go
    • Line 60: warning: exported type Tree should have comment or be unexported (golint)
    • Line 70: warning: exported type Printer should have comment or be unexported (golint)
    • Line 75: warning: exported function New should have comment or be unexported (golint)
    • cb-cli/dataplane/clustertemplate/clustertemplate.go
    • Line 56: warning: exported function CreateClusterTemplateFromUrl should have comment or be unexported (golint)
    • Line 70: warning: exported function CreateClusterTemplateFromFile should have comment or be unexported (golint)
    • Line 105: warning: exported function DescribeClusterTemplate should have comment or be unexported (golint)
    • Line 118: warning: exported type GetClusterTemplateInWorkspace should have comment or be unexported (golint)
    • Line 122: warning: exported function FetchClusterTemplate should have comment or be unexported (golint)
    • Line 130: warning: exported function DeleteClusterTemplates should have comment or be unexported (golint)
    • Line 146: warning: exported function ListClusterTemplates should have comment or be unexported (golint)
    • cb-cli/dataplane/recipe/recipe.go
    • Line 51: warning: exported function CreateRecipeFromFile should have comment or be unexported (golint)
    • Line 109: warning: exported function DescribeRecipe should have comment or be unexported (golint)
    • Line 127: warning: exported function DeleteRecipes should have comment or be unexported (golint)
    • Line 140: warning: exported function ListRecipes should have comment or be unexported (golint)
    • cb-cli/dataplane/cloud/openstack/stack_template.go
    • Line 9: warning: exported method OpenstackProvider.GenerateDefaultNetwork should have comment or be unexported (golint)
    • Line 43: warning: exported method OpenstackProvider.GenerateDefaultNetworkWithParams should have comment or be unexported (golint)
    • Line 47: warning: exported method OpenstackProvider.SetParametersTemplate should have comment or be unexported (golint)
    • Line 50: warning: exported method OpenstackProvider.SetInstanceGroupParametersTemplate should have comment or be unexported (golint)
    • Line 53: warning: exported method OpenstackProvider.GenerateNetworkRequestFromNetworkResponse should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell97%

Misspell Finds commonly misspelled English words