All Collections
Rule documentation
Coding best practices
Identify methods with global visibility
Identify methods with global visibility

Detects methods that can be referenced from outside a managed package.

Gabriele Gallo Stampino avatar
Written by Gabriele Gallo Stampino
Updated over a week ago


The Global access modifier is used when you want to make methods that are visible from outside your application (cross namespaces calls).

As cross-application dependencies are difficult to maintain, make sure to use the Global access modifier rarely and only with specific methods.


  • Apex methods

Did this answer your question?