Skip to content

Redundant Public Accessibility

Declarations that are marked public yet are not referenced from outside their home module are identified as having redundant public accessibility. In this scenario, the public annotation can be removed from the declaration.

Removing redundant public accessibility has a couple of benefits:

This analysis can be disabled with --disable-redundant-public-analysis.