diff --git a/build.gradle b/build.gradle index 5bf557a9ca..19dadbb949 100644 --- a/build.gradle +++ b/build.gradle @@ -322,8 +322,8 @@ jacocoTestReport { } checkstyle { - configFile file("checkstyle/sun_checks.xml") - configFile file("checkstyle/println_checks.xml") + toolVersion "10.3.3" + configDirectory.set(rootProject.file("checkstyle/")) } opensearchplugin { diff --git a/checkstyle/sun_checks.xml b/checkstyle/checkstyle.xml similarity index 91% rename from checkstyle/sun_checks.xml rename to checkstyle/checkstyle.xml index d2818ef895..eaa44635e4 100644 --- a/checkstyle/sun_checks.xml +++ b/checkstyle/checkstyle.xml @@ -19,7 +19,7 @@ To suppress certain violations please review suppression filters. Finally, it is worth reading the documentation. --> - + + + + + + + @@ -188,6 +195,14 @@ + + + + + + + + @@ -215,5 +230,4 @@ - diff --git a/checkstyle/println_checks.xml b/checkstyle/println_checks.xml deleted file mode 100644 index 6fd2f7aff4..0000000000 --- a/checkstyle/println_checks.xml +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - - - - - - - - - - - - - -