https://kotlinlang.org logo
#detekt
Title
# detekt
a

Atul Gupta

11/17/2023, 1:30 PM
Hi is someone knows what is difference between
Twitter's Jetpack Compose Detekt Rules
and
KODE Compose Detekt Rules
? Like in terms of philosophy or customisation?
I am planning to add compose on one of my android project wanted to know which should be picked?
l

LeoColman

11/17/2023, 1:32 PM
To be completely honest, until your message I didn't know about any of those, and I use compose for everything 😅
a

Atul Gupta

11/17/2023, 1:39 PM
👍 1
thank you color 1
l

LeoColman

11/17/2023, 1:58 PM
Cool!
Personally, with a very quick look, I find AppKODE to be closer to what I do in my Compose projects, and would probably be my choice. Twitter didn't release
compose-rules
yet (version 0.0.x) while Kode has (version 1.3.x)
Twitter rules seem to be more extensive, and restrict more what you can do, for example https://twitter.github.io/compose-rules/rules/#make-dependencies-explicit
So by the looks of it I felt it will nag me much more than KODE
a

Atul Gupta

11/17/2023, 2:04 PM
thanks for the analysis… Although Twitter one has more stars. Also side-note twitter link shared above is not maintained Current maintained one is https://kotlinlang.slack.com/archives/CJLTWPH7S/p1700228648542809?thread_ts=1700228424.747159&cid=CJLTWPH7S
👍 1
☝️ 1
l

LeoColman

11/17/2023, 2:08 PM
I also look at stars to judge libs, but I think it's a bit unfair to consider Twitter stars. It's an enormous player so stars flow in
The fork is also not released, v0.3.3. This can also mean nothing, Kover for example is still unreleased
Twitter one is deprecated after the layoffs
kodee angry Fuck that Musk guy kodee sad
😅 1
z

zt

11/20/2023, 5:56 AM
Personally I feel like this here is the best available https://github.com/mrmans0n/compose-rules
👍 1
b

Brais Gabin

11/20/2023, 8:20 AM
I use the KODE one too. Very happy with it.
👍 1
m

Marek Kubiczek

11/30/2023, 9:17 PM
Side question: can any of these be applied to Android Studio detekt plugin so I can see warning as I code and not only when I run Gradle detekt task? I failed with the Twitter rules, I guess they might be few versions behind current detekt and as such may be not compatible with latest detekt plugin 🤔
n

navczydev

12/05/2023, 11:52 PM
Twitter rules now maintained by slack folks
@Marek Kubiczek I have integrated the compose twitter rules with plugin and works as expected
a

Atul Gupta

12/06/2023, 11:18 AM
n

navczydev

12/06/2023, 11:44 PM
Yes, I am using this 1 as its actively maintained. Added the jars to the plugin's config and it works as expected
2 Views