vmware/go-vcloud-director

Clean-up code of one-letter identifiers

开放

#33 创建于 2018年8月17日

 (1 条评论) (0 个反应) (0 位负责人)Go (75 个派生)auto 404
Code qualityenhancementgood first issue

仓库指标

星标
 (82 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

The whole code base is littered with identifiers (variables, struct types, and types) made of a single letter.

To make the library code more readable, and easier to maintain and expand, these identifiers must be replaced with more telling names.

The only place where single letter variables can be accepted is for a counter in a short loop.

Moreover, variables and field name vdc and vcd should be avoided as they are easily mixed up, and replaced with vcDirector and vdCenter or similarly telling names.

贡献者指南