Visitar URL original
build: add a noDuplicateEnumValue rule by JeanMeche · Pull Request #63483 · angular/angular · GitHub
The Wayback Machine - https://web.archive.org/web/20260120182617/https://github.com/angular/angular/pull/63483
Skip to content

Conversation

@JeanMeche
Copy link
Member

It caught several legitimate issues.
In the cases I wasn't sure, I just disabled the rule.

fixes #45843

@angular-robot angular-robot bot added the area: build & ci Related the build and CI infrastructure of the project label Aug 29, 2025
@JeanMeche JeanMeche requested a review from mmalerba August 29, 2025 16:04
@ngbot ngbot bot added this to the Backlog milestone Aug 29, 2025
Copy link
Member

@josephperrott josephperrott left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Can we add some documentation somewhere of why this is not desirable? It seems like in some situations that duplicate enum values could be very useful.

@JeanMeche JeanMeche force-pushed the noduplicate-enum branch 2 times, most recently from f2246c3 to f7ce8ba Compare August 29, 2025 16:31
It caught several legitimate issues.
In the cases I wasn't sure, I just disabled the rule.

fixes angular#45843
@pullapprove pullapprove bot requested review from atscott and kirjs August 29, 2025 16:51
@JeanMeche
Copy link
Member Author

I think the diff is a bit self explantory, it's not the first time we have colliding Error codes.

Copy link
Contributor

@kirjs kirjs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reviewed-for: public-api

NO_PLURAL_MESSAGE_FOUND = 2308,
VALUE_NOT_A_NUMBER = 2309,
UNKNOWN_ZONE_WIDTH = 2310,
INVALID_TO_DATE_CONVERSION = 2311,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice catch

@pullapprove pullapprove bot requested a review from AndrewKushnir September 2, 2025 12:31
Copy link
Contributor

@mmalerba mmalerba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reviewed-for: public-api

@JeanMeche JeanMeche added action: merge The PR is ready for merge by the caretaker target: patch This PR is targeted for the next patch release labels Sep 9, 2025
@thePunderWoman
Copy link
Contributor

This PR was merged into the repository. The changes were merged into the following branches:

thePunderWoman pushed a commit that referenced this pull request Sep 10, 2025
It caught several legitimate issues.
In the cases I wasn't sure, I just disabled the rule.

fixes #45843

PR Close #63483
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Oct 11, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker area: build & ci Related the build and CI infrastructure of the project target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enable the no-duplicate-enum-values TSLint rule for the FW repo

5 participants