From 78edc76269351d3a40255be52d7f80ec862692f5 Mon Sep 17 00:00:00 2001 From: Marcel Bochtler Date: Fri, 17 Jan 2025 16:44:16 +0100 Subject: [PATCH] docs(development): Add documentation about Detekt's auto-correct feature Signed-off-by: Marcel Bochtler --- website/docs/development.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/website/docs/development.md b/website/docs/development.md index 07bb8ffbbb6d7..385fa7ab5cc02 100644 --- a/website/docs/development.md +++ b/website/docs/development.md @@ -96,6 +96,12 @@ To run only the subset of rules that do not require type resolution, use: ./gradlew detekt ``` +To automatically fix some common style issues like the import order or the spacing around operators, use: + +```shell +./gradlew detekt --auto-correct +``` + ### Markdownlint [Markdownlint](https://github.com/DavidAnson/markdownlint) is used to check the Markdown files.