Internal procedures are not invoked or referenced in the app #197
Closed
rvanbekkum
started this conversation in
New Rule
Replies: 1 comment 10 replies
-
Should take into account internal procedures that are used for notifications (i.e., with a internal procedure InvokeActionFromNotification(HostNotification: Notification)
begin
// Implementation here
end; P.S. I have already implemented this rule in an internal code analyzer, because we needed it. We are first trying this implementation out internally and might make a PR to the LinterCop later on. |
Beta Was this translation helpful? Give feedback.
10 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Through this discussion I would like to suggest a new rule:
If the
internalsVisibleTo
setting is not set or set to an empty array ([]
) inapp.json
, then the rule will raise a warning for procedures that are not used/invoked anywhere in the app.This would be useful to avoid dangling procedures in the app.
So, it would be a rule similar to rule AA0228, "The method '{0}' is declared but never used.".
Beta Was this translation helpful? Give feedback.
All reactions