Skip to content

Commit

Permalink
Merge pull request #130 from shreelakshmijoshi/resolving-checkstyle-i…
Browse files Browse the repository at this point in the history
…ssues

Resolving checkstyle issues
  • Loading branch information
shreelakshmijoshi authored Nov 14, 2024
2 parents a6d29c3 + ad84505 commit c10968b
Show file tree
Hide file tree
Showing 107 changed files with 2,259 additions and 2,212 deletions.
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ pipeline {
thresholds: [ skipped(failureThreshold: '0'), failed(failureThreshold: '40') ],
tools: [ JUnit(pattern: 'target/surefire-reports/*.xml') ]
)
jacoco classPattern: 'target/classes', execPattern: 'target/jacoco.exec', sourcePattern: 'src/main/java', exclusionPattern:'iudx/data/marketplace/apiserver/ApiServerVerticle.class, **/*VertxEBProxy.class, **/*Constants.class, **/*VertxProxyHandler.class, **/*Verticle.class, **/JwtDataConverter.class, iudx/data/marketplace/apiserver/ProviderApis.class, iudx/data/marketplace/apiserver/ConsumerApis.class,iudx/data/marketplace/deploy/*.class, **/*Service.class, **/PolicyServiceImpl.class'
jacoco classPattern: 'target/classes', execPattern: 'target/jacoco.exec', sourcePattern: 'src/main/java', exclusionPattern:'iudx/data/marketplace/apiserver/ApiServerVerticle.class, **/*VertxEBProxy.class, **/*Constants.class, **/*VertxProxyHandler.class, **/*Verticle.class, **/JwtDataConverter.class, iudx/data/marketplace/apiserver/ProviderApis.class, iudx/data/marketplace/apiserver/ConsumerApis.class,iudx/data/marketplace/deploy/*.class, **/*Service.class, **/PolicyServiceImpl.class, **/package-info.class'

recordIssues(
enabledForFailure: true,
Expand Down
4 changes: 3 additions & 1 deletion docker-compose.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ services:
- /home/ubuntu/configs/dmp-apd-server-config.json:/usr/share/app/configs/dmp-apd-server.json
- /home/ubuntu/configs/dmp-apd-server-keystore.jks:/usr/share/app/configs/keystore.jks
- dmp-apd-server-volume:/usr/share/app/storage/temp-dir
- ./iudx-pmd-ruleset.xml:/usr/share/app/iudx-pmd-ruleset.xml
- ./google_checks.xml:/usr/share/app/google_checks.xml
depends_on:
- zookeeper
ports:
Expand All @@ -34,4 +36,4 @@ services:
- dmp-apd-server-net

volumes:
dmp-apd-server-volume:
dmp-apd-server-volume:
2 changes: 2 additions & 0 deletions docker/depl.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ ENV JAR="iudx.data.marketplace-cluster-${VERSION}-fat.jar"
WORKDIR /usr/share/app
# Copying openapi docs
COPY docs docs
COPY iudx-pmd-ruleset.xml iudx-pmd-ruleset.xml
COPY google_checks.xml google_checks.xml
# Copying dev fatjar from builder stage to final image
COPY --from=builder /usr/share/app/target/${JAR} ./fatjar.jar
EXPOSE 8080 8443
Expand Down
2 changes: 2 additions & 0 deletions docker/dev.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ ENV JAR="iudx.data.marketplace-dev-${VERSION}-fat.jar"
WORKDIR /usr/share/app
# Copying openapi docs
COPY docs docs
COPY iudx-pmd-ruleset.xml iudx-pmd-ruleset.xml
COPY google_checks.xml google_checks.xml
# Copying dev fatjar from builder stage to final image
COPY --from=builder /usr/share/app/target/${JAR} ./fatjar.jar
EXPOSE 8080 8443
Expand Down
71 changes: 39 additions & 32 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,43 @@
<artifactId>flyway-maven-plugin</artifactId>
<version>8.5.13</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
<version>${maven-pmd-plugin.version}</version>
<configuration>
<targetJdk>${openjdk.version}</targetJdk>
<rulesets>
<ruleset>./iudx-pmd-ruleset.xml</ruleset>
</rulesets>
<printFailingErrors>true</printFailingErrors>
<!--<maxAllowedViolations>622</maxAllowedViolations>-->
<excludeRoots>
<excludeRoot>target/generated-sources</excludeRoot>
</excludeRoots>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>${maven-checkstyle-plugin-google.version}</version>
<dependencies>
<dependency>
<groupId>com.puppycrawl.tools</groupId>
<artifactId>checkstyle</artifactId>
<version>${checkstyle.version}</version>
</dependency>
</dependencies>
<configuration>
<!-- <violationSeverity>warning</violationSeverity> -->
<consoleOutput>true</consoleOutput>
<encoding>UTF-8</encoding>
<configLocation>./google_checks.xml</configLocation>
<sourceDirectories>
<sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
</sourceDirectories>
</configuration>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
Expand Down Expand Up @@ -327,6 +364,8 @@
<exclude>**/*Service.class</exclude>


<!-- Excluding package info -->
<exclude>**/package-info.class</exclude>
<!-- Caller class for policy -->
<exclude>iudx/data/marketplace/policies/PolicyServiceImpl.class</exclude>
<!-- deployment helper classes -->
Expand Down Expand Up @@ -490,22 +529,6 @@

<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
<version>${maven-pmd-plugin.version}</version>
<configuration>
<targetJdk>${openjdk.version}</targetJdk>
<rulesets>
<ruleset>./iudx-pmd-ruleset.xml</ruleset>
</rulesets>
<printFailingErrors>true</printFailingErrors>
<!--<maxAllowedViolations>622</maxAllowedViolations>-->
<excludeRoots>
<excludeRoot>target/generated-sources</excludeRoot>
</excludeRoots>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
Expand Down Expand Up @@ -538,22 +561,6 @@
</reportSet>
</reportSets>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
<version>${maven-pmd-plugin.version}</version>
<configuration>
<targetJdk>${openjdk.version}</targetJdk>
<rulesets>
<ruleset>./iudx-pmd-ruleset.xml</ruleset>
</rulesets>
<printFailingErrors>true</printFailingErrors>
<!--<maxAllowedViolations>622</maxAllowedViolations>-->
<excludeRoots>
<excludeRoot>target/generated-sources</excludeRoot>
</excludeRoots>
</configuration>
</plugin>


</plugins>
Expand Down
Loading

0 comments on commit c10968b

Please sign in to comment.