...
compose:
ReusedModifierInstance: #finds usages of modifier parameter on non-top-level children of a composable function. This tends to happen during refactorings and often leads to incorrect rendering of a composable
active: true
UnnecessaryEventHandlerParameter: #suggests hoisting event argument passing to the upper level which often simplifies individual composable components
active: true
ComposableEventParameterNaming: #ensures that all event handler parameters of composable functions are named in the same Compose-like style, i.e. they have on prefix and do not use past tense
active: true
ComposableParametersOrdering: #suggests separating required an optional parameters of the composable function into groups
active: true
ModifierHeightWithText: #suggests using Modifier.heightIn() instead of Modifier.height() on a layouts which have Text children, so that if the text turns out to be long and would wrap, layout will not cut it off
active: true
ModifierParameterPosition: #ensures that modifier is declared as a first parameter
active: true
ModifierDefaultValue: #ensures that modifier parameter has a correct default value
active: true
MissingModifierDefaultValue: #checks if modifier default value is specified
active: true
PublicComposablePreview: #finds and reports composable previews which are not marked as private
active: true
TopLevelComposableFunctions: #ensures that all composable functions are top-level functions (disabled by default)
active: true
And then this: gradle detektAll.
The result doesn't have anything related to compose!
My
detekt.gradle.kts
inbuildSrc
:and in the end of
detekt.yml
:And then this:
gradle detektAll
. The result doesn't have anything related to compose!