From 2953f158bad9387568fb35d198c4f2cb44f751ff Mon Sep 17 00:00:00 2001 From: Paul Dingemans Date: Thu, 7 Mar 2024 19:53:59 +0100 Subject: [PATCH] Fix reference in documentation Closes #2594 --- documentation/release-latest/docs/faq.md | 2 +- documentation/snapshot/docs/faq.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/documentation/release-latest/docs/faq.md b/documentation/release-latest/docs/faq.md index fb53e40fba..f658e43304 100644 --- a/documentation/release-latest/docs/faq.md +++ b/documentation/release-latest/docs/faq.md @@ -201,7 +201,7 @@ Yes, it is possible to use KtLint to directly format the code generated with Kot To do so, you must include the dependencies `com.pinterest.ktlint:ktlint-core` and `com.pinterest.ktlint:ktlint-ruleset-standard` in your Gradle/Maven project. !!! warning - Do not include the dependency `com.pinterest:ktlint` as that would import the entire ktlint project including unwanted dependencies. Besides a much bigger artifact, it might also result in problems regarding logging. + Do not include the dependency `com.pinterest.ktlint:ktlint-cli` as that would import the entire ktlint project including unwanted dependencies. Besides a much bigger artifact, it might also result in problems regarding logging. To format the output of KotlinPoet with KtLint, you can use the following snippet: diff --git a/documentation/snapshot/docs/faq.md b/documentation/snapshot/docs/faq.md index fb53e40fba..f658e43304 100644 --- a/documentation/snapshot/docs/faq.md +++ b/documentation/snapshot/docs/faq.md @@ -201,7 +201,7 @@ Yes, it is possible to use KtLint to directly format the code generated with Kot To do so, you must include the dependencies `com.pinterest.ktlint:ktlint-core` and `com.pinterest.ktlint:ktlint-ruleset-standard` in your Gradle/Maven project. !!! warning - Do not include the dependency `com.pinterest:ktlint` as that would import the entire ktlint project including unwanted dependencies. Besides a much bigger artifact, it might also result in problems regarding logging. + Do not include the dependency `com.pinterest.ktlint:ktlint-cli` as that would import the entire ktlint project including unwanted dependencies. Besides a much bigger artifact, it might also result in problems regarding logging. To format the output of KotlinPoet with KtLint, you can use the following snippet: