Skip to content

Instantly share code, notes, and snippets.

@fbcbl
Last active January 2, 2020 13:48
Show Gist options
  • Save fbcbl/6b3d2585c53e460005fdab93bf9ff633 to your computer and use it in GitHub Desktop.
Save fbcbl/6b3d2585c53e460005fdab93bf9ff633 to your computer and use it in GitHub Desktop.
Android Lint - AndroidLogDetector Issue
class AndroidLogDetector : Detector(), SourceCodeScanner {
(...)
companion object {
private val IMPLEMENTATION = Implementation(
AndroidLogDetector::class.java,
Scope.JAVA_FILE_SCOPE
)
val ISSUE: Issue = Issue
.create(
id = "AndroidLogDetector",
briefDescription = "The android Log should not be used",
explanation = """
For amazing showcasing purposes we should not use the Android Log. We should the
AmazingLog instead.
""".trimIndent(),
category = Category.CORRECTNESS,
priority = 9,
severity = Severity.ERROR,
androidSpecific = true,
implementation = IMPLEMENTATION
)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment