Azure / Azure/azure-sdk-for-rust

Make sure a version is defined and defaulted for client options

Open
#3,406 1 comment 0 reactions 0 assignees View on GitHub
CodeGen lint
Dominant language
Rust
Stars
884
Forks
365
Avg merge
2d 19h
Merged PRs (30d)
109

Description

One lint we should write for #3404 is because of a change we are making for #3368 (or related): because we'll add an emitter option to omit emitting of constructors and client options, we need to make sure that an `api_version` or similarly authored[^tsp] version is not only defined but defaulted per [guidelines](https://azure.github.io/azure-sdk/rust_introduction.html#rust-client-configuration-default).

[^tsp]: This is defined by TypeSpec, but I'm not sure if we can access that at linting time.

Contributor guide

Open the contributing guide

Research direction

Start by reviewing issues #3404 and #3368, then inspect the emitter's linting entry points and the linked Rust client-configuration guideline. Determine whether the TypeSpec-defined version is available during linting; done means a lint verifies that the version is defined and defaulted according to the guideline.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.