Skip to content

Commit

Permalink
Merge pull request #14 from FIAP-3SOAT-G15/improve-sonar
Browse files Browse the repository at this point in the history
Improve Sonar
  • Loading branch information
wellyfrs authored May 20, 2024
2 parents 0cafe7c + 4553dda commit 41e3824
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
uses: aws-actions/amazon-ecr-login@v2

- name: Build, tag, and push docker image to Amazon ECR
#if: github.ref == 'refs/heads/main' && github.event_name == 'push'
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
env:
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
ECR_REPOSITORY: ${{ vars.AWS_ECR_REPO_NAME }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/provision.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,5 @@ jobs:
run: exit 1

- name: Terraform Apply
#if: github.ref == 'refs/heads/main' && github.event_name == 'push'
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
run: terraform apply -auto-approve -input=false
8 changes: 6 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@
<sonar.coverage.jacoco.xmlReportPaths>${project.basedir}/target/site/jacoco/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
<sonar.language>kotlin</sonar.language>
<sonar.verbose>true</sonar.verbose>
<sonar.exclusion>
**/com/fiap/order/driver/web/PaymentAPI*
</sonar.exclusion>

<aws.java.sdk.version>1.12.724</aws.java.sdk.version>
</properties>
Expand Down Expand Up @@ -383,8 +386,9 @@
<version>0.8.12</version>
<configuration>
<excludes>
<exclude>**/*Config.*</exclude>
<exclude>**/*Mapper.*</exclude>
<exclude>**/com/fiap/payments/driver/database/persistence/entities/**</exclude>
<exclude>**/com/fiap/payments/**/config/**</exclude>
<exclude>**/com/fiap/payments/driver/web/PaymentAPI*</exclude>
</excludes>
</configuration>
<executions>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.fiap.payments.adapter.controller.configuration
package com.fiap.payments.adapter.controller.config

import com.fiap.payments.domain.errors.ErrorType
import com.fiap.payments.domain.errors.PaymentsException
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.fiap.payments.adapter.controller.configuration
package com.fiap.payments.adapter.controller.config

import com.fiap.payments.PaymentsApiApp
import com.fiap.payments.adapter.gateway.OrderGateway
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.fiap.payments.driver.database.configuration
package com.fiap.payments.driver.database.config

import com.amazonaws.auth.WebIdentityTokenCredentialsProvider
import com.amazonaws.client.builder.AwsClientBuilder.EndpointConfiguration
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.fiap.payments.driver.database.configuration
package com.fiap.payments.driver.database.config

import com.fiap.payments.PaymentsApiApp
import com.fiap.payments.adapter.gateway.*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.fiap.payments.driver.database.configuration
package com.fiap.payments.driver.database.config

import com.fiap.payments.PaymentsApiApp
import com.fiap.payments.adapter.gateway.PaymentProviderGateway
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBAttribute
import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBHashKey
import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBTable
import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBTypeConverted
import com.fiap.payments.driver.database.configuration.DynamoDBConfig
import com.fiap.payments.driver.database.config.DynamoDBConfig
import java.time.LocalDateTime

/**
Expand Down

0 comments on commit 41e3824

Please sign in to comment.