diktat: False positive finding for `WRONG_INDENTATION`

When running diktatCheck I get a false-positive finding for the following code snippet:

            Surface(
                modifier = Modifier.fillMaxSize(),
                color = MaterialTheme.colors.background,
            ) {
                Text("Android")
            }

Warning: expected 20 but was 16 So it expects:

            Surface(
                    modifier = Modifier.fillMaxSize(),
                    color = MaterialTheme.colors.background,
            ) {
                Text("Android")
            }

Maybe this is Jetpack Compose specific and you want to adjust the rule in this direction.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 20 (15 by maintainers)

Commits related to this issue

Most upvoted comments

You might want to adjust the default setting. Exactly! Thank you for catching that! We forgot to revert an example