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

mjthornton

11/05/2020, 5:39 PM
I'm currently writing unit tests for my custom rules. Is there a way to supply .lint() an entire file instead or strings? This works for me, but for longer strings, it gets very messy
Copy code
@Test
fun `TOFUBRuleTest() Test`(){
    TOFUBRule().lint("$kDOCTestString")
}
m

mjthornton

11/05/2020, 7:21 PM
It worked perfectly Thank you!
🙏 1
4 Views