A codeunit should not have variable declarations declaring the codeunit itself #186
rvanbekkum
started this conversation in
New Rule
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It might be nice to have a rule which checks for variable declarations of the form
var : Codeunit X
in objectcodeunit X
, so referencing itself.This is often not what you want - it is only what you want in very rare cases. I am often moving procedure declarations from one object to the other during development, which might lead to this happening.
I also thought about other object types, but I think it is particularly relevant for codeunits.
Beta Was this translation helpful? Give feedback.
All reactions