From cd20055dbe8015dc987e9c91c192b6b9b218ccdc Mon Sep 17 00:00:00 2001 From: Dragan Ivanovic Date: Thu, 14 Sep 2023 13:34:31 +0200 Subject: [PATCH] Codestyle (#3840) * Linking code style * remove skip=true flag for checkstyle * copying checkstyle to VIVO repository * include checks and suppressions (excluding files) * Added checkstyle suppressions. * suppression defined at the level of a Java file * increasing the max line length to 120 * Adding java and javax packages at the beggining of imports --------- Co-authored-by: Ivan Mrsulja --- checkstyle-suppressions.xml | 260 ++++++++++++++++++++++++++++++++++++ checkstyle.xml | 111 +++++++++++++++ pom.xml | 4 +- 3 files changed, 373 insertions(+), 2 deletions(-) create mode 100644 checkstyle-suppressions.xml create mode 100644 checkstyle.xml diff --git a/checkstyle-suppressions.xml b/checkstyle-suppressions.xml new file mode 100644 index 000000000..30ffef985 --- /dev/null +++ b/checkstyle-suppressions.xml @@ -0,0 +1,260 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/checkstyle.xml b/checkstyle.xml new file mode 100644 index 000000000..45249ebb8 --- /dev/null +++ b/checkstyle.xml @@ -0,0 +1,111 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/pom.xml b/pom.xml index 2aa98997d..ca526f2cd 100644 --- a/pom.xml +++ b/pom.xml @@ -351,10 +351,10 @@ - duraspace-checkstyle/checkstyle.xml + checkstyle.xml - vitro-checkstyle/checkstyle-suppressions.xml + checkstyle-suppressions.xml UTF-8 true