vmware/go-vcloud-director

Clean-up code of one-letter identifiers

オープン

#33 opened on 2018/08/17

 (1 件のコメント) (0 件のリアクション) (0 人の担当者)Go (75 件のフォーク)auto 404
Code qualityenhancementgood first issue

Repository metrics

Stars
 (82 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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.

コントリビューターガイド