green-code-initiative / ecoCode-android

Reduce the environmental footprint of your Java-based Android apps with SonarQube
https://ecocode.io
GNU General Public License v3.0
58 stars 18 forks source link

Remove Google Tracker Rule (EC532) #94

Closed pbaumard closed 3 months ago

pbaumard commented 3 months ago

Problem

Google Tracker Rule (EC532) is not related to the purpose of the ecoCode-android project which it from the README to provide:

static code analyzers to highlight code structures that may have a negative ecological impact

Solution

Remove Google Tracker Rule (EC532)

Additional context

I believe this out-of-scope rule about privacy and not about eco-design is coming from the confusion about Mobile-specific Best Practices which are not only about Environmental Code Smells but also about Social Code Smells. Only the first category should be considered for this project which is included in the green-code-initiative which purpose is: "Let's write low-carbon software".

olegoaer commented 3 months ago

Your point is well taken. It's a social smell, not an environmental smell, and implemented as such. This type of smell is a side concern and is not the primary aim of the green code initiative.

But its presence in the ecoCode Android plugin serves as a proof of concept towards sustainability (environment + social). I personally use it in my live demos, and the custom GUI already takes this into account (see screenshot). That's why they have to stay here for the time being.

Capture d’écran 2024-08-13 à 10 08 01