faire-detekt-rules – opinionated rule set for Detekt

faire-detekt-rules is an opinionated rule set for Detekt that plugs into Kotlin builds to enforce additional static analysis checks beyond the standard Detekt rules.

It focuses on code patterns that can reduce bugs, improve readability, and standardize conventions, with checks covering assertions, collection usage, nullable receivers, imports, enum handling, global variables, and related Kotlin practices.

This is free and open source software.

Key Features

  • Provides a custom Detekt rule set for Kotlin projects.
  • Flags potentially error-prone Kotlin idioms and API usage.
  • Offers autocorrection for many supported rules when Detekt autocorrect is enabled.
  • Supports Gradle integration through the detektPlugins dependency configuration.
  • Includes configurable handling for banned imports and VisibleForTesting access.

Website: github.com/Faire/faire-detekt-rules
Support:
Developer: Faire
License: Apache License 2.0

faire-detekt-rules is written in Kotlin. Learn Kotlin with our recommended free books and free tutorials.


Related Software

Kotlin Linters
ktlintKotlin linter with built-in formatter
detektStatic code analysis for Kotlin
KonsistStatic code analyzer tailored for Kotlin
Ktlint GradleGradle plugin that wires ktlint formatting into builds
Kotlinter GradlePlugin for linting and formatting
faire-detekt-rulesOpinionated detekt rules for cleaner, safer Kotlin code
Compose RulesStatic analysis checks that tighten Jetpack Compose quality

Read our verdict in the software roundup.


Best Free and Open Source Software Explore our carefully curated directory of recommended free and open source software, covering every major software category.

The directory forms part of our extensive collection of articles for Linux enthusiasts. It includes hundreds of detailed reviews, together with free and open source alternatives to proprietary software from companies such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk.

LinuxLinks also covers interesting projects worth exploring, Linux-compatible hardware, free programming books and tutorials, and much more.

Know a useful free and open source Linux application that we haven’t covered? Tell us about it using our submission form.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted