Skip to content
This repository was archived by the owner on Jul 16, 2024. It is now read-only.

Commit 28e1805

Browse files
committed
Merge remote-tracking branch 'origin/trunk' into compose-migration
2 parents fef5663 + 144dccd commit 28e1805

File tree

1 file changed

+90
-0
lines changed

1 file changed

+90
-0
lines changed

detekt.yml

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -785,3 +785,93 @@ style:
785785
active: true
786786
excludeImports:
787787
- 'java.util.*'
788+
789+
# https://mrmans0n.github.io/compose-rules/detekt
790+
Compose:
791+
ComposableAnnotationNaming:
792+
active: true
793+
ComposableNaming:
794+
active: true
795+
# -- You can optionally disable the checks in this rule for regex matches against the composable name (e.g. molecule presenters)
796+
# allowedComposableFunctionNames: .*Presenter,.*MoleculePresenter
797+
ComposableParamOrder:
798+
active: true
799+
# -- You can optionally have a list of types to be treated as lambdas (e.g. typedefs or fun interfaces not picked up automatically)
800+
# treatAsLambda: MyLambdaType
801+
CompositionLocalAllowlist:
802+
active: true
803+
# -- You can optionally define a list of CompositionLocals that are allowed here
804+
# allowedCompositionLocals: LocalSomething,LocalSomethingElse
805+
CompositionLocalNaming:
806+
active: true
807+
ContentEmitterReturningValues:
808+
active: true
809+
# -- You can optionally add your own composables here
810+
# contentEmitters: MyComposable,MyOtherComposable
811+
DefaultsVisibility:
812+
active: true
813+
LambdaParameterInRestartableEffect:
814+
active: true
815+
# -- You can optionally have a list of types to be treated as lambdas (e.g. typedefs or fun interfaces not picked up automatically)
816+
# treatAsLambda: MyLambdaType
817+
ModifierClickableOrder:
818+
active: true
819+
# -- You can optionally add your own Modifier types
820+
# customModifiers: BananaModifier,PotatoModifier
821+
ModifierComposable:
822+
active: true
823+
# -- You can optionally add your own Modifier types
824+
# customModifiers: BananaModifier,PotatoModifier
825+
ModifierMissing:
826+
active: true
827+
# -- You can optionally control the visibility of which composables to check for here
828+
# -- Possible values are: `only_public`, `public_and_internal` and `all` (default is `only_public`)
829+
# checkModifiersForVisibility: only_public
830+
# -- You can optionally add your own Modifier types
831+
# customModifiers: BananaModifier,PotatoModifier
832+
ModifierNaming:
833+
active: true
834+
# -- You can optionally add your own Modifier types
835+
# customModifiers: BananaModifier,PotatoModifier
836+
ModifierNotUsedAtRoot:
837+
active: true
838+
# -- You can optionally add your own composables here
839+
# contentEmitters: MyComposable,MyOtherComposable
840+
# -- You can optionally add your own Modifier types
841+
# customModifiers: BananaModifier,PotatoModifier
842+
ModifierReused:
843+
active: true
844+
# -- You can optionally add your own Modifier types
845+
# customModifiers: BananaModifier,PotatoModifier
846+
ModifierWithoutDefault:
847+
active: true
848+
MultipleEmitters:
849+
active: true
850+
# -- You can optionally add your own composables here that will count as content emitters
851+
# contentEmitters: MyComposable,MyOtherComposable
852+
# -- You can add composables here that you don't want to count as content emitters (e.g. custom dialogs or modals)
853+
# contentEmittersDenylist: MyNonEmitterComposable
854+
MutableParams:
855+
active: true
856+
MutableStateParam:
857+
active: true
858+
PreviewAnnotationNaming:
859+
active: true
860+
PreviewPublic:
861+
active: true
862+
RememberMissing:
863+
active: true
864+
RememberContentMissing:
865+
active: true
866+
UnstableCollections:
867+
active: true
868+
ViewModelForwarding:
869+
active: true
870+
# -- You can optionally use this rule on things other than types ending in "ViewModel" or "Presenter" (which are the defaults). You can add your own via a regex here:
871+
# allowedStateHolderNames: .*ViewModel,.*Presenter
872+
# -- You can optionally add an allowlist for Composable names that won't be affected by this rule
873+
# allowedForwarding: .*Content,.*FancyStuff
874+
ViewModelInjection:
875+
active: true
876+
# -- You can optionally add your own ViewModel factories here
877+
# viewModelFactories: hiltViewModel,potatoViewModel

0 commit comments

Comments
 (0)