Skip to main content

Detekt 3rd-party Marketplace

List of Detekt Rules, Extensions & Plugins that have been built by the community.

🙏 Please add your rulesetFind more rules on Github

All extensions

  • Compiler

    • ruleset
    Source
    https://github.com/BraisGabin/detekt-compiler-rules

    A ruleset that wraps the warnings and info messages of the Kotlin compiler as detekt findings..

    Rules

    Uses type resolution: true

    • CompilerInfo
    • CompilerWarning

  • Compose by appKODE

    • ruleset
    Source
    https://github.com/appKODE/detekt-rules-compose

    A set of Detekt rules to help prevent common errors in projects using Jetpack Compose.

    Rules

    Uses type resolution: false

    • ReusedModifierInstance
    • UnnecessaryEventHandlerParameter
    • ComposableEventParameterNaming
    • ModifierHeightWithText
    • ModifierParameterPosition
    • ModifierDefaultValue
    • MissingModifierDefaultValue
    • PublicComposablePreview

  • Compose by Twitter

    • ruleset
    Source
    https://github.com/twitter/compose-rules/

    Static checks to aid with a healthy adoption of Jetpack Compose.

    Rules

    Uses type resolution: false

    • ComposableNaming
    • ComposableParamOrder
    • ContentEmitterReturningValues
    • ModifierComposable
    • ModifierMissing
    • ModifierReused
    • ModifierWithoutDefault
    • MultipleEmitters
    • MutableParams
    • PreviewPublic
    • RememberMissing
    • ViewModelForwarding
    • ViewModelInjection

  • Doist detekt-rules

    • ruleset
    Source
    https://github.com/Doist/detekt-rules

    This repository contains custom detekt rules based on Doist internal coding conventions.

    Rules

    Uses type resolution: false

    • NoBlankNewLineAfterClassHeader
    • ConsistentWhenEntries
    • SingleLineWhenEntryExpressionsAreWrapped
    • MutableObservablePropertyIsPrivate
    • NoNotNullOperator
    • TodoPattern

  • Kure

    • ruleset
    Source
    https://github.com/neeffect/kure-potlin

    The purpose of this ruleset for functional programming is to report the potential use of impure language elements in kotlin code.

    Rules

    Uses type resolution: true

    • LoopDefinition
    • ReturnStatement
    • VariableDefinition
    • ReturnUnit
    • ClassDefinition
    • AbstractClassDefinition
    • ThrowExpression
    • MutableCollections
    • BranchStatement
    • MissingElse

  • Hint

    • plugin
    • ruleset
    Source
    https://github.com/mkohm/detekt-hint

    A 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

    • InterfaceSegregationPrinciple
    • LackOfCohesionMethods
    • OpenClosedPrinciple
    • UseCompositionInsteadOfInheritance

  • Gitlab Report

    • reporter
    Source
    https://gitlab.com/cromefire/detekt-gitlab-report

    A 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.

  • Operator

    • ruleset
    Source
    https://github.com/colematthew4/detekt-operator

    Rules to prefer expressions over named functions for kotlin operators.

    Rules

    Uses type resolution: false

    • PreferInOverContainsSyntax
    • PreferUnaryPrefixOverFunctionSyntax
    • PreferUnaryPostfixOverFunctionSyntax
    • PreferArithmeticSymbolSyntax
    • PreferBracketAccessorOverFunctionSyntax

  • Verify Implementation

    • ruleset
    Source
    https://github.com/cph-cachet/detekt-verify-implementation

    A ruleset which enables verifying whether concrete classes are implemented as specified according to annotations applied to base types.

    Rules

    Uses type resolution: true

    • Immutable
    • DataClass