forked from cloudfoundry/cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
lintdebt
64 lines (64 loc) · 7.94 KB
/
lintdebt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
cf/actors/push.go:106::warning: cyclomatic complexity 14 of function (PushActorImpl).GatherFiles() is high (> 10) (gocyclo)
cf/actors/push.go:55::warning: cyclomatic complexity 11 of function (PushActorImpl).ProcessPath() is high (> 10) (gocyclo)
cf/actors/routes.go:191::warning: cyclomatic complexity 12 of function (routeActor).FindAndBindRoute() is high (> 10) (gocyclo)
cf/actors/services.go:67::warning: cyclomatic complexity 15 of function (ServiceHandler).buildBrokersVisibleFromOrg() is high (> 10) (gocyclo)
cf/actors/services_plans.go:194::warning: cyclomatic complexity 23 of function (ServicePlanHandler).FindServiceAccess() is high (> 10) (gocyclo)
cf/api/buildpack_bits.go:100::warning: cyclomatic complexity 14 of function normalizeBuildpackArchive() is high (> 10) (gocyclo)
cf/api/resources/applications.go:124::warning: cyclomatic complexity 19 of function (ApplicationResource).ToFields() is high (> 10) (gocyclo)
cf/api_versions.go:5:1:warning: _ is unused (deadcode)
cf/appfiles/app_files.go:165::warning: cyclomatic complexity 11 of function (ApplicationFiles).WalkAppFiles() is high (> 10) (gocyclo)
cf/appfiles/zipper.go:139::warning: cyclomatic complexity 11 of function writeZipFile() is high (> 10) (gocyclo)
cf/appfiles/zipper.go:77::warning: cyclomatic complexity 12 of function (ApplicationZipper).Unzip() is high (> 10) (gocyclo)
cf/cmd/cmd.go:32::warning: cyclomatic complexity 15 of function Main() is high (> 10) (gocyclo)
cf/commands/application/app.go:102::warning: cyclomatic complexity 19 of function (*ShowApp).ShowApp() is high (> 10) (gocyclo)
cf/commands/application/copy_source.go:86::warning: cyclomatic complexity 13 of function (*CopySource).Execute() is high (> 10) (gocyclo)
cf/commands/application/push.go:180::warning: cyclomatic complexity 26 of function (*Push).Execute() is high (> 10) (gocyclo)
cf/commands/application/push.go:347::warning: cyclomatic complexity 19 of function (*Push).updateRoutes() is high (> 10) (gocyclo)
cf/commands/application/push.go:607::warning: cyclomatic complexity 13 of function (*Push).createAppSetFromContextAndManifest() is high (> 10) (gocyclo)
cf/commands/application/push.go:676::warning: cyclomatic complexity 28 of function (*Push).getAppParamsFromContext() is high (> 10) (gocyclo)
cf/commands/application/scale.go:77::warning: cyclomatic complexity 12 of function (*Scale).Execute() is high (> 10) (gocyclo)
cf/commands/application/start.go:239::warning: cyclomatic complexity 14 of function (*Start).TailStagingLogs() is high (> 10) (gocyclo)
cf/commands/buildpack/update_buildpack.go:70::warning: cyclomatic complexity 19 of function (*UpdateBuildpack).Execute() is high (> 10) (gocyclo)
cf/commands/config.go:53::warning: cyclomatic complexity 16 of function (*ConfigCommands).Execute() is high (> 10) (gocyclo)
cf/commands/create_app_manifest.go:119::warning: cyclomatic complexity 16 of function (*CreateAppManifest).createManifest() is high (> 10) (gocyclo)
cf/commands/curl.go:79::warning: cyclomatic complexity 11 of function (*Curl).Execute() is high (> 10) (gocyclo)
cf/commands/help.go:48::warning: cyclomatic complexity 13 of function (*Help).Execute() is high (> 10) (gocyclo)
cf/commands/login.go:184::warning: cyclomatic complexity 16 of function (Login).authenticate() is high (> 10) (gocyclo)
cf/commands/organization/create_org.go:74::warning: cyclomatic complexity 11 of function (*CreateOrg).Execute() is high (> 10) (gocyclo)
cf/commands/organization/org.go:68::warning: cyclomatic complexity 12 of function (*ShowOrg).Execute() is high (> 10) (gocyclo)
cf/commands/plugin/install_plugin.go:192::warning: cyclomatic complexity 16 of function (*PluginInstall).ensurePluginIsSafeForInstallation() is high (> 10) (gocyclo)
cf/commands/plugin/install_plugin.go:28:6:warning: type name will be used as plugin.PluginInstall by other packages, and that stutters; consider calling this Install (golint)
cf/commands/plugin/uninstall_plugin.go:102:1:warning: error should be the last type when returning multiple items (golint)
cf/commands/plugin/uninstall_plugin.go:19:6:warning: type name will be used as plugin.PluginUninstall by other packages, and that stutters; consider calling this Uninstall (golint)
cf/commands/pluginrepo/add_plugin_repo.go:62::warning: cyclomatic complexity 11 of function (*AddPluginRepo).Execute() is high (> 10) (gocyclo)
cf/commands/quota/create_quota.go:87::warning: cyclomatic complexity 14 of function (*CreateQuota).Execute() is high (> 10) (gocyclo)
cf/commands/quota/update_quota.go:89::warning: cyclomatic complexity 17 of function (*UpdateQuota).Execute() is high (> 10) (gocyclo)
cf/commands/route/create_route.go:68::warning: cyclomatic complexity 12 of function (*CreateRoute).Requirements() is high (> 10) (gocyclo)
cf/commands/route/map_route.go:63::warning: cyclomatic complexity 13 of function (*MapRoute).Requirements() is high (> 10) (gocyclo)
cf/commands/service/migrate_service_instances.go:68::warning: cyclomatic complexity 12 of function (*MigrateServiceInstances).Execute() is high (> 10) (gocyclo)
cf/commands/serviceaccess/service_access.go:69::warning: cyclomatic complexity 15 of function (*ServiceAccess).Execute() is high (> 10) (gocyclo)
cf/commands/space/create_space.go:81::warning: cyclomatic complexity 13 of function (*CreateSpace).Execute() is high (> 10) (gocyclo)
cf/commands/space/space.go:72::warning: cyclomatic complexity 12 of function (*ShowSpace).Execute() is high (> 10) (gocyclo)
cf/commands/spacequota/create_space_quota.go:89::warning: cyclomatic complexity 14 of function (*CreateSpaceQuota).Execute() is high (> 10) (gocyclo)
cf/commands/spacequota/update_space_quota.go:86::warning: cyclomatic complexity 17 of function (*UpdateSpaceQuota).Execute() is high (> 10) (gocyclo)
cf/flags/flags.go:244::warning: cyclomatic complexity 12 of function (*flagContext).setDefaultFlagValueIfAny() is high (> 10) (gocyclo)
cf/flags/flags.go:65::warning: cyclomatic complexity 20 of function (*flagContext).Parse() is high (> 10) (gocyclo)
cf/manifest/manifest.go:101::warning: cyclomatic complexity 15 of function expandProperties() is high (> 10) (gocyclo)
cf/models/application.go:118::warning: cyclomatic complexity 26 of function (*AppParams).Merge() is high (> 10) (gocyclo)
cf/ssh/ssh.go:209::warning: cyclomatic complexity 14 of function (*secureShell).InteractiveSession() is high (> 10) (gocyclo)
cf/ssh/terminal/helper.go:11:6:warning: type name will be used as terminal.TerminalHelper by other packages, and that stutters; consider calling this Helper (golint)
plugin/cli_connection.go:161:25:warning: method UserGuid should be UserGUID (golint)
plugin/cli_connection.go:221:25:warning: method ApiEndpoint should be APIEndpoint (golint)
plugin/cli_connection.go:241:25:warning: method ApiVersion should be APIVersion (golint)
plugin/plugin.go:53:6:warning: type name will be used as plugin.PluginMetadata by other packages, and that stutters; consider calling this Metadata (golint)
plugin/plugin_shim.go:9:1:warning: comment on exported function Start should be of the form "Start ..." (golint)
plugin/rpc/call_command_registry.go:23:81:warning: method parameter pluginApiCall should be pluginAPICall (golint)
plugin/rpc/cli_rpc_server.go:234:23:warning: method UserGuid should be UserGUID (golint)
plugin/rpc/cli_rpc_server.go:270:23:warning: method ApiEndpoint should be APIEndpoint (golint)
plugin/rpc/cli_rpc_server.go:282:23:warning: method ApiVersion should be APIVersion (golint)
plugin/rpc/cli_rpc_server.go:31:6:warning: type CliRpcService should be CliRPCService (golint)
plugin/rpc/cli_rpc_server.go:35:2:warning: struct field RpcCmd should be RPCCmd (golint)
plugin/rpc/cli_rpc_server.go:39:6:warning: type CliRpcCmd should be CliRPCCmd (golint)
plugin/rpc/cli_rpc_server.go:64:6:warning: func NewRpcService should be NewRPCService (golint)
plugin_examples/test_rpc_server_example/test_rpc_server_example.go:55::warning: cyclomatic complexity 13 of function (*DemoCmd).Run() is high (> 10) (gocyclo)
testhelpers/net/server.go:72::warning: cyclomatic complexity 14 of function (*TestHandler).ServeHTTP() is high (> 10) (gocyclo)