Add no-unused-types linter rule documentation#128627
Conversation
|
@myaschmitz : Thanks for your contribution! The author(s) and reviewer(s) have been notified to review your proposed change. |
|
@myaschmitz : Thanks for your contribution! The author(s) and reviewer(s) have been notified to review your proposed change. |
|
Learn Build status updates of commit a18751d: ✅ Validation status: passed
For more details, please refer to the build report. |
PRMerger Results
|
|
Microsoft authors and contributors need to make content contributions through the private repository so the content can be staged and validated by the current validation rules. After you make your changes in the private repo, review the articles on staging, and fix any validation issues, you can add the sign-off comment to let PR reviewers know that the updates are ready to be merged. Read about authors working in the public repo for more information. If you need help getting set up to work in the private repo, see Get started contributing to the Microsoft Learn platform. We'll close this PR. Thank you. |
Description
Adds documentation for the new
no-unused-typesBicep linter rule, which warns when a user-definedtypedeclaration is declared but never referenced.This documents the rule added in Azure/bicep#20035 (implementation for Azure/bicep#11876).
Changes
linter-rule-no-unused-types.mddescribing the rule, its config code, and how to fix violations.linter.md: addedno-unused-types(default: warning) to the default rules table.toc.yml: added the new page to the Bicep table of contents.Note
Opening as a draft to pair with the code PR (Azure/bicep#20035). The
aka.ms/bicep/linter-diagnostics#no-unused-typeslink used by the rule resolves to the new page'sno-unused-typesheading once merged.