Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Rule: "Do not use SlingSettingsService.getRunModes()" #193

Open
joerghoh opened this issue May 16, 2020 · 0 comments
Open

New Rule: "Do not use SlingSettingsService.getRunModes()" #193

joerghoh opened this issue May 16, 2020 · 0 comments
Labels
rule New rule or modification of existing one.

Comments

@joerghoh
Copy link
Contributor

I want to propose a new rule, which reports any usage of API call SlingSettingsService.getRunModes().

In AEM projects, every dependency to a specific environment must be solved by creating a runmode-aware OSGI configuration, which will be picked up correctly, and without any need to specify this in the application code.

That means, that any usage of the above mentioned call is not necessary and should be considered as Design Smell.

@toniedzwiedz toniedzwiedz added the rule New rule or modification of existing one. label May 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rule New rule or modification of existing one.
Projects
None yet
Development

No branches or pull requests

2 participants