fix(plugins-detekt): Fetch Detekt config from main branch on GitHub.

This commit is contained in:
Davide Farella
2022-07-29 15:30:31 +02:00
parent 61f1032bed
commit cb51aedf9f
@@ -292,7 +292,7 @@ private fun downloadDetektConfig(githubConfigFilePath: String, to: File) {
return
}
val url = "https://raw.githubusercontent.com/ProtonMail/protoncore_android/master/$githubConfigFilePath"
val url = "https://raw.githubusercontent.com/ProtonMail/protoncore_android/main/$githubConfigFilePath"
println("Fetching Detekt rule-set from $url")
try {
val content = URL(url).openStream().bufferedReader().readText()