Jukka Siivonen
12/02/2021, 10:09 AMgammax
12/02/2021, 3:20 PMiamthevoid
12/05/2021, 8:19 AMNoUnusedImports
issue and it autocorrects. Now i get another issue UnusedImports
and these unused imports don't disappear (autocorrecting not working)
Or before i got issue when blank lines were in end of file or between class members. Now i got BUILD SUCCESSFUL
in same cases.
I though it was wrong paths - but checked - config and baseline path points exactly where i want too. Sources folders also set correctly (when i comment they - i get BUILD SUCCESSFUL
in cases when shouldn't)
What do i miss? Config in threadJavier
12/15/2021, 2:05 PMdimsuz
12/15/2021, 5:27 PMkts
file like this:
subprojects {
apply(plugin = "io.gitlab.arturbosch.detekt")
tasks.withType<io.gitlab.arturbosch.detekt.Detekt>() {
config.setFrom(files(rootProject.file("detekt-config.yml")))
}
}
And when I run this with either detektMain
or detektDebug
(i.e. with Type Resolution), my detekt-config is not being read, because rules I have disabled are actually used and my custom rule set is not used.
But if I run without type resolution: detekt
, then it works and sees the config.
Is this a known issue? Detekt is 1.19.0
dimsuz
12/15/2021, 6:57 PMMarcelo Hernandez
12/15/2021, 8:29 PMsetContent
function is called directly instead of a custom setFooContent { }
which takes care of theming. However when it comes to testing the rule, how does one include the class path of the Compose environment when the custom rule project is a pure Kotlin library?iliask
12/16/2021, 2:23 PMdetekt
(without type resolution at the moment) always run after assemble
tasks automatically, either through a detekt configuration or some gradle magic?miqbaldc
12/17/2021, 4:22 AMsonar-kotlin
only supports for sonar 7.9.3
, is there any supported version for sonar 7.9.1
?dimsuz
12/17/2021, 11:58 AMdetekt
I get UseDataClass
error, but if I run detektAndroidDebug
on the same module, I get a BUILD SUCCESSFUL
.mkrussel
12/17/2021, 5:00 PMrocketraman
12/20/2021, 8:31 PMdimsuz
12/23/2021, 11:31 AMmaster
in your IDE and then...??? How would you go about attaching debugger to a detekt which is being run on that separate project.
Or is it vice versa: you put log-statements in detekt's code, build jar and then run "detekt" task in the sample project?dimsuz
12/23/2021, 11:45 AMBrais Gabin
12/23/2021, 9:13 PMJavier
12/24/2021, 12:31 PMmultiplatform
in docs and I found nothing. I am just running ./gradlew detekt
(indeed ./gradlew build
) and I would like to know if just running it in the linux runner is enough or I just run detekt
on every single runner to detect code smells in all targets of all modules. I would like to avoid running specific detekt**
tasks because I am using reusable workflows in all projects and every project can have different targets and I want a modular workflow but not very complex one.iamthevoid
12/26/2021, 9:21 PM* What went wrong:
Execution failed for task ':android:app:detekt'.
> java.lang.IllegalStateException: Analyzing /Users/user/StudioProjects/_work/rt-mlk-mobile-kmm/android/app/src/main/java/ru/rt/mlk/android/infrastructure/connectivity/AndroidConnectivityStatus.kt led to an exception.
The original exception message was: java.lang.IllegalArgumentException: Missing extension point: org.jetbrains.kotlin.com.intellij.treeCopyHandler in container org.jetbrains.kotlin.com.intellij.core.CoreApplicationEnvironment$1@14a4044f
Running detekt '1.19.0' on Java '11.0.11+9' on OS 'Mac OS X'
If the exception message does not help, please feel free to create an issue on our GitHub page.
hfhbd
12/31/2021, 2:57 PMRainer Schlonvoigt
01/10/2022, 10:50 AMSet<SomeInterfaceType>
on public APIs in our project because the Swift interop for it is really bad.dimsuz
01/12/2022, 4:47 PMpackage my.project; fun TextField()
rather than fun MyProjectTextField()
to differtiate this from built-in anrdoidx.compose.material.TextField
.
So I'm about to write some rule which detekts usages of com.google.TextField
and suggests replacing it with my.project.TextField
, same for classes. And I thought maybe I missed some existing rule.Tim Oltjenbruns
01/19/2022, 9:04 PMSebastian Schuberth
01/21/2022, 6:22 PMdavebarda
01/25/2022, 9:48 PMJanusz Chorko
02/02/2022, 4:42 PMsrc
├── variant1
│ └── java
│ └── files here are processed
├── main
│ └── java
│ └── files here are processed
└── variant2
└── kotlin
└── files here are ignored
If I rename sources directory to java it reports issues in those files.
I'm not specifying any custom source directories in my build scripts.
Does detekt use only java sources instead of kotlin sources? AGP sourceSets task reports java subdir in java sources and both in kotlin sources:
Java sources: [module1\src\variant2Debug\java]
Kotlin sources: [module1\src\variant2Debug\kotlin, module1\src\variant2Debug\java]
PJ Walstrom
02/09/2022, 2:30 PM> Task :detekt FAILED
formatting - 5min debt
ImportOrdering - [] at HealthRoutes.kt:3:1
This is our current configsimon.vergauwen
02/09/2022, 3:44 PMbaselline.yml
to a Gradle plugin?
When I add it to src/resource
it's not working correctly 😞 And it seems I cannot configure all properties from the baseline programmatically, or am I looking in the wrong place?Justin Tullgren
02/14/2022, 2:47 PMRule
visitor method to override to determine if a type implements an interface? I looked at visitSuperTypeEntry but in poking it I didn't see what i was looking for. Usecase: if a type implements an interface, check the value set to a val
property.mkrussel
02/16/2022, 9:51 PMorg.jetbrains.kotlin.psi
package. Everything compiles but the IDE not finding the classes make it hard to use.
Is there something I need to configure to get this working?Eric
02/18/2022, 3:27 PMdetekt-config-1.15.yml
and detekt-config-1.19.yml
etc. I’d like my task to just discover the version of detekt and built the URL automatically. I can do something like
project.extensions.findByName("io.gitlab.arturbosch.detekt")
to find the plugin, but then how can I introspect that to find the version?Javi Chaqués
02/22/2022, 8:17 AM