Skip to content

Instantly share code, notes, and snippets.

@avalanchas
Created April 19, 2021 14:35
Show Gist options
  • Save avalanchas/cb645fd95cd8ed526170fe9f22128c2a to your computer and use it in GitHub Desktop.
Save avalanchas/cb645fd95cd8ed526170fe9f22128c2a to your computer and use it in GitHub Desktop.
Error Report
../../src/main/java/...Helper.java: The lint detector
timber.lint.WrongTimberUsageDetector
called context.getMainProject() during module analysis.
This does not work correctly when running in cli.
In particular, there may be false positives or false negatives because
the lint check may be using the minSdkVersion or manifest information
from the library instead of any consuming app module.
Contact the vendor of the lint issue to get it fixed/updated (if
known, listed below), and in the meantime you can try to work around
this by disabling the following issues:
"LogNotTimber","StringFormatInTimber","ThrowableNotAtBeginning","BinaryOperationInTimber","TimberArgCount","TimberArgTypes","TimberTagLength","TimberExceptionLogging"
Issue Vendors:
Identifier: jetified-timber-4.7.1
Call stack: Context.getMainProject(Context.kt:117)
←WrongTimberUsageDetector.visitMethod(WrongTimberUsageDetector.java:80)
←Detector.visitMethodCall(Detector.kt:551)
←UElementVisitor$DelegatingPsiVisitor.visitMethodCallExpression(UElementVisitor.kt:1095)
←UElementVisitor$DelegatingPsiVisitor.visitCallExpression(UElementVisitor.kt:1075)
←UCallExpression$DefaultImpls.accept(UCallExpression.kt:85)
←UCallExpressionEx$DefaultImpls.accept(UCallExpression.kt:-1)
←JavaUCallExpression.accept(javaUCallExpressions.kt:26)
←UQualifiedReferenceExpression$DefaultImpls.accept(UQualifiedReferenceExpression.kt:34)
←JavaUCompositeQualifiedExpression.accept(JavaUCompositeQualifiedExpression.kt:23)
←UQualifiedReferenceExpression$DefaultImpls.accept(UQualifiedReferenceExpression.kt:33)
←JavaUCompositeQualifiedExpression.accept(JavaUCompositeQualifiedExpression.kt:23)
←ImplementationUtilsKt.acceptList(implementationUtils.kt:23)
←UBlockExpression$DefaultImpls.accept(UBlockExpression.kt:21)
←JavaUCodeBlockExpression.accept(JavaUCodeBlockExpression.kt:23)
←UMethod$DefaultImpls.accept(UMethod.kt:41)
←JavaUMethod.accept(JavaUMethod.kt:13)
←ImplementationUtilsKt.acceptList(implementationUtils.kt:23)
←UClass$DefaultImpls.accept(UClass.kt:84)
←AbstractJavaUClass.accept(JavaUClass.kt:9)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment