You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
If minifyEnabled is set to false in the build.gradle, the sonar analysis crashes
To Reproduce
Create a default Android project (default fragment project for example)
Configure the project for sonarqube analysis (see build.gradle later)
Run the sonar analysis
Nb. changing the value of minifyEnable to "true" fix the issue (but throw an issue in sonar analysis).
Expected behavior
The scan does not crash.
Stacktrace
Caused by: groovy.lang.MissingMethodException: No signature of method: java.lang.Boolean.plus() is applicable for argument types: (java.lang.String) values: [ = true]
Possible solutions: is(java.lang.Object), use([Ljava.lang.Object;), split(groovy.lang.Closure), wait(), any(), dump()
at org.codenarc.rule.ecocode.EC5003AstVisitor$_visitMethodCallExpression_closure1.doCall(EC5003.groovy:47)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at org.codenarc.rule.ecocode.EC5003AstVisitor.visitMethodCallExpression(EC5003.groovy:46)
at org.codenarc.rule.ecocode.EC5003AstVisitor.super$2$visitMethodCallExpression(EC5003.groovy)
at jdk.internal.reflect.GeneratedMethodAccessor1207.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at org.codenarc.rule.ecocode.EC5003AstVisitor.visitMethodCallExpression(EC5003.groovy:54)
at org.codenarc.rule.ecocode.EC5003AstVisitor.super$2$visitMethodCallExpression(EC5003.groovy)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at org.codenarc.rule.ecocode.EC5003AstVisitor.visitMethodCallExpression(EC5003.groovy:54)
at org.codenarc.rule.ecocode.EC5003AstVisitor.super$2$visitMethodCallExpression(EC5003.groovy)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at org.codenarc.rule.ecocode.EC5003AstVisitor.visitMethodCallExpression(EC5003.groovy:54)
at org.codenarc.rule.AbstractAstVisitor.visitMethod(AbstractAstVisitor.java:155)
at org.codenarc.rule.AbstractAstVisitor.visitClass(AbstractAstVisitor.java:132)
at org.codenarc.rule.AbstractAstVisitorRule.applyTo(AbstractAstVisitorRule.java:97)
Desktop (please complete the following information):
Describe the bug
If minifyEnabled is set to false in the build.gradle, the sonar analysis crashes
To Reproduce
Nb. changing the value of minifyEnable to "true" fix the issue (but throw an issue in sonar analysis).
Expected behavior
The scan does not crash.
Stacktrace
Desktop (please complete the following information):
app build.gradle
The text was updated successfully, but these errors were encountered: