Closed jycr closed 12 months ago
Hi @jycr, thank you for issue. plop @glalloue @olegoaer @jhertout
Hi, for the rule naming convention, do we begin at a very high number, such as 10000 to simplify the management with the ecoCode repo and avoid conflict? Our first rule will be EC10001 for example?
What do you think @olegoaer, @jycr, @dedece35?
Hi, for the rule naming convention, do we begin at a very high number, such as 10000 to simplify the management with the ecoCode repo and avoid conflict? Our first rule will be EC10001 for example?
What do you think @olegoaer, @jycr, @dedece35?
Oops, I've already started refactoring for Android rules starting numbering at EC500 and for iOS rules at EC600.
I have found common "legacy keys" for Android and iOS :
There are same keys, but not same description. For example:
{
"key": "EIDL001",
"name": "Idle timer disabled",
"severity": "MAJOR",
"description": "Do not disable idle timer, unless absolutely necessary.",
"debt": {"function": "CONSTANT_ISSUE", "offset": "5min"},
"tags": ["ecocode", "environment", "sobriety", "eco-design"],
"type": "CODE_SMELL"
}
{
"title": "Idleness: Keep Screen On (addFlags)",
"type": "CODE_SMELL",
"status": "ready",
"remediation": {"func": "Constant/Issue", "constantCost": "20min"},
"tags": ["idleness", "environment", "ecocode", "android"],
"defaultSeverity": "Major"
}
So, we must not use same new "ECxxxx" keys? You agree?
Hi, for the rule naming convention, do we begin at a very high number, such as 10000 to simplify the management with the ecoCode repo and avoid conflict? Our first rule will be EC10001 for example? What do you think @olegoaer, @jycr, @dedece35?
Oops, I've already started refactoring for Android rules starting numbering at EC500 and for iOS rules at EC600.
Is it easy for you to start at EC10000 and EC20000? I think it is possible that someday we will have 100 rules and if for a reason or an other we have to drop numbers, it will be easier. In which project do you start refactoring? The documentation? I was planning to start doing it on ecoCode-Android.
Thanks
I have found common "legacy keys" for Android and iOS :
- EIDL001
- EIDL002
- EPOW002
- ESOB001
- ESOB002
- ESOB003
- ESOB005
- ESOB006
There are same keys, but not same description. For example:
{ "key": "EIDL001", "name": "Idle timer disabled", "severity": "MAJOR", "description": "Do not disable idle timer, unless absolutely necessary.", "debt": {"function": "CONSTANT_ISSUE", "offset": "5min"}, "tags": ["ecocode", "environment", "sobriety", "eco-design"], "type": "CODE_SMELL" }
{ "title": "Idleness: Keep Screen On (addFlags)", "type": "CODE_SMELL", "status": "ready", "remediation": {"func": "Constant/Issue", "constantCost": "20min"}, "tags": ["idleness", "environment", "ecocode", "android"], "defaultSeverity": "Major" }
So, we must not use same new "ECxxxx" keys? You agree?
Yes it is an error, we must not use same new "ECxxxx" keys.
The plugin was accepted on SonarQube market place : https://community.sonarsource.com/t/new-plugin-ecocode-android-requesting-inclusion-in-sonarqube-marketplace/104674. I close this issue.
(I'm creating this issue to track activity regarding this plugin deployment target on SonarQube Marketplace. You can assign this issue to me.)
In the same way as what had been done for the non-mobile plugins (green-code-initiative/ecoCode#63), this plugin should be published on the SonarQube Marketplace.
TODO List:
ecoCode-android
(see: #64)EC
prefix followed by a number) (Do not forget to add@DeprecatedRuleKey
annotation when needed)ecocodeandroid
More information: