Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions hooks/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
NC='\033[0m' # No Color
RED='\033[0;31m'
GREEN='\033[0;32m'

echo "${GREEN} Checking code formatting..."
mvn formatter:validate > /dev/null

status=$?
([ $status -eq 0 ] && echo "${GREEN} Formatting is OK ${NC}") || (echo "${RED} Formatting error, you can format the sources with the following command:\n\n\tmvn formatter:format\n${NC}" && exit 1)
19 changes: 19 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@
<maven-exec-plugin.version>3.3.0</maven-exec-plugin.version>
<maven-git-commit-id-plugin.version>4.9.10</maven-git-commit-id-plugin.version>
<maven-license-plugin.version>4.6</maven-license-plugin.version>
<git.build.hook.version>3.4.1</git.build.hook.version>

<!-- Spring -->
<spring.boot.version>3.4.0</spring.boot.version>
Expand Down Expand Up @@ -225,6 +226,24 @@

<build>
<plugins>
<plugin>
<groupId>com.rudikershaw.gitbuildhook</groupId>
<artifactId>git-build-hook-maven-plugin</artifactId>
<version>${git.build.hook.version}</version>
<configuration>
<gitConfig>
<core.hooksPath>hooks/</core.hooksPath>
<custom.configuration>true</custom.configuration>
</gitConfig>
</configuration>
<executions>
<execution>
<goals>
<goal>configure</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ public String toString() {
}

/**
* Initially the table READERS2 is not defined. However, the other two tables must be imported. Once
* the table is created, csvim retry should be able to import data in it as well
* Initially the table READERS2 is not defined. However, the other two tables must be imported. Once the table is created, csvim retry
* should be able to import data in it as well
*/
@Test
void testImportData() throws SQLException {
Expand Down