Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CP-48855: fix go lint var-name warnings #5606

Merged
merged 6 commits into from
May 7, 2024

Conversation

duobei
Copy link
Contributor

@duobei duobei commented Apr 30, 2024

Fix go lint var-name warnings

  1. update templates (APIErrors, APIMessages, Record)
  2. use right reserved words

Others

  1. add templates for options and APIVersion
  2. render options and APIVersion

ocaml/sdk-gen/common/CommonFunctions.ml Outdated Show resolved Hide resolved
ocaml/sdk-gen/go/gen_go_helper.ml Outdated Show resolved Hide resolved
ocaml/sdk-gen/go/gen_go_helper.ml Outdated Show resolved Hide resolved
@duobei duobei changed the title CP-48855, CP-47357: add JSON-RPC client file and fix go lint var-name warnings CP-48855, CP-47357: add JSON-RPC client file May 6, 2024
@duobei duobei changed the title CP-48855, CP-47357: add JSON-RPC client file CP-48855: add JSON-RPC client file May 6, 2024
duobei added 3 commits May 6, 2024 13:55
Signed-off-by: xueqingz <xueqing.zhang@citrix.com>
Signed-off-by: Luca Zhang <feiya.zhang@cloud.com>
changed templates: APIVersions.mustache,APIErrors.mustache, Record.mustache

Signed-off-by: Luca Zhang <feiya.zhang@cloud.com>
Signed-off-by: xueqingz <xueqing.zhang@citrix.com>
Signed-off-by: Luca Zhang <feiya.zhang@cloud.com>
@duobei duobei changed the title CP-48855: add JSON-RPC client file CP-48855: fix go lint var-name warnings May 6, 2024
Signed-off-by: Luca Zhang <feiya.zhang@cloud.com>
@xueqingz
Copy link

xueqingz commented May 7, 2024

Shall we also add unit test for "APIVersion.mustache" and "Option.mustache"? I check the generated source files, Go templates looks good to me.

duobei added 2 commits May 7, 2024 15:54
Signed-off-by: Luca Zhang <feiya.zhang@cloud.com>
Signed-off-by: Luca Zhang <feiya.zhang@cloud.com>
@duobei duobei merged commit d4b74fa into xapi-project:feature/go_sdk May 7, 2024
13 checks passed
Copy link

github-actions bot commented May 7, 2024

pytype_reporter extracted 50 problem reports from pytype output

.

You can check the results of the job here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants