Slackbot
08/07/2020, 9:04 AMgammax
08/07/2020, 11:17 AM@Sample
annotation? Are there scenarios where such annotation is allowed? If not, you can probably use the https://github.com/detekt/detekt/blob/master/detekt-rules-style/src/main/kotlin/io/gitlab/arturbosch/detekt/rules/style/ForbiddenImport.kt rule.Rupesh
08/07/2020, 11:34 AMgammax
08/07/2020, 12:19 PMI want to force to dev that do not use that annotation inside class keep outside of that.I don’t understand sorry. You want to prevent the usage of such annotation. Is that correct?
Rupesh
08/07/2020, 12:21 PMclass A{
// Here prevent
}
//Here dev can use because its outside the class but in the same file
@Sample
fun testMethod4(){
// implementation goes here
}