Skip to content

Instantly share code, notes, and snippets.

@saurabharora90
Created August 3, 2019 08:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save saurabharora90/bad5a21e8b0e2a7fe1af9cfeb1f8ce4c to your computer and use it in GitHub Desktop.
Save saurabharora90/bad5a21e8b0e2a7fe1af9cfeb1f8ce4c to your computer and use it in GitHub Desktop.
Missing Night Color
object MissingNightColorIssue {
private const val ID = "MissingNightColor"
private const val DESCRIPTION = "Night Color missing"
const val EXPLANATION =
'''Night color value for this color resource seems to be missing.
If your app supports dark theme, then you should add an equivalent color resource for it in the night values folder.'''
private val CATEGORY = Category.CORRECTNESS
private const val PRIORITY = 6
private val SEVERITY = Severity.WARNING
val ISSUE = Issue.create(
ID,
DESCRIPTION,
EXPLANATION,
CATEGORY,
PRIORITY,
SEVERITY,
Implementation(
MissingNightColorDetector::class.java,
Scope.RESOURCE_FILE_SCOPE
)
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment