Skip to content

Instantly share code, notes, and snippets.

Chris Margonis cmargonis

Block or report user

Report or block cmargonis

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@cmargonis
cmargonis / diff-lint.kts
Created Jan 24, 2019
This script gets fed two files, one containing all the available lint-issues (as listed here http://tools.android.com/tips/lint-checks copy-paste content with the exact formatting) and a lint.xml file which contains lint issues declared at an android project. The output is the lint issues that haven't yet been added to lint.xml
View diff-lint.kts
/**
* Usage:
* Download kotlin as per instructions:
* https://kotlinlang.org/docs/tutorials/command-line.html#using-the-command-line-to-run-scripts
*
* $> kotlinc -script diff-lint.kts <file with all issues> <lint.xml with your configuration> <optional: outpuf filename, defaults to "output">
*/
import java.io.File
data class Issue(val title: String, val lines: MutableList<String>? = null)
View LICENSE
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
You can’t perform that action at this time.