Skip to content

New Rule: no-unused-definition #424

Closed
@lumirlumir

Description

@lumirlumir

Rule details

Disallow unused definitions

What type of rule is this?

Warns about a potential problem

Example code

Image

Image

Prior Art

Participation

  • I am willing to submit a pull request to implement this rule.

Additional comments

In this issue, I would like to suggest a rule named no-unused-definition.

This rule disallows unused reference definitions in Markdown documents. Reference definitions provide a way to create reusable links or images, but when they're defined but never referenced, they add unnecessary clutter to your document.

The rule identifies definition entries (e.g., [reference-id]: http://example.com) that are not referenced by any link or image in the document and reports them as violations. Removing unused definitions helps keep your Markdown documents clean and maintainable.

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Complete

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions