New rule: Guid data types should be checked with IsNullGuid() #855
Closed
tinestaric
started this conversation in
New Rule
Replies: 2 comments
-
Thanks for the suggestion 🙋♂️ I've created an new rule for this: LC0087 - Use The rule will also will raise a diagnostic on other operators, like for example |
Beta Was this translation helpful? Give feedback.
0 replies
-
The rule is now available in the release version from version v0.33.0 of the LinterCop. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I tiny rule idea I noticed catching recently. If you try to check for an empty guid with
if MyGuid = '' then ..
then you hit a runtime error that guid is not in the correct format (because the '' is not a valid guid).
What if check for this comparison and throw a warning that IsNullGuid should be used?
Beta Was this translation helpful? Give feedback.
All reactions