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
- Set the dafault value of `WRONG_INDENTATION:extendedIndentOfParameters` to `false` ### What's done: * The `WRONG_INDENTATION:extendedIndentOfParameters` flag is now unset by default. This closes #1... — committed to saveourtool/diktat by unix-junkie 2 years ago
- Set the default value of `WRONG_INDENTATION:extendedIndentOfParameters` to `false` ### What's done: * The `WRONG_INDENTATION:extendedIndentOfParameters` flag is now unset by default. This closes #1... — committed to saveourtool/diktat by 0x6675636b796f75676974687562 2 years ago
- Set the dafault value of `WRONG_INDENTATION:extendedIndentOfParameters` to `false` ### What's done: * The `WRONG_INDENTATION:extendedIndentOfParameters` flag is now unset by default. This closes #1... — committed to saveourtool/diktat by unix-junkie 2 years ago
- Set the default value of `WRONG_INDENTATION:extendedIndentOfParameters` to `false` ### What's done: * The `WRONG_INDENTATION:extendedIndentOfParameters` flag is now unset by default. This closes #1... — committed to saveourtool/diktat by 0x6675636b796f75676974687562 2 years ago
- Also set the default value of `extendedIndentOfParameters` to `false` if there's no config file ### What's done: * The default value of `extendedIndentOfParameters` is now `false` even if the YAML ... — committed to saveourtool/diktat by 0x6675636b796f75676974687562 2 years ago
- Also set the default value of `extendedIndentOfParameters` to `false` if there's no config file (#1329) ### What's done: * The default value of `extendedIndentOfParameters` is now `false` even if... — committed to saveourtool/diktat by 0x6675636b796f75676974687562 2 years ago
- Revert the default value of `extendedIndentOfParameters` back to `true` ### What's done: * This reverts commits 0706885e1eeb0b185853d0e2d0f2bf4fc73238bd and (partially) 9e3b5cb7d1a84e103ad5020bed09... — committed to saveourtool/diktat by 0x6675636b796f75676974687562 2 years ago
- Set the default values of `extendedIndentAfterOperators` and `extendedIndentBeforeDot` to `false` ### What's done: * Since Kotlin style guide mentions no continuation indent, and IDEA defaults t... — committed to saveourtool/diktat by 0x6675636b796f75676974687562 2 years ago
- Set the default values of `extendedIndentAfterOperators` and `extendedIndentBeforeDot` to `false` ### What's done: * Since Kotlin style guide mentions no continuation indent, and IDEA defaults t... — committed to saveourtool/diktat by 0x6675636b796f75676974687562 2 years ago
- Set the default values of `extendedIndentAfterOperators` and `extendedIndentBeforeDot` to `false` (#1342) ### What's done: * Since Kotlin style guide mentions no continuation indent, and IDEA... — committed to saveourtool/diktat by 0x6675636b796f75676974687562 2 years ago
Most upvoted comments
+1
akuleshov7 on May 27, 2022