Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 2cc28834f8 | |||
| e94916a858 | |||
| 7a5a75c7c6 | |||
| 8a54193d27 |
@@ -24,7 +24,7 @@ class StaticAnalysisAndroidPlugin : StaticAnalysisPlugin() {
|
||||
project.tasks.register("staticAnalysis") {
|
||||
setupStaticAnalysisTask(
|
||||
linters = linters,
|
||||
buildVariant = applicationVariants.first { it.name.contains("Debug") }.name
|
||||
buildVariant = applicationVariants.first { it.name.contains("debug") }.name
|
||||
)
|
||||
}
|
||||
}
|
||||
@@ -33,9 +33,9 @@ class StaticAnalysisAndroidPlugin : StaticAnalysisPlugin() {
|
||||
}
|
||||
|
||||
override fun createLinters(): List<Linter> = listOf(
|
||||
DetektLinter(),
|
||||
CpdLinter(),
|
||||
AndroidLinter()
|
||||
DetektLinter()
|
||||
// CpdLinter() todo return after fixing all problems
|
||||
// AndroidLinter() todo temporary disable to avoid FileNotFoundException when generating report
|
||||
)
|
||||
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@ private def generate(Map<String, String> sources, Project project) {
|
||||
xml.resources() {
|
||||
json.each {
|
||||
k, v ->
|
||||
string(name: "${k}", formatted: "false", "${v}".replace('\n', '\\n'))
|
||||
string(name: "${k}", formatted: "false", "${v}".replace('\n', '\\n').replace('\"', '\\"'))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user