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

bobby

05/18/2022, 1:15 AM
hi everyone, is there a feature in Detekt like importing custom rule from community to our project? for example, I want to use all rules that widely use by Airbnb or Stream instead of the default one on my project. one of my friend told me that this feature is available in ESLInt, and its quite interesting actually to have it on Detekt too when digging to this, I come to conclusion that replacing the
config.yml
could be a way to do it, cmiiw thanks and have a great day
g

gammax

05/18/2022, 11:29 AM
Yes that's supported today using the detektPlugin Gradle configuration. The rules should be published on some Maven repo though
👍 1
b

bobby

05/19/2022, 4:34 AM
thanks for the info, do you mind to share the link for the documentation? so I can read about it further?
g

gammax

05/19/2022, 10:57 AM
Sadly the docs on this side are really scarce 😞 We're looking for support. It's currently documented here https://detekt.dev/docs/introduction/extensions/#integrate-your-extension-with-the-detekt-gradle-plugin But agree we can make a better job
b

bobby

05/23/2022, 1:16 AM
got it, thanks for the link
3 Views