Documentation
¶
Overview ¶
Package AZS005 defines an analyzer that reports registered resources that have no corresponding data source of the same name, across every registration flavour: untyped plugin SDK maps, typed sdk.Resource slices and framework wrapped resource slices.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Analyzer = &analysis.Analyzer{ Name: "AZS005", Doc: "check for registered resources that have no corresponding data source", URL: "https://github.com/katbyte/azproviderlint/blob/main/checks/AZS/AZS005_resource_missing_data_source/README.md", Requires: []*analysis.Analyzer{inspect.Analyzer}, Run: run, }
Analyzer correlates a service package's registered resources and data sources by their terraform type name and reports every resource without a matching data source. All registration flavours contribute to both sides:
- untyped plugin SDK: `SupportedResources()` / `SupportedDataSources()` map keys
- typed SDK: `Resources()` / `DataSources()` elements' `ResourceType()` methods
- framework: `FrameworkResources()` / `FrameworkDataSources()` elements' `ResourceType()` methods
Conditionally registered entries (`m["azurerm_x"] = ...`, `append(out, Foo{})` behind feature flags) are collected too. If any data source entry's name cannot be resolved the package is skipped entirely, so an unresolvable data source can never produce a false "missing data source" report.
Functions ¶
This section is empty.
Types ¶
This section is empty.