diff --git a/src/android-plugin/README.md b/src/android-plugin/README.md index 3e30e1f1..99cacdde 100644 --- a/src/android-plugin/README.md +++ b/src/android-plugin/README.md @@ -124,12 +124,13 @@ Licensed under the [GNU Lesser General Public License, Version 3.0](https://www. ## How to cite this work? If you use ecoCode in an academic work we would be really glad if you cite our seminal paper using the following bibtex (to appear): -``` +```bibtex @inproceedings{DBLP:conf/ase/LeGoaer2022, author = {Olivier Le Goaer and Julien Hertout}, title = {ecoCode: a SonarQube Plugin to Remove Energy Smells from Android Projects}, booktitle = {{ACM/IEEE} International Conference on Automated Software Engineering, {ASE} '22, Michigan, USA - October 10 - 14, 2022}, - year = {2022} + year = {2022}, + doi = {10.1145/3551349.3559518} } ``` diff --git a/src/codenarc-converter/CodeNarc/src/main/groovy/org/codenarc/rule/ecocode/SupportedVersionRangeRule.groovy b/src/codenarc-converter/CodeNarc/src/main/groovy/org/codenarc/rule/ecocode/SupportedVersionRangeRule.groovy index 3985da55..37d08056 100644 --- a/src/codenarc-converter/CodeNarc/src/main/groovy/org/codenarc/rule/ecocode/SupportedVersionRangeRule.groovy +++ b/src/codenarc-converter/CodeNarc/src/main/groovy/org/codenarc/rule/ecocode/SupportedVersionRangeRule.groovy @@ -41,7 +41,7 @@ class SupportedVersionRangeAstVisitor extends AbstractAstVisitor { @Override void visitMethodCallExpression(MethodCallExpression methodCallExpression) { def methodName = ((ConstantExpression) methodCallExpression.getMethod()).getValue() - if (methodName == 'minSdkVersion' || methodName == 'targetSdkVersion') { + if (methodName == 'minSdkVersion' || methodName == 'targetSdkVersion') { //TODO : minSdk and targetSdk must be supported too def arguments = AstUtil.getArgumentsValue(methodCallExpression.getArguments()) if (arguments.size() == 1) { rule[methodName] = arguments.get(0)