Skip to content

Add no-unused-types linter rule documentation#128627

Closed
myaschmitz wants to merge 3 commits into
MicrosoftDocs:mainfrom
myaschmitz:myaschmitz/linter-no-unused-types
Closed

Add no-unused-types linter rule documentation#128627
myaschmitz wants to merge 3 commits into
MicrosoftDocs:mainfrom
myaschmitz:myaschmitz/linter-no-unused-types

Conversation

@myaschmitz

Copy link
Copy Markdown

Description

Adds documentation for the new no-unused-types Bicep linter rule, which warns when a user-defined type declaration is declared but never referenced.

This documents the rule added in Azure/bicep#20035 (implementation for Azure/bicep#11876).

Changes

  • New page: linter-rule-no-unused-types.md describing the rule, its config code, and how to fix violations.
  • linter.md: added no-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-types link used by the rule resolves to the new page's no-unused-types heading once merged.

@prmerger-automator

Copy link
Copy Markdown
Contributor

@myaschmitz : Thanks for your contribution! The author(s) and reviewer(s) have been notified to review your proposed change.

@prmerger-automator
prmerger-automator Bot requested a review from Xelu86 July 10, 2026 18:19
@prmerger-automator

Copy link
Copy Markdown
Contributor

@myaschmitz : Thanks for your contribution! The author(s) and reviewer(s) have been notified to review your proposed change.

@learn-build-service-prod

Copy link
Copy Markdown
Contributor

Learn Build status updates of commit a18751d:

✅ Validation status: passed

File Status Preview URL Details
articles/azure-resource-manager/bicep/linter-rule-no-unused-types.md ✅Succeeded
articles/azure-resource-manager/bicep/linter.md ✅Succeeded
articles/azure-resource-manager/bicep/toc.yml ✅Succeeded

For more details, please refer to the build report.

@prmerger-automator

Copy link
Copy Markdown
Contributor

PRMerger Results

Issue Description
Added File(s) This PR contains added files. New files require human review.
Yaml File(s) This PR includes changes to .yml file(s) owned by another author.
File Change Percent This PR contains file(s) with more than 30% file change.

@v-regandowner

Copy link
Copy Markdown
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants