Last active
January 2, 2020 13:48
-
-
Save fbcbl/6b3d2585c53e460005fdab93bf9ff633 to your computer and use it in GitHub Desktop.
Android Lint - AndroidLogDetector Issue
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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