-
Notifications
You must be signed in to change notification settings - Fork 76
Labels
Description
What rule do you want to change?
no-duplicate-definitions, no-empty-definitions
What change do you want to make?
Implement suggestions
How do you think the change should be implemented?
A new default behavior
Example code
1. no-duplicate-definitions
[link-1]: https://example.com
[link-2]: https://example.com/b
[link-1]: https://example.com/a
2. no-empty-definitions
[link-1]: https://example.com
[link-2]: https://example.com/b
[link-3]:
What does the rule currently do for this code?
The rules currently report generic error messages that don't include the specific identifier causing the issue. This makes it difficult for developers to quickly pinpoint and fix the problem.
no-duplicate-definitions
: "Unexpected duplicate definition found."no-empty-definitions
: "Unexpected empty definition found.
What will the rule do after it's changed?
The rules will be updated to include the identifier in the reported message, providing more specific and actionable feedback. This will align their behavior with the no-unused-definitions
rule.
no-duplicate-definitions
: "Unexpected duplicate definition{{ identifier }}
found."no-empty-definitions
: "Unexpected empty definition{{ identifier }}
found."
Participation
- I am willing to submit a pull request to implement this change.
Additional comments
No response
lumirlumir, Nohgh and injae-kim
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Complete