一句话:提出 ecoCode——一个 SonarQube 插件,通过检测 Android Java 项目中的能源代码坏味道来推动绿色开发。
为应对气候变化,Android 开发者被呼吁成为绿色软件开发者,但如何大规模保证移动应用的碳效率仍是一个问题。本文提出 ecoCode,一个 SonarQube 插件,用于高亮从能源角度看存在坏味道的代码结构。该插件基于一份精选的能源代码坏味道清单,这些坏味道可能对 Android 设备的电池寿命产生负面影响。ecoCode 能够分析任何用 Java 编写的原生 Android 项目,以帮助推行绿色代码。论文通过演示视频展示了该插件。摘要未报告定量评估结果,主要贡献在于将能源代码坏味道检测集成到 SonarQube 中。
To face the climate change, Android developers urge to become green software developers. But how to ensure carbon-efficient mobile apps at large? In this paper, we introduce ecoCode, a SonarQube plugin able to highlight code structures that are smelly from an energy perspective. It is based on a curated list of energy code smells likely to impact negatively the battery lifespan of Android-powered devices. The ecoCode plugin enables analysis of any native Android project written in Java in order to enforce green code. — Demo video on https://youtu.be/4XIYGyPEhXQ