<https://chris.banes.dev/always-provide-a-modifier...
# compose
i
https://chris.banes.dev/always-provide-a-modifier/ Would there be a lint warning for something like this?
☝🏼 1
🙏🏼 1
🙏 5
☝️ 2
👀 6
2
c
Seems like it could get pretty annoying, but I'd love a lint lib dependency I could add from chris (or anyone else) for this. haha
d
We have a
detekt
rule for this. Also another rule for mistake which turns up quite often during refactoring, where after moving composable calls around you end up with
Copy code
fun MyLayout(modifier: Modifier) {
  Column {
    Box(modifier = modifier) { }
  }
}
while it should be
Copy code
fun MyLayout(modifier: Modifier) {
  Column(modifier = modifier) {
    Box { }
  }
}