Preparing report...

Report for proxy-git.cwkhome.fun/openshift/origin

(v4.1.0+incompatible)

A+    Excellent!    Found 413 issues across 2156 files

Tweet

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!


gofmt92%

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


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


gocyclo85%

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.

    • test/extended/images/helper.go
    • Line 158: warning: cyclomatic complexity 16 of function BuildAndPushImageOfSizeWithBuilder() is high (> 15) (gocyclo)
    • Line 614: warning: cyclomatic complexity 16 of function RunHardPrune() is high (> 15) (gocyclo)
    • pkg/security/apiserver/securitycontextconstraints/provider.go
    • Line 281: warning: cyclomatic complexity 21 of function (*simpleProvider).ValidateContainerSecurityContext() is high (> 15) (gocyclo)
    • Line 209: warning: cyclomatic complexity 21 of function (*simpleProvider).ValidatePodSecurityContext() is high (> 15) (gocyclo)
    • Line 152: warning: cyclomatic complexity 16 of function (*simpleProvider).CreateContainerSecurityContext() is high (> 15) (gocyclo)
    • test/integration/imageimporter_test.go
    • Line 657: warning: cyclomatic complexity 52 of function TestImageStreamImportScheduled() is high (> 15) (gocyclo)
    • Line 38: warning: cyclomatic complexity 46 of function TestImageStreamImport() is high (> 15) (gocyclo)
    • Line 394: warning: cyclomatic complexity 39 of function TestImageStreamImportAuthenticated() is high (> 15) (gocyclo)
    • Line 840: warning: cyclomatic complexity 28 of function TestImageStreamImportDockerHub() is high (> 15) (gocyclo)
    • Line 561: warning: cyclomatic complexity 23 of function TestImageStreamImportTagsFromRepository() is high (> 15) (gocyclo)
    • Line 954: warning: cyclomatic complexity 18 of function TestImageStreamImportRedHatRegistry() is high (> 15) (gocyclo)
    • Line 260: warning: cyclomatic complexity 17 of function testImageStreamImportWithPath() is high (> 15) (gocyclo)
    • pkg/oc/cli/set/probe.go
    • Line 245: warning: cyclomatic complexity 23 of function (*ProbeOptions).Validate() is high (> 15) (gocyclo)
    • Line 163: warning: cyclomatic complexity 20 of function (*ProbeOptions).Complete() is high (> 15) (gocyclo)
    • Line 290: warning: cyclomatic complexity 16 of function (*ProbeOptions).Run() is high (> 15) (gocyclo)
    • pkg/bulk/cmd.go
    • Line 58: warning: cyclomatic complexity 16 of function (*Bulk).Run() is high (> 15) (gocyclo)
    • pkg/oc/cli/admin/prune/imageprune/prune.go
    • Line 405: warning: cyclomatic complexity 18 of function (*pruner).addImageStreamsToGraph() is high (> 15) (gocyclo)
    • Line 773: warning: cyclomatic complexity 16 of function (*pruner).addBuildStrategyImageReferencesToGraph() is high (> 15) (gocyclo)
    • pkg/cmd/server/apis/config/validation/master.go
    • Line 192: warning: cyclomatic complexity 24 of function ValidateAuditConfig() is high (> 15) (gocyclo)
    • Line 35: warning: cyclomatic complexity 17 of function ValidateMasterConfig() is high (> 15) (gocyclo)
    • Line 487: warning: cyclomatic complexity 16 of function ValidateKubernetesMasterConfig() is high (> 15) (gocyclo)
    • test/integration/scopes_test.go
    • Line 222: warning: cyclomatic complexity 19 of function TestTokensWithIllegalScopes() is high (> 15) (gocyclo)
    • Line 444: warning: cyclomatic complexity 19 of function TestUnknownScopes() is high (> 15) (gocyclo)
    • pkg/oc/lib/newapp/cmd/resolve.go
    • Line 99: warning: cyclomatic complexity 23 of function Resolve() is high (> 15) (gocyclo)
    • Line 201: warning: cyclomatic complexity 18 of function AddSourceRepositoriesToRefBuilder() is high (> 15) (gocyclo)
    • Line 417: warning: cyclomatic complexity 17 of function InferBuildTypes() is high (> 15) (gocyclo)
    • Line 472: warning: cyclomatic complexity 16 of function EnsureHasSource() is high (> 15) (gocyclo)
    • test/integration/project_test.go
    • Line 460: warning: cyclomatic complexity 24 of function TestInvalidRoleRefs() is high (> 15) (gocyclo)
    • Line 339: warning: cyclomatic complexity 20 of function TestScopedProjectAccess() is high (> 15) (gocyclo)
    • test/integration/build_admission_test.go
    • Line 40: warning: cyclomatic complexity 23 of function TestPolicyBasedRestrictionOfBuildCreateAndCloneByStrategy() is high (> 15) (gocyclo)
    • Line 116: warning: cyclomatic complexity 23 of function TestPolicyBasedRestrictionOfBuildConfigCreateAndInstantiateByStrategy() is high (> 15) (gocyclo)
    • pkg/unidling/controller/unidling_controller_test.go
    • Line 31: warning: cyclomatic complexity 23 of function prepFakeClient() is high (> 15) (gocyclo)
    • Line 420: warning: cyclomatic complexity 21 of function prepareFakeClientForFailureTest() is high (> 15) (gocyclo)
    • Line 213: warning: cyclomatic complexity 19 of function TestControllerIgnoresAlreadyScaledObjects() is high (> 15) (gocyclo)
    • pkg/oc/cli/admin/policy/modify_roles.go
    • Line 460: warning: cyclomatic complexity 32 of function (*RoleModificationOptions).AddRole() is high (> 15) (gocyclo)
    • Line 622: warning: cyclomatic complexity 23 of function (*RoleModificationOptions).RemoveRole() is high (> 15) (gocyclo)
    • pkg/build/controller/build/build_controller.go
    • Line 882: warning: cyclomatic complexity 39 of function (*BuildController).createBuildPod() is high (> 15) (gocyclo)
    • Line 1087: warning: cyclomatic complexity 29 of function (*BuildController).handleActiveBuild() is high (> 15) (gocyclo)
    • Line 1224: warning: cyclomatic complexity 20 of function (*BuildController).updateBuild() is high (> 15) (gocyclo)
    • Line 2009: warning: cyclomatic complexity 16 of function setBuildCompletionData() is high (> 15) (gocyclo)
    • pkg/network/node/egressip_test.go
    • Line 179: warning: cyclomatic complexity 35 of function TestEgressIP() is high (> 15) (gocyclo)
    • Line 371: warning: cyclomatic complexity 21 of function TestMultipleNamespaceEgressIPs() is high (> 15) (gocyclo)
    • pkg/oc/cli/image/info/info.go
    • Line 189: warning: cyclomatic complexity 35 of function describeImage() is high (> 15) (gocyclo)
    • Line 87: warning: cyclomatic complexity 19 of function (*InfoOptions).Run() is high (> 15) (gocyclo)
    • Line 338: warning: cyclomatic complexity 17 of function (*ImageRetriever).Run() is high (> 15) (gocyclo)
    • pkg/oc/cli/newapp/newapp.go
    • Line 326: warning: cyclomatic complexity 44 of function (*AppOptions).RunNewApp() is high (> 15) (gocyclo)
    • Line 654: warning: cyclomatic complexity 30 of function CompleteAppConfig() is high (> 15) (gocyclo)
    • Line 1036: warning: cyclomatic complexity 23 of function printHumanReadableQueryResult() is high (> 15) (gocyclo)
    • pkg/api/imagereferencemutators/pods.go
    • Line 173: warning: cyclomatic complexity 42 of function GetTemplateMetaObject() is high (> 15) (gocyclo)
    • Line 97: warning: cyclomatic complexity 28 of function GetPodSpecV1() is high (> 15) (gocyclo)
    • Line 56: warning: cyclomatic complexity 17 of function GetPodSpec() is high (> 15) (gocyclo)
    • pkg/oauthserver/oauthserver/auth.go
    • Line 328: warning: cyclomatic complexity 30 of function (*OAuthServerConfig).getAuthenticationHandler() is high (> 15) (gocyclo)
    • Line 554: warning: cyclomatic complexity 18 of function (*OAuthServerConfig).getPasswordAuthenticator() is high (> 15) (gocyclo)
    • pkg/oc/cli/set/triggers.go
    • Line 686: warning: cyclomatic complexity 43 of function (*TriggerDefinition).Apply() is high (> 15) (gocyclo)
    • Line 408: warning: cyclomatic complexity 36 of function (*TriggersOptions).updateTriggers() is high (> 15) (gocyclo)
    • Line 169: warning: cyclomatic complexity 26 of function (*TriggersOptions).Complete() is high (> 15) (gocyclo)
    • Line 266: warning: cyclomatic complexity 18 of function (*TriggersOptions).Validate() is high (> 15) (gocyclo)
    • pkg/oc/cli/startbuild/startbuild.go
    • Line 185: warning: cyclomatic complexity 38 of function (*StartBuildOptions).Complete() is high (> 15) (gocyclo)
    • Line 538: warning: cyclomatic complexity 36 of function streamPathToBuild() is high (> 15) (gocyclo)
    • Line 372: warning: cyclomatic complexity 24 of function (*StartBuildOptions).Run() is high (> 15) (gocyclo)
    • Line 920: warning: cyclomatic complexity 18 of function WaitForBuildComplete() is high (> 15) (gocyclo)
    • Line 784: warning: cyclomatic complexity 18 of function (*StartBuildOptions).RunStartBuildWebHook() is high (> 15) (gocyclo)
    • Line 334: warning: cyclomatic complexity 16 of function (*StartBuildOptions).Validate() is high (> 15) (gocyclo)
    • pkg/oc/lib/describe/projectstatus.go
    • Line 191: warning: cyclomatic complexity 81 of function (*ProjectStatusDescriber).Describe() is high (> 15) (gocyclo)
    • Line 666: warning: cyclomatic complexity 21 of function (namespacedFormatter).ResourceName() is high (> 15) (gocyclo)
    • Line 968: warning: cyclomatic complexity 17 of function (exposedRoutes).Less() is high (> 15) (gocyclo)
    • Line 1175: warning: cyclomatic complexity 16 of function describeAdditionalBuildDetail() is high (> 15) (gocyclo)
    • pkg/build/generator/generator_test.go
    • Line 900: warning: cyclomatic complexity 22 of function TestGenerateBuildFromConfig() is high (> 15) (gocyclo)
    • Line 462: warning: cyclomatic complexity 17 of function TestInstantiateWithBuildRequestEnvs() is high (> 15) (gocyclo)
    • pkg/image/apis/image/validation/validation.go
    • Line 88: warning: cyclomatic complexity 23 of function validateImageSignature() is high (> 15) (gocyclo)
    • Line 165: warning: cyclomatic complexity 18 of function ValidateImageStreamWithWhitelister() is high (> 15) (gocyclo)
    • Line 501: warning: cyclomatic complexity 18 of function ValidateImageStreamImport() is high (> 15) (gocyclo)
    • test/integration/authorization_rbac_proxy_test.go
    • Line 38: warning: cyclomatic complexity 25 of function TestLegacyLocalRoleBindingEndpoint() is high (> 15) (gocyclo)
    • Line 482: warning: cyclomatic complexity 23 of function TestLegacyLocalRoleEndpoint() is high (> 15) (gocyclo)
    • Line 355: warning: cyclomatic complexity 22 of function TestLegacyClusterRoleEndpoint() is high (> 15) (gocyclo)
    • Line 214: warning: cyclomatic complexity 22 of function TestLegacyClusterRoleBindingEndpoint() is high (> 15) (gocyclo)
    • Line 622: warning: cyclomatic complexity 21 of function TestLegacyEndpointConfirmNoEscalation() is high (> 15) (gocyclo)
    • test/integration/imagestream_admission_test.go
    • Line 38: warning: cyclomatic complexity 18 of function TestImageStreamTagsAdmission() is high (> 15) (gocyclo)
    • Line 240: warning: cyclomatic complexity 17 of function TestImageStreamAdmitSpecUpdate() is high (> 15) (gocyclo)
    • Line 354: warning: cyclomatic complexity 16 of function TestImageStreamAdmitStatusUpdate() is high (> 15) (gocyclo)
    • pkg/image/importer/importer.go
    • Line 461: warning: cyclomatic complexity 31 of function (*ImageStreamImporter).importRepositoryFromDocker() is high (> 15) (gocyclo)
    • Line 592: warning: cyclomatic complexity 22 of function importRepositoryFromDockerV1() is high (> 15) (gocyclo)
    • Line 105: warning: cyclomatic complexity 19 of function (*ImageStreamImporter).importImages() is high (> 15) (gocyclo)
    • pkg/oc/cli/cancelbuild/cancelbuild.go
    • Line 209: warning: cyclomatic complexity 24 of function (*CancelBuildOptions).RunCancelBuild() is high (> 15) (gocyclo)
    • Line 115: warning: cyclomatic complexity 17 of function (*CancelBuildOptions).Complete() is high (> 15) (gocyclo)
    • test/integration/newapp_test.go
    • Line 985: warning: cyclomatic complexity 56 of function TestNewAppRunBuilds() is high (> 15) (gocyclo)
    • Line 333: warning: cyclomatic complexity 42 of function TestNewAppRunAll() is high (> 15) (gocyclo)
    • Line 1509: warning: cyclomatic complexity 26 of function TestNewAppBuildOutputCycleDetection() is high (> 15) (gocyclo)
    • Line 2033: warning: cyclomatic complexity 20 of function setupLocalGitRepo() is high (> 15) (gocyclo)
    • Line 1812: warning: cyclomatic complexity 16 of function TestNewAppBuildConfigEnvVarsAndSecrets() is high (> 15) (gocyclo)
    • pkg/oc/cli/set/routebackends.go
    • Line 432: warning: cyclomatic complexity 24 of function (*BackendInput).Apply() is high (> 15) (gocyclo)
    • Line 187: warning: cyclomatic complexity 17 of function (*BackendsOptions).Run() is high (> 15) (gocyclo)
    • test/extended/util/framework.go
    • Line 1175: warning: cyclomatic complexity 23 of function FixturePath() is high (> 15) (gocyclo)
    • Line 869: warning: cyclomatic complexity 17 of function WaitForDeploymentConfig() is high (> 15) (gocyclo)
    • Line 683: warning: cyclomatic complexity 16 of function WaitForABuild() is high (> 15) (gocyclo)
    • test/integration/imagestream_test.go
    • Line 29: warning: cyclomatic complexity 49 of function TestImageStreamMappingCreate() is high (> 15) (gocyclo)
    • Line 450: warning: cyclomatic complexity 20 of function TestRegistryWhitelistingValidation() is high (> 15) (gocyclo)
    • Line 217: warning: cyclomatic complexity 17 of function TestImageStreamWithoutDockerImageConfig() is high (> 15) (gocyclo)
    • Line 315: warning: cyclomatic complexity 16 of function TestImageStreamTagLifecycleHook() is high (> 15) (gocyclo)
    • pkg/util/ovs/fake_ovs_test.go
    • Line 126: warning: cyclomatic complexity 25 of function TestFakeFind() is high (> 15) (gocyclo)
    • Line 38: warning: cyclomatic complexity 16 of function TestTransaction() is high (> 15) (gocyclo)
    • pkg/security/apis/security/v1/zz_generated.defaults.go
    • Line 27: warning: cyclomatic complexity 92 of function SetObjectDefaults_PodSecurityPolicyReview() is high (> 15) (gocyclo)
    • Line 580: warning: cyclomatic complexity 91 of function SetObjectDefaults_PodSecurityPolicySubjectReview() is high (> 15) (gocyclo)
    • Line 305: warning: cyclomatic complexity 91 of function SetObjectDefaults_PodSecurityPolicySelfSubjectReview() is high (> 15) (gocyclo)
    • pkg/oc/cli/admin/release/info.go
    • Line 876: warning: cyclomatic complexity 44 of function describeReleaseInfo() is high (> 15) (gocyclo)
    • Line 680: warning: cyclomatic complexity 37 of function describeReleaseDiff() is high (> 15) (gocyclo)
    • Line 476: warning: cyclomatic complexity 28 of function (*InfoOptions).LoadReleaseInfo() is high (> 15) (gocyclo)
    • Line 1094: warning: cyclomatic complexity 28 of function describeChangelog() is high (> 15) (gocyclo)
    • Line 170: warning: cyclomatic complexity 23 of function (*InfoOptions).Validate() is high (> 15) (gocyclo)
    • Line 1230: warning: cyclomatic complexity 18 of function describeBugs() is high (> 15) (gocyclo)
    • Line 339: warning: cyclomatic complexity 17 of function calculateDiff() is high (> 15) (gocyclo)
    • Line 1404: warning: cyclomatic complexity 16 of function releaseDiffContentChanges() is high (> 15) (gocyclo)
    • pkg/oc/cli/admin/release/new.go
    • Line 335: warning: cyclomatic complexity 109 of function (*NewOptions).Run() is high (> 15) (gocyclo)
    • Line 1080: warning: cyclomatic complexity 48 of function (*NewOptions).write() is high (> 15) (gocyclo)
    • Line 775: warning: cyclomatic complexity 37 of function resolveImageStreamTagsToReferenceMode() is high (> 15) (gocyclo)
    • Line 1283: warning: cyclomatic complexity 28 of function writePayload() is high (> 15) (gocyclo)
    • Line 901: warning: cyclomatic complexity 24 of function (*NewOptions).extractManifests() is high (> 15) (gocyclo)
    • pkg/oc/cli/tag/tag.go
    • Line 360: warning: cyclomatic complexity 37 of function (TagOptions).Run() is high (> 15) (gocyclo)
    • Line 160: warning: cyclomatic complexity 32 of function (*TagOptions).Complete() is high (> 15) (gocyclo)
    • Line 304: warning: cyclomatic complexity 23 of function (TagOptions).Validate() is high (> 15) (gocyclo)
    • pkg/build/apis/build/validation/validation.go
    • Line 176: warning: cyclomatic complexity 19 of function validateSource() is high (> 15) (gocyclo)
    • Line 584: warning: cyclomatic complexity 17 of function validateTrigger() is high (> 15) (gocyclo)
    • Line 405: warning: cyclomatic complexity 17 of function validateImageReference() is high (> 15) (gocyclo)
    • pkg/oc/cli/process/process.go
    • Line 313: warning: cyclomatic complexity 36 of function (*ProcessOptions).RunProcess() is high (> 15) (gocyclo)
    • Line 211: warning: cyclomatic complexity 18 of function (*ProcessOptions).Complete() is high (> 15) (gocyclo)
    • pkg/oc/cli/image/mirror/mirror.go
    • Line 314: warning: cyclomatic complexity 33 of function (*MirrorImageOptions).plan() is high (> 15) (gocyclo)
    • Line 496: warning: cyclomatic complexity 26 of function copyBlob() is high (> 15) (gocyclo)
    • Line 195: warning: cyclomatic complexity 22 of function (*MirrorImageOptions).Run() is high (> 15) (gocyclo)
    • pkg/oc/lib/newapp/cmd/newapp.go
    • Line 825: warning: cyclomatic complexity 44 of function (*AppConfig).Run() is high (> 15) (gocyclo)
    • Line 1272: warning: cyclomatic complexity 30 of function (*AppConfig).checkCircularReferences() is high (> 15) (gocyclo)
    • Line 414: warning: cyclomatic complexity 28 of function (*AppConfig).buildPipelines() is high (> 15) (gocyclo)
    • Line 689: warning: cyclomatic complexity 21 of function (*AppConfig).RunQuery() is high (> 15) (gocyclo)
    • Line 592: warning: cyclomatic complexity 19 of function (*AppConfig).installComponents() is high (> 15) (gocyclo)
    • Line 1076: warning: cyclomatic complexity 17 of function (*AppConfig).crossStreamInputToOutputTagReference() is high (> 15) (gocyclo)
    • Line 1128: warning: cyclomatic complexity 16 of function (*AppConfig).followRefToDockerImage() is high (> 15) (gocyclo)
    • pkg/util/labels.go
    • Line 24: warning: cyclomatic complexity 18 of function AddObjectLabelsWithFlags() is high (> 15) (gocyclo)
    • Line 107: warning: cyclomatic complexity 17 of function AddObjectAnnotations() is high (> 15) (gocyclo)
    • pkg/oc/cli/set/volume.go
    • Line 252: warning: cyclomatic complexity 29 of function (*AddVolumeOptions).Validate() is high (> 15) (gocyclo)
    • Line 440: warning: cyclomatic complexity 25 of function (*VolumeOptions).RunVolume() is high (> 15) (gocyclo)
    • Line 218: warning: cyclomatic complexity 21 of function (*VolumeOptions).Validate() is high (> 15) (gocyclo)
    • Line 381: warning: cyclomatic complexity 19 of function (*AddVolumeOptions).Complete() is high (> 15) (gocyclo)
    • Line 751: warning: cyclomatic complexity 17 of function (*VolumeOptions).addVolumeToSpec() is high (> 15) (gocyclo)
    • Line 924: warning: cyclomatic complexity 16 of function (*VolumeOptions).listVolumeForSpec() is high (> 15) (gocyclo)
    • pkg/build/controller/build/build_controller_test.go
    • Line 1244: warning: cyclomatic complexity 44 of function TestHandleControllerConfig() is high (> 15) (gocyclo)
    • Line 1021: warning: cyclomatic complexity 38 of function TestSetBuildCompletionTimestampAndDuration() is high (> 15) (gocyclo)
    • Line 1840: warning: cyclomatic complexity 33 of function validateUpdate() is high (> 15) (gocyclo)
    • Line 72: warning: cyclomatic complexity 29 of function TestHandleBuild() is high (> 15) (gocyclo)
    • pkg/oc/cli/debug/debug.go
    • Line 207: warning: cyclomatic complexity 33 of function (*DebugOptions).Complete() is high (> 15) (gocyclo)
    • Line 742: warning: cyclomatic complexity 30 of function (*DebugOptions).approximatePodTemplateForObject() is high (> 15) (gocyclo)
    • Line 320: warning: cyclomatic complexity 30 of function (*DebugOptions).RunDebug() is high (> 15) (gocyclo)
    • Line 589: warning: cyclomatic complexity 22 of function (*DebugOptions).transformPodForDebug() is high (> 15) (gocyclo)
    • pkg/util/ovs/parse.go
    • Line 155: warning: cyclomatic complexity 63 of function ParseFlow() is high (> 15) (gocyclo)
    • Line 312: warning: cyclomatic complexity 17 of function FlowMatches() is high (> 15) (gocyclo)
    • Line 80: warning: cyclomatic complexity 16 of function parseActions() is high (> 15) (gocyclo)
    • pkg/oc/cli/observe/observe.go
    • Line 412: warning: cyclomatic complexity 35 of function (*ObserveOptions).Run() is high (> 15) (gocyclo)
    • Line 286: warning: cyclomatic complexity 22 of function (*ObserveOptions).Complete() is high (> 15) (gocyclo)
    • test/e2e/upgrade/upgrade.go
    • Line 301: warning: cyclomatic complexity 32 of function clusterUpgrade() is high (> 15) (gocyclo)
    • Line 224: warning: cyclomatic complexity 25 of function getUpgradeContext() is high (> 15) (gocyclo)
    • test/common/build/controllers.go
    • Line 361: warning: cyclomatic complexity 35 of function RunImageChangeTriggerTest() is high (> 15) (gocyclo)
    • Line 171: warning: cyclomatic complexity 28 of function RunBuildControllerPodSyncTest() is high (> 15) (gocyclo)
    • Line 608: warning: cyclomatic complexity 20 of function RunBuildRunningPodDeleteTest() is high (> 15) (gocyclo)
    • tools/depcheck/pkg/graph/filter_test.go
    • Line 111: warning: cyclomatic complexity 23 of function TestVendorPackagesCollapsedIntoRepo() is high (> 15) (gocyclo)
    • Line 226: warning: cyclomatic complexity 19 of function TestCollapsedGraphPreservesNonVendorNodes() is high (> 15) (gocyclo)
    • pkg/cmd/server/apis/config/v1/zz_generated.conversion.go
    • Line 29: warning: cyclomatic complexity 184 of function RegisterConversions() is high (> 15) (gocyclo)
    • Line 2221: warning: cyclomatic complexity 25 of function autoConvert_config_MasterConfig_To_v1_MasterConfig() is high (> 15) (gocyclo)
    • Line 2128: warning: cyclomatic complexity 25 of function autoConvert_v1_MasterConfig_To_config_MasterConfig() is high (> 15) (gocyclo)
    • pkg/oc/cli/login/loginoptions.go
    • Line 254: warning: cyclomatic complexity 23 of function (*LoginOptions).gatherProjectInfo() is high (> 15) (gocyclo)
    • Line 92: warning: cyclomatic complexity 16 of function (*LoginOptions).getClientConfig() is high (> 15) (gocyclo)
    • pkg/network/common/egressip_test.go
    • Line 807: warning: cyclomatic complexity 27 of function TestEgressCIDRAllocation() is high (> 15) (gocyclo)
    • Line 1137: warning: cyclomatic complexity 23 of function TestEgressCIDRAllocationOffline() is high (> 15) (gocyclo)
    • Line 113: warning: cyclomatic complexity 18 of function TestEgressIP() is high (> 15) (gocyclo)
    • test/integration/deploy_trigger_test.go
    • Line 210: warning: cyclomatic complexity 33 of function TestTriggers_imageChange_nonAutomatic() is high (> 15) (gocyclo)
    • Line 389: warning: cyclomatic complexity 28 of function TestTriggers_MultipleICTs() is high (> 15) (gocyclo)
    • Line 551: warning: cyclomatic complexity 21 of function TestTriggers_configChange() is high (> 15) (gocyclo)
    • Line 105: warning: cyclomatic complexity 17 of function TestTriggers_imageChange() is high (> 15) (gocyclo)
    • pkg/oc/lib/describe/describer.go
    • Line 842: warning: cyclomatic complexity 31 of function (*RouteDescriber).Describe() is high (> 15) (gocyclo)
    • Line 288: warning: cyclomatic complexity 27 of function describeCommonSpec() is high (> 15) (gocyclo)
    • Line 984: warning: cyclomatic complexity 24 of function (*ProjectDescriber).Describe() is high (> 15) (gocyclo)
    • Line 492: warning: cyclomatic complexity 16 of function describeBuildTriggers() is high (> 15) (gocyclo)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!