mirror of
https://github.com/mihonapp/mihon.git
synced 2025-07-28 02:15:52 +02:00
Compare commits
3 Commits
11eb6f9579
...
ac085b04ae
Author | SHA1 | Date | |
---|---|---|---|
ac085b04ae | |||
a09e6431b1 | |||
f4a2024e08 |
2
.github/workflows/build_pull_request.yml
vendored
2
.github/workflows/build_pull_request.yml
vendored
@ -37,4 +37,4 @@ jobs:
|
||||
- name: Build app and run unit tests
|
||||
uses: gradle/gradle-command-action@v2
|
||||
with:
|
||||
arguments: detekt assembleStandardRelease testReleaseUnitTest
|
||||
arguments: detekt assembleStandardRelease testReleaseUnitTest
|
||||
|
@ -6,7 +6,6 @@ plugins {
|
||||
kotlin("android")
|
||||
kotlin("plugin.serialization")
|
||||
id("com.github.zellius.shortcut-helper")
|
||||
id("detekt")
|
||||
}
|
||||
|
||||
if (gradle.startParameter.taskRequests.toString().contains("Standard")) {
|
||||
|
@ -32,6 +32,7 @@ subprojects {
|
||||
}
|
||||
|
||||
plugins.withType<BasePlugin> {
|
||||
plugins.apply("detekt")
|
||||
configure<BaseExtension> {
|
||||
compileSdkVersion(AndroidConfig.compileSdk)
|
||||
defaultConfig {
|
||||
|
@ -12,7 +12,6 @@ dependencies {
|
||||
detektPlugins(libs.detekt.rules.compose)
|
||||
}
|
||||
|
||||
private val projectSource = file("$rootDir")
|
||||
private val configFile = files("$rootDir/config/detekt/detekt.yml")
|
||||
private val baselineFile = file("$rootDir/config/detekt/baseline.xml")
|
||||
private val kotlinFiles = "**/*.kt"
|
||||
@ -28,7 +27,6 @@ detekt {
|
||||
ignoreFailures = false
|
||||
config.setFrom(configFile)
|
||||
baseline = file(baselineFile)
|
||||
source.from(projectSource)
|
||||
}
|
||||
|
||||
tasks.withType<io.gitlab.arturbosch.detekt.Detekt>().configureEach {
|
||||
@ -41,18 +39,6 @@ tasks.withType<io.gitlab.arturbosch.detekt.Detekt>().configureEach {
|
||||
}
|
||||
}
|
||||
|
||||
tasks.register<DetektCreateBaselineTask>("detektMultiModuleBaseline") {
|
||||
description = "Generate a baseline for the entire project source."
|
||||
parallel = true
|
||||
ignoreFailures = false
|
||||
buildUponDefaultConfig = true
|
||||
setSource(projectSource)
|
||||
baseline.set(baselineFile)
|
||||
config.setFrom(configFile)
|
||||
include(kotlinFiles)
|
||||
exclude(resourceFiles, buildFiles)
|
||||
}
|
||||
|
||||
tasks.withType<io.gitlab.arturbosch.detekt.Detekt>().configureEach {
|
||||
jvmTarget = JavaVersion.VERSION_17.toString()
|
||||
}
|
||||
|
@ -23,3 +23,4 @@ glance = "androidx.glance:glance-appwidget:1.0.0"
|
||||
|
||||
accompanist-webview = { module = "com.google.accompanist:accompanist-webview", version.ref = "accompanist" }
|
||||
accompanist-systemuicontroller = { module = "com.google.accompanist:accompanist-systemuicontroller", version.ref = "accompanist" }
|
||||
|
||||
|
Reference in New Issue
Block a user