From e222867085d36e94d635448a682c7c96c91704b8 Mon Sep 17 00:00:00 2001 From: Nariman Abdullin Date: Tue, 6 Dec 2022 12:18:33 +0300 Subject: [PATCH 1/2] Fix diktat:fix ### What's done: * moved configuration for diktat-maven-plugin to pluginManagements. It forces `diktat:fix` to use this configuration when `diktat:fix` called manually --- pom.xml | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/pom.xml b/pom.xml index 4c563e8384..3c623e4348 100644 --- a/pom.xml +++ b/pom.xml @@ -380,6 +380,21 @@ exec-maven-plugin 3.1.0 + + org.cqfn.diktat + diktat-maven-plugin + ${diktat-check.version} + + + ${project.basedir}/src/main/kotlin + ${project.basedir}/src/test/kotlin + + + ${project.basedir}/src/main/kotlin/generated + + diktat-analysis.yml + + org.jacoco jacoco-maven-plugin @@ -469,16 +484,6 @@ check fix - - - ${project.basedir}/src/main/kotlin - ${project.basedir}/src/test/kotlin - - - ${project.basedir}/src/main/kotlin/generated - - diktat-analysis.yml - From 1d5a4691cc231dc669b56ef772382644f70f267d Mon Sep 17 00:00:00 2001 From: Nariman Abdullin Date: Tue, 6 Dec 2022 12:20:06 +0300 Subject: [PATCH 2/2] removed version in plugin call --- pom.xml | 1 - 1 file changed, 1 deletion(-) diff --git a/pom.xml b/pom.xml index 3c623e4348..6e14502182 100644 --- a/pom.xml +++ b/pom.xml @@ -475,7 +475,6 @@ org.cqfn.diktat diktat-maven-plugin - ${diktat-check.version} diktat