Also detects unused public procedures in objects with Access = Internal.
Info
LC0053
The internal method is only used in the object in which it is declared. Consider making the procedure local.
Info
Default severity for now set to Info for both rules even though it is advised to have LC0052 as a warning.
Rule LC0052 and LC0053 will also raise diagnostics regardless of whether someone is using internalsVisibleTo in the app manifest.
This is a deliberate choice. If you really need the internal procedure for your tests, then suppress the diagnostic for individual cases with a #pragma warning disable LC0052 // The procedure is used by the tests or #pragma warning disable LC0053 // The procedure is used by the tests
The rules will skip internal procedures that have a single parameter of type ErrorInfo or Notification.
This PR adds the following new rules:
Default severity for now set to
Info
for both rules even though it is advised to have LC0052 as a warning.Rule LC0052 and LC0053 will also raise diagnostics regardless of whether someone is using
internalsVisibleTo
in the app manifest. This is a deliberate choice. If you really need the internal procedure for your tests, then suppress the diagnostic for individual cases with a#pragma warning disable LC0052 // The procedure is used by the tests
or#pragma warning disable LC0053 // The procedure is used by the tests
The rules will skip internal procedures that have a single parameter of type
ErrorInfo
orNotification
.