From c1b80f65aefd28dacbd629b237598322d37d780e Mon Sep 17 00:00:00 2001 From: Anass Bouassaba Date: Wed, 30 Oct 2024 16:06:36 +0100 Subject: [PATCH] ci(api): format code, checking linter --- .github/workflows/check-on-pr-api.yml | 2 +- .../rolldebee/controller/ComparisonController.kt | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/check-on-pr-api.yml b/.github/workflows/check-on-pr-api.yml index 27cf2b6..2da71b4 100644 --- a/.github/workflows/check-on-pr-api.yml +++ b/.github/workflows/check-on-pr-api.yml @@ -16,7 +16,7 @@ jobs: - uses: actions/checkout@v4 - run: | curl -sSLO https://github.com/pinterest/ktlint/releases/download/1.4.0/ktlint && chmod a+x ktlint && sudo mv ktlint /usr/local/bin/ - - name: run ktlint + - name: Lint using ktlint run: | ktlint --reporter=checkstyle,output=build/ktlint-report.xml "api/**/*.kt" continue-on-error: true diff --git a/api/src/main/kotlin/com/rolldebee/rolldebee/controller/ComparisonController.kt b/api/src/main/kotlin/com/rolldebee/rolldebee/controller/ComparisonController.kt index 99930b9..87540db 100644 --- a/api/src/main/kotlin/com/rolldebee/rolldebee/controller/ComparisonController.kt +++ b/api/src/main/kotlin/com/rolldebee/rolldebee/controller/ComparisonController.kt @@ -1,10 +1,10 @@ package com.rolldebee.rolldebee.controller import com.rolldebee.rolldebee.core.Comparison -//import com.rolldebee.rolldebee.factory.ComparerFactory -//import com.rolldebee.rolldebee.factory.IntrospectionBuilderFactory -//import com.rolldebee.rolldebee.factory.ObjectGraphBuilderFactory -//import com.rolldebee.rolldebee.factory.ObjectRouteBuilderFactory +// import com.rolldebee.rolldebee.factory.ComparerFactory +// import com.rolldebee.rolldebee.factory.IntrospectionBuilderFactory +// import com.rolldebee.rolldebee.factory.ObjectGraphBuilderFactory +// import com.rolldebee.rolldebee.factory.ObjectRouteBuilderFactory import com.rolldebee.rolldebee.factory.* import com.rolldebee.rolldebee.repository.ConnectionRepository import jakarta.validation.constraints.NotBlank