Azure / Azure/bicep

Integrate `ApiVersionProvider` into `IResourceTypeProvider`

Open
#13,239 0 comments 0 reactions 0 assignees View on GitHub
enhancement tech debt
Dominant language
Bicep
Stars
3.6k
Forks
830
Avg merge
1d 21m
Merged PRs (30d)
79

Description

`ApiVersionProvider` is used by `UseRecentApiVersionRule`. However, its initialization within the `SemanticModel` constructor introduces an undesirable coupling between the linter and the Bicep core compiler implementation. To mitigate this, we can do some refactoring to incorporate the functionalities of `ApiVersionProvider` into the `IResourceTypeProvider`.

Contributor guide

Open the contributing guide

Research direction

Start by tracing ApiVersionProvider from the SemanticModel constructor to UseRecentApiVersionRule, then compare the relevant responsibilities of IResourceTypeProvider. Done means the ApiVersionProvider functionality is incorporated into IResourceTypeProvider without the undesirable coupling between the linter and Bicep core compiler implementation.

Written by the indexing model from the issue text.

Assessment

Domain
compilers, tooling
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.