From 89a4b94a5a7e5c730fe5426c64ba1807e8dfa784 Mon Sep 17 00:00:00 2001 From: kaixiliu Date: Fri, 26 Jul 2024 15:27:34 +0800 Subject: llm-adaptation adds checkstyle configuration Issue-ID: USECASEUI-839 Change-Id: I8df24e5fca8625262d3ce4f8fc65322ef80bb803 Signed-off-by: kaixiliu --- checkstyle/pom.xml | 20 ++ .../onap-checkstyle/apache-license-2.regexp.txt | 15 + .../resources/onap-checkstyle/check-license.xml | 35 +++ .../resources/onap-checkstyle/onap-java-style.xml | 338 +++++++++++++++++++++ llm-adaptation/pom.xml | 58 ++++ pom.xml | 1 + 6 files changed, 467 insertions(+) create mode 100644 checkstyle/pom.xml create mode 100644 checkstyle/src/main/resources/onap-checkstyle/apache-license-2.regexp.txt create mode 100644 checkstyle/src/main/resources/onap-checkstyle/check-license.xml create mode 100644 checkstyle/src/main/resources/onap-checkstyle/onap-java-style.xml diff --git a/checkstyle/pom.xml b/checkstyle/pom.xml new file mode 100644 index 0000000..a3e998b --- /dev/null +++ b/checkstyle/pom.xml @@ -0,0 +1,20 @@ + + + 4.0.0 + + org.onap.usecase-ui.llm-adaptation + usecase-ui-llm-adaptation-parent + 14.0.0-SNAPSHOT + + + checkstyle + + + 17 + 17 + UTF-8 + + + \ No newline at end of file diff --git a/checkstyle/src/main/resources/onap-checkstyle/apache-license-2.regexp.txt b/checkstyle/src/main/resources/onap-checkstyle/apache-license-2.regexp.txt new file mode 100644 index 0000000..5b69f28 --- /dev/null +++ b/checkstyle/src/main/resources/onap-checkstyle/apache-license-2.regexp.txt @@ -0,0 +1,15 @@ +^/[*]+$ +^ \* Copyright .*$ +^ \*( )?$ +^ \* Licensed under the Apache License, Version 2.0 \(the "License"\);$ +^ \* you may not use this file except in compliance with the License.$ +^ \* You may obtain a copy of the License at$ +^ \*( )?$ +^ \*( )*http://www.apache.org/licenses/LICENSE-2.0$ +^ \*( )?$ +^ \* Unless required by applicable law or agreed to in writing, software +^ \* distributed under the License is distributed on an "AS IS" BASIS, +^ \* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +^ \* See the License for the specific language governing permissions and +^ \* limitations under the License. +^ [*]+/$ diff --git a/checkstyle/src/main/resources/onap-checkstyle/check-license.xml b/checkstyle/src/main/resources/onap-checkstyle/check-license.xml new file mode 100644 index 0000000..8421f52 --- /dev/null +++ b/checkstyle/src/main/resources/onap-checkstyle/check-license.xml @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + + + + + diff --git a/checkstyle/src/main/resources/onap-checkstyle/onap-java-style.xml b/checkstyle/src/main/resources/onap-checkstyle/onap-java-style.xml new file mode 100644 index 0000000..3de8f61 --- /dev/null +++ b/checkstyle/src/main/resources/onap-checkstyle/onap-java-style.xml @@ -0,0 +1,338 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/llm-adaptation/pom.xml b/llm-adaptation/pom.xml index 7081c0d..c9d80f9 100644 --- a/llm-adaptation/pom.xml +++ b/llm-adaptation/pom.xml @@ -24,6 +24,8 @@ true ${project.version} reuseReports + 3.3.1 + [4.1.2,) @@ -77,6 +79,62 @@ + + org.apache.maven.plugins + maven-checkstyle-plugin + ${version.maven-checkstyle-plugin} + + + onap-license + + check + + process-sources + + onap-checkstyle/check-license.xml + false + true + false + + ${project.build.sourceDirectory} + + true + false + warning + + + + onap-java-style + + check + + process-sources + + + onap-checkstyle/onap-java-style.xml + + ${project.build.sourceDirectory} + true + true + true + true + false + warning + + + + + + org.onap.usecase-ui.llm-adaptation + checkstyle + 14.0.0-SNAPSHOT + compile + + + org.springframework.boot spring-boot-maven-plugin diff --git a/pom.xml b/pom.xml index 91c1a3a..2e261f2 100644 --- a/pom.xml +++ b/pom.xml @@ -26,6 +26,7 @@ llm-adaptation standalone + checkstyle -- cgit 1.2.3-korg