From 2e4458e160c0b6fb430b828a03fe055bf05bc8c3 Mon Sep 17 00:00:00 2001 From: Dragan Ivanovic Date: Thu, 14 Sep 2023 13:34:06 +0200 Subject: [PATCH] Codestyle (#372) * Adding code style * Small correction of code style * Putting under comments checkstyle rules * include checks and suppressions (excluding files) * Added checkstyle suppressions. * suppression defined at the level of a Java file * adding JFactTBoxReasonerTest in the suppression * replacement of tabs with spaces in a property 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 | 1298 +++++++++++++++++ checkstyle.xml | 111 ++ .../config/example.developer.properties | 4 +- pom.xml | 4 +- 4 files changed, 1413 insertions(+), 4 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..9cbcfecd2 --- /dev/null +++ b/checkstyle-suppressions.xml @@ -0,0 +1,1298 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ 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/home/src/main/resources/config/example.developer.properties b/home/src/main/resources/config/example.developer.properties index dcac9c005..310052988 100644 --- a/home/src/main/resources/config/example.developer.properties +++ b/home/src/main/resources/config/example.developer.properties @@ -82,8 +82,8 @@ # developer.searchEngine.enable = false # developer.searchEngine.addStackTrace = false # developer.searchEngine.addResults = false -# developer.searchEngine.queryRestriction = .* -# developer.searchEngine.stackRestriction = .* +# developer.searchEngine.queryRestriction = .* +# developer.searchEngine.stackRestriction = .* #------------------------------------------------------------------------------ diff --git a/pom.xml b/pom.xml index 53d4d5166..c8a7f197a 100644 --- a/pom.xml +++ b/pom.xml @@ -307,10 +307,10 @@ - duraspace-checkstyle/checkstyle.xml + checkstyle.xml - vitro-checkstyle/checkstyle-suppressions.xml + checkstyle-suppressions.xml UTF-8 true