AEM-Rules-for-SonarQube
AEM-Rules-for-SonarQube copied to clipboard
Feature: Create rule to enforce that adaptable is not stored inside model
According to https://sling.apache.org/documentation/bundles/models.html#a-note-about-cache-true-and-using-the-self-injector the adaptable should not be stored in the model when cache=true
is used, as this might exhaust the memory easily.
A rule to enforce that the adaptable is not stored in a field when the adaptable has cache=true
should be added to prevent this.