Skip to content

✨ Add detekt dependencies #660

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3,232 changes: 1,609 additions & 1,623 deletions docs/dependency-notations.md

Large diffs are not rendered by default.

41 changes: 41 additions & 0 deletions plugins/dependencies/src/main/kotlin/dependencies/Detekt.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
@file:Suppress("PackageDirectoryMismatch", "SpellCheckingInspection", "unused")

import de.fayard.refreshVersions.core.DependencyGroup
import org.gradle.kotlin.dsl.IsNotADependency

/**
* A static code analysis tool for the Kotlin programming language.
*
* - [Project website](https://detekt.dev/)
* - [Documentation](https://detekt.dev/docs/intro)
* - Github page: [Detekt](https://github.com/detekt/detekt)
* - [Github releases here](https://github.com/detekt/detekt/releases)
*/
object Detekt : DependencyGroup(
group = "io.gitlab.arturbosch.detekt",
rawRules = """
io.gitlab.arturbosch.detekt:detekt(-*)
^^^^^^
""".trimIndent()
) {

val gradlePlugin = module("detekt-gradle-plugin")

/**
* Wrapper over ktlint
*/
val formatting = module("detekt-formatting")

object Rules : IsNotADependency {

/**
* Rules mostly useful for Library Authors.
*/
val libraries = module("detekt-rules-libraries")

/**
* Rules for Rule Authors to enforce best practices on Detekt rules.
*/
val ruleauthors = module("detekt-rules-ruleauthors")
}
}
2 changes: 2 additions & 0 deletions plugins/dependencies/src/main/kotlin/dependencies/_ALL.kt
Original file line number Diff line number Diff line change
@@ -9,6 +9,7 @@ import Arrow
import COIL
import CashApp
import Chucker
import Detekt
import Firebase
import Google
import Http4k
@@ -38,6 +39,7 @@ internal val ALL_DEPENDENCIES_NOTATIONS = listOf(
CashApp,
Chucker,
COIL,
Detekt,
Firebase,
Google,
Http4k,
Original file line number Diff line number Diff line change
@@ -13,6 +13,9 @@ co.touchlab:kermit(-*)
io.github.javaeden.orchid:*
^^^^^^

io.gitlab.arturbosch.detekt:detekt(-*)
^^^^^^

org.http4k:http4k-*
^^^^^^

Original file line number Diff line number Diff line change
@@ -107,3 +107,4 @@ androidx.health..health-connect-client=version.androidx.health-connect-client
com.google.accompanist..accompanist-glide=version.google.accompanist
com.google.accompanist..accompanist-imageloading-core=version.google.accompanist
app.cash.molecule..molecule-testing=version.app.cash.molecule
androidx.compose.runtime..runtime-tracing=version.androidx.compose.runtime
Original file line number Diff line number Diff line change
@@ -751,6 +751,8 @@ io.github.javaeden.orchid:OrchidTaxonomies
io.github.javaeden.orchid:OrchidTest
io.github.javaeden.orchid:OrchidWiki
io.github.javaeden.orchid:OrchidWritersBlocks
io.gitlab.arturbosch.detekt:detekt-formatting
io.gitlab.arturbosch.detekt:detekt-gradle-plugin
io.insert-koin:koin-android
io.insert-koin:koin-android-compat
io.insert-koin:koin-androidx-compose
Original file line number Diff line number Diff line change
@@ -805,6 +805,8 @@ io.github.javaeden.orchid..OrchidTaxonomies=Orchid.plugins.taxonomies
io.github.javaeden.orchid..OrchidTest=Orchid.test
io.github.javaeden.orchid..OrchidWiki=Orchid.plugins.wiki
io.github.javaeden.orchid..OrchidWritersBlocks=Orchid.plugins.writersBlocks
io.gitlab.arturbosch.detekt..detekt-formatting=Detekt.formatting
io.gitlab.arturbosch.detekt..detekt-gradle-plugin=Detekt.gradlePlugin
io.insert-koin..koin-android-compat=Koin.androidCompat
io.insert-koin..koin-android=Koin.android
io.insert-koin..koin-androidx-compose=Koin.compose
Original file line number Diff line number Diff line change
@@ -58,7 +58,7 @@ androidx.compose.runtime..runtime-livedata=version.androidx.compose.runtime
androidx.compose.runtime..runtime-rxjava2=version.androidx.compose.runtime
androidx.compose.runtime..runtime-rxjava3=version.androidx.compose.runtime
androidx.compose.runtime..runtime-saveable=version.androidx.compose.runtime
androidx.compose.runtime..runtime-tracing=version.androidx.compose.runtime
androidx.compose.runtime..runtime-tracing=version.androidx.compose.runtime-tracing
androidx.compose.runtime..runtime=version.androidx.compose.runtime
androidx.compose.ui..ui-geometry=version.androidx.compose.ui
androidx.compose.ui..ui-graphics=version.androidx.compose.ui
@@ -751,6 +751,8 @@ io.github.javaeden.orchid..OrchidTaxonomies=version.orchid
io.github.javaeden.orchid..OrchidTest=version.orchid
io.github.javaeden.orchid..OrchidWiki=version.orchid
io.github.javaeden.orchid..OrchidWritersBlocks=version.orchid
io.gitlab.arturbosch.detekt..detekt-formatting=version.detekt
io.gitlab.arturbosch.detekt..detekt-gradle-plugin=version.detekt
io.insert-koin..koin-android-compat=version.koin
io.insert-koin..koin-android=version.koin
io.insert-koin..koin-androidx-compose=version.koin
2 changes: 1 addition & 1 deletion sample-android/app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -25,7 +25,7 @@ dependencies {
implementation(AndroidX.constraintLayout)
implementation(Google.android.material)
implementation(AndroidX.lifecycle.runtime)
implementation(AndroidX.lifecycle.runtimeKtx)
implementation(AndroidX.lifecycle.runtime.ktx)
implementation(AndroidX.lifecycle.viewModel)
testImplementation(Testing.junit4)
androidTestImplementation(AndroidX.test.core)
4 changes: 2 additions & 2 deletions sample-android/versions.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#### Dependencies and Plugin versions with their available updates.
#### Generated by `./gradlew refreshVersions` version 0.41.0-SNAPSHOT
#### Revision of dependency notations removals: 11
#### Generated by `./gradlew refreshVersions` version 0.52.0-SNAPSHOT
#### Revision of dependency notations removals: 15
####
#### Don't manually edit or split the comments that start with four hashtags (####),
#### they will be overwritten by refreshVersions.
4 changes: 2 additions & 2 deletions sample-groovy/versions.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#### Dependencies and Plugin versions with their available updates.
#### Generated by `./gradlew refreshVersions` version 0.51.0-SNAPSHOT
#### Revision of dependency notations removals: 14
#### Generated by `./gradlew refreshVersions` version 0.52.0-SNAPSHOT
#### Revision of dependency notations removals: 15
####
#### Don't manually edit or split the comments that start with four hashtags (####),
#### they will be overwritten by refreshVersions.