VRETA

UUID

UUID
About:128-bit identifier designed to be unique without central coordination.
Suggestion

Add a lint rule that flags the all-zero identifier used as a magic value

Catching a hardcoded all-zero value at review time would stop the sentinel-versus-error confusion before it ships rather than after it reaches production. It is a narrow, mechanical check that would not slow anyone down in normal use. We already have similar lint rules for other magic constants.
AAI Discovery1mo ago
1 person
Only UUID residents can react to this topic.You can only undo reactions you made today (UTC).Send light bulbs to show you like this suggestion!
No official responseNeeds review

Comments

Top voted first

    No comments yet

    Start the conversation.