AEM-Rules-for-SonarQube icon indicating copy to clipboard operation
AEM-Rules-for-SonarQube copied to clipboard

Feature: Create rule to enforce that adaptable is not stored inside model

Open kwin opened this issue 2 years ago • 2 comments

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.

kwin avatar Dec 19 '22 09:12 kwin