Replies: 3 comments 7 replies
-
Why is class I'd encourage you to start with the official template here and then customize further. |
Beta Was this translation helpful? Give feedback.
-
Hi @methob
What do you mean with this specifically? I'm wondering if you're referring to the META-INF/services file you need to create like this one here: https://github.com/detekt/detekt-custom-rule-template/blob/main/src/main/resources/META-INF/services/io.gitlab.arturbosch.detekt.api.RuleSetProvider As @schalkms suggested, please make sure to use the template as it will set up everything for you. |
Beta Was this translation helpful? Give feedback.
-
Hello, After I try different things I am getting this error ps: i have two productFlavor(uat e prd) in my project and i create a custom module called custom-rules, which holds my rules I'm importing the module like this: detekt project(':custom-rules')
|
Beta Was this translation helpful? Give feedback.
-
I tried many things to call the custom rule to be called but nothing works
My Rule:
config:
i added this file: com.btg.pactual.banking.detekt_custom_rules.detekt.MyRuleSetProvider
my detekt version é 1.19.0
My Gradle version is 7.3.3
My kotlin version is 1.6.0
Beta Was this translation helpful? Give feedback.
All reactions