https://github.com/appKODE/detekt-rules-composeA set of Detekt rules to help prevent common errors in projects using Jetpack Compose.
Rules
Uses type resolution: false
ReusedModifierInstanceUnnecessaryEventHandlerParameterComposableEventParameterNamingModifierHeightWithTextModifierParameterPositionModifierDefaultValueMissingModifierDefaultValuePublicComposablePreview
https://github.com/twitter/compose-rules/Static checks to aid with a healthy adoption of Jetpack Compose.
Rules
Uses type resolution: false
ComposableNamingComposableParamOrderContentEmitterReturningValuesModifierComposableModifierMissingModifierReusedModifierWithoutDefaultMultipleEmittersMutableParamsPreviewPublicRememberMissingViewModelForwardingViewModelInjection
https://github.com/Doist/detekt-rulesThis repository contains custom detekt rules based on Doist internal coding conventions.
Rules
Uses type resolution: false
NoBlankNewLineAfterClassHeaderConsistentWhenEntriesSingleLineWhenEntryExpressionsAreWrappedMutableObservablePropertyIsPrivateNoNotNullOperatorTodoPattern
https://github.com/mkohm/detekt-hintA ruleset to implement detection of violation of programming principles. detekt-hint offers also instructions on how to integrate with Danger and Github Actions
Rules
Uses type resolution: true
InterfaceSegregationPrincipleLackOfCohesionMethodsOpenClosedPrincipleUseCompositionInsteadOfInheritance
https://gitlab.com/cromefire/detekt-gitlab-reportA reporter to export Detekt findings to GitLab Code Quality (and other code climate compatible tools).
This is designed for use with GitLab, but should also work fine with everything else that accepts the code climate format.
https://github.com/colematthew4/detekt-operatorRules to prefer expressions over named functions for kotlin operators.
Rules
Uses type resolution: false
PreferInOverContainsSyntaxPreferUnaryPrefixOverFunctionSyntaxPreferUnaryPostfixOverFunctionSyntaxPreferArithmeticSymbolSyntaxPreferBracketAccessorOverFunctionSyntax
https://github.com/cph-cachet/detekt-verify-implementationA ruleset which enables verifying whether concrete classes are implemented as specified according to annotations applied to base types.
Rules
Uses type resolution: true